Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old March 23rd, 2006, 04:45 PM
dean.h.brown@gmail.com
Guest
 
Posts: n/a
Default Using AJAX (XmlHttpRequest) to load images

I'd like to create a slideshow using the same technology that Google
Maps uses:
Load/unload images offscreen and the user can drag the images around.

Dragging the images is easy
(http://www.walterzorn.com/dragdrop/dragdrop_e.htm)

But I haven't found a way to load the images as needed (There may be
100's so I don't want to load them all when the page loads)

Thanks!




  #2  
Old March 23rd, 2006, 07:35 PM
Ian Collins
Guest
 
Posts: n/a
Default Re: Using AJAX (XmlHttpRequest) to load images

dean.h.brown@gmail.com wrote:[color=blue]
> I'd like to create a slideshow using the same technology that Google
> Maps uses:
> Load/unload images offscreen and the user can drag the images around.
>
> Dragging the images is easy
> (http://www.walterzorn.com/dragdrop/dragdrop_e.htm)
>
> But I haven't found a way to load the images as needed (There may be
> 100's so I don't want to load them all when the page loads)
>[/color]
You don't need AJAX, just create a new img element and add it to your page.

var img = new Image( width, height );
img.src = <some URL>;

someContainer.appendChild( img );

--
Ian Collins.
  #3  
Old March 23rd, 2006, 10:35 PM
ajaxtoday
Guest
 
Posts: n/a
Default Re: Using AJAX (XmlHttpRequest) to load images

May be you can use AJAX to fetch urls for the images for each slide
from the server and assign it the src property of IMG element, browser
will read the image and show it for you.

- Rafiq.
http://www.ajaxtoday.com

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.