Items not working in certain browsers and basemap gallery troubles

Discussion created by jdkitzmi on Oct 10, 2013
Latest reply on Oct 16, 2013 by jdkitzmi
I am having a heck of a time with getting my decently basic application up and running. Running into errors that I can't seem to fix and problems in various browsers. I have posted other threads with no real answers. Hoping maybe I can get some direction here, as maybe several problems are related?

1) I have added the basemap gallery code and I get this error: Error: Permission denied for <file://> to create wrapper for object of class UnnamedClass
I am testing on my desktop, but nothing is calling any file name that I can think of, other than, again, its being run on my desktop for testing and therefore run out of an html file. This error only arises with the addition of the basemap gallery code:
//add basemap gallery
   var basemapGallery = new esri.dijit.BasemapGallery ({
    showArcGISBasemaps: true,
    map: map
   },  "basemapGallery");
   basemapGallery.on("error", function(msg) {
    console.log("Basemap Gallery Error: ", msg);

I get this on multiple browsers.

2) In Safari, the table of contents doesn't work. I just get the title with a check box next to it, but no drop downs for other layers within it. I'm getting an error of
"XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. Origin is not allowed by Access-Control-Allow-Origin."
And that's it. I've gotten this error in Chrome and the ToC seems to have issues working there as well. From what I've seen, it shouldn't have any effect on it, but that's all I'm getting. I'm using this: http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109

3) I'm using this example: https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html
It works great in all browsers except Internet Explorer. I will get the buffer to show up, but the points selected do not show up. I just get a generic error of "Error: Access is denied." No other explanation.
(Side note - anyone know how to format the info window to be more like the result in the identify task? I've played around with it and can't get it to work how I want it)

I have attempted to put my code into a fiddle because its too large to attach in a single post but its not displaying right. Here is the link to it anyway http://jsfiddle.net/jessabug/hdk8F/
Any other way to get all my code into here easily?

I could definitely use a hand. I don't feel like I'm doing anything too complicated yet, but I'm not a programmer by trade so I've been teaching myself how to do this as I go and its proving to be enjoyable sometimes, frustrating at others. I want this to work in at least 2 browsers consistently (it was working in FF and Chrome before with no issues, then Chrome didn't want to load the ToC a week or so ago. Now it seems to work and I've not changed anything). I also want to add more functionality but I hate adding more and more errors to the equation and I'd like to solve what is here first before moving on.

Any help would be much appreciated. Thanks.