This code goes into you Javascript files (main.js for example).

Benjamin

On Oct 1, 3:33 pm, jamesnorman93 <[EMAIL PROTECTED]> wrote:
> Hi!
> Thanks for your help,
> I don't really know much about this... How would I add this to my
> current code?
>
> CODE:
> <view height="117" width="170" onopen="view_onOpen()">
>   <img height="117" width="170" src="stock_images\background.png"/>
>   <img dropTarget="true" enabled="true" height="62" hitTest="htclient"
>     width="170" src="stock_images\lfs-logo.png"/>
>   <img dropTarget="true" enabled="true" height="15" hitTest="htclient"
>     width="170" y="62" src="stock_images\top.png"/>
>   <img dropTarget="true" enabled="true" height="30" hitTest="htclient"
>     width="170" y="77" src="http://www.lfs.net/content/inc/
> realtime_numbers.php"/>
>   <img dropTarget="true" enabled="true" height="10" hitTest="htclient"
>     width="170" y="107" src="stock_images\bottom.png"/>
>   <a height="62" width="170" href="http://www.lfs.net"/>
>   <meta http-equiv="refresh" content="60"/>
> </view>
>
> On Oct 2, 6:43 am, "Benjamin [API Guru]" <[EMAIL PROTECTED]>
> wrote:
>
> > 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