Bump for the above question... On Nov 8, 12:04 am, jamesnorman93 <[EMAIL PROTECTED]> wrote: > How do Igetthe "main.xml" to read the "main.js" togettheimage? > > On Oct 2, 7:35 am, "Benjamin [API Guru]" <[EMAIL PROTECTED]> > wrote: > > > 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 yourhelp, > > > I don't really know much about this... How would I add this tomy > > > 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 theimagefrom your > > > > URL and then set the src attribute of yourimageto 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 andhelpyou 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/Cananyonehelp? > > > > > - > > > > > Ican'tgetaphpimagefiletodisplayonmyGoogleGadget(http://www.lfs.net/content/inc/realtime_numbers.php) > > > > > > Doesanyoneknow 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 -~----------~----~----~----~------~----~------~--~---
