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',
'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
-~----------~----~----~----~------~----~------~--~---

Reply via email to