I'll be darned. The code works when you include the imgmax parameter. I set it to imagmax=800, because that's suggested by the API documentation. Although that string is supposed to be used for a query, not for standard URLs. But perhaps they're not actually standard URLs, but are always treated as queries...
Hope this is helpful to other folks out there. Thank you sainer! (How did you figure this out? I couldn't find anything in the documentation.) Regards, Nick On Apr 2, 2:35 pm, Jeff Fisher <api.jfis...@google.com> wrote: > Weird. Does it work if you add the query parameter imgmax=800 ? > > Also does it work if you put the images as the src of an <img> tag instead > of linking directly to them? > > Cheers, > -Jeff > > On Thu, Apr 2, 2009 at 12:54 AM, Nick63 <npavko...@gmail.com> wrote: > > > Thanks! My images are all about 700 pixels square. > > > I've written some quick & dirty test code to illustrate the problem. > > The code runs flawlessly from my desktop computer, but once it's run > > from a server, the identical image URLs return a 404 error from the > > Google server. You can try out the test program here: > > >http://www.pulppublishing.com/chessdesign/new/tester.html > > > It'll present a list of images in an album as links. Click on one and > > the image will open in a new window/tab. For me, they all open with > > 404 messages. If you put your cursor in browser's URL field and hit > > return, however, the image will load. > > > Code below. Sorry if the jquery stuff confuses matters. Any thoughts/ > > troubleshooting ideas greatly appreciated. I have this feeling I > > missed something really basic... > > > Thanks, > > Nick > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml"> > > <head> > > <script type="text/javascript" src="jquery-1.3.2.min.js"></script> > > <script type="text/ > > javascript"> > > > var theImageMenu = ""; > > > $(document).ready(function() { > > $.ajaxSetup({cache: true}); > > $.getJSON('http://picasaweb.google.com/data/feed/base/user/ > > chessdesignweb/albumid/5317287298722835905? > > alt=json&kind=photo&authkey=Gv1sRgCJys4Y3V3bSClgE&hl=en_US<http://picasaweb.google.com/data/feed/base/user/%0Achessdesignweb/alb...> > > ', > > 'callback=?', MakeImageMenu); > > }); > > > function MakeImageMenu(theFeed) { > > var len = theFeed.feed.entry.length; > > for (var i = 0; i < len; i++) { > > theImageMenu = theImageMenu + "<a href='"+theFeed.feed.entry > > [i].content.src+"' target=_blank>"+theFeed.feed.entry[i].title.$t+"</ > > a><br />"; > > } > > $("#theNav").html(theImageMenu); > > } > > > function loadImage(theImagePath) > > { > > document.mainImage.src = theImagePath; > > } > > > </script> > > > </head> > > <body> > > > <div id="theNav"></div> > > <div id="thePicture"> > > <img name="mainImage"/> > > </div> > > </body> > > </html> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Picasa Web Albums API" group. To post to this group, send email to Google-Picasa-Data-API@googlegroups.com To unsubscribe from this group, send email to google-picasa-data-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Picasa-Data-API?hl=en -~----------~----~----~----~------~----~------~--~---