The problem ended up being my call to .getJson and something about how jQuery was recogzing the url as being cross domain. I changed the call to the file to be relative and it is working now. Thanks for the help.
On Sep 11, 4:57 pm, Scott Haneda <talkli...@newgeo.com> wrote: > Maybe your use of appendTo is wrong, I just did this test: > > $.getJSON("http://www.pomona.edu/dev/home/spotlight.json", > function(data){ > $.each(data.items, function(i, item){ > $("div").append(i); > > }); > }); > > <div id="images"></div> > > I got 01234, so the index of each item in your JSON. With that, you > know your JSON is ok, and you need to look at what appendTo is not > working. > > Sorry I can not be of more help, this is about day 2 of Jquery for me. > > On Sep 11, 2009, at 3:56 PM,roryreiffwrote: > > > > > I have the following code: > > > // pull in json feed and inject panes into page > > $.getJSON("http://www.pomona.edu/dev/home/spotlight.json", > > function(data){ > > $.each(data.items, function(i,item){ > > $('<div > > class=\"pane\"></div>').appendTo('#spotlight-panes'); > > }); > > }); > > > and I cannot figure out what is going wrong. As you can see, I am not > > even trying to do anything yet with the json data, but assuming that I > > should still be seeing some divs injected into the DOM. Wondering if > > there is something wrong with my JSON file? Any help is > > appreciated...I just can't figure out what is going on! Code in effect > > here:http://pomona.edu/dev/home/index.aspThanks, > > -- > Scott * If you contact me off list replace talklists@ with scott@ *