Hi James,

you can use the XMLHttpRequest object to retrieve the image from your
URL and then set the src attribute of your image to the responseStream
of your XMLHttpRequest response.

Here is some simple example code. Please note that this code is
synchronous so you might want to turn this into an asynchronous call
but it should be better readable and help you understand the concept:

function ajaxPicture(url) {
  var req = new XMLHttpRequest();
  req.open('GET', url, false);
  req.send();
  if (req.status == 200) {
    return req.responseStream;
  }
}

yourimage.src = ajaxPicture('http://www.lfs.net/content/inc/
realtime_numbers.php');

Best regards,
Benjamin

On Sep 29, 10:59 am, jamesnorman93 <[EMAIL PROTECTED]> wrote:
> Problems/Can anyone help?
> - I can't get a php image file to display on my Google Gadget 
> (http://www.lfs.net/content/inc/realtime_numbers.php)
>
> Does anyone know how to do this?
>
> Thanks,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to