473,385 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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!

Mar 23 '06 #1
2 32495
de**********@gmail.com wrote:
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)

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.
Mar 23 '06 #2
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

Mar 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: boeledi | last post by:
Hello, I am developing in ASP.NET 1.1 (and unfortunately I am obliged to use 1.1). I need to generate images, using GDI+ and retrieve them on the web page, using AJAX. On the server side,...
5
by: lucyh3h | last post by:
Hi, I am trying to use XMLHttpRequest to do server side validation. I have several fields on a form and a submit button. The submit button has an event assocated with it when clicked. The...
13
by: Marvin Zhang | last post by:
Hi, I'm not familiar with web programming, but I have a problem here. I have a page. When a user click one button on it, I will use AJAX to request a PHP script which will do a bunch of tasks,...
2
by: lintolawrance | last post by:
hai friends, i need some help from u.i am trying to work with Ajax.i done some codes for developing dropdownlist using ajax.but it doesn't work.please help me to develop it. ...
5
by: thatcollegeguy | last post by:
Below are my 3php and 2js files. I create a table using ajax/php and then want to change the values in the tables add(+ number for teamid) id's for each specific td in the table. I don't know...
1
by: mfaisalwarraich | last post by:
I am trying to get values posted by a form using ajax but i dont know how to get them. im opening a form which is also based on the ajax. here is the code. function showPage(page) { var...
1
by: burtonfigg | last post by:
I have an ecard site. Part of that site allows users to enter their own message which then appears within a flash SWF file. This is an example page: ...
5
anfetienne
by: anfetienne | last post by:
hi, I am using ajax to load external pages into a div layer... my reason for this is when in a certain section of the site the transition is smooth with no white flash. my problem is that when...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.