booboo0912
Programmer
I don't really have my images in the database but just the image names (pic1.jpg). Depending on which id is passed to my page, the SQL statement selects all the image names for that id. I put an onload event in my body tag to call the following function, but the javascript seems to fire before the connection to the database. At least the error I got said 'rs2 does not exist'...
function getImages() {
if(document.images) {
x=0;
if(!rs2.EOF) {
image[x] = new Image();
image[x] = rs2("pictureName");
rs2.MoveNext;
}
}
My function most likely needs some work too so any help with that is appreciated as well! How would I go about preloading images (image names) called from a database?
Thank you!
function getImages() {
if(document.images) {
x=0;
if(!rs2.EOF) {
image[x] = new Image();
image[x] = rs2("pictureName");
rs2.MoveNext;
}
}
My function most likely needs some work too so any help with that is appreciated as well! How would I go about preloading images (image names) called from a database?
Thank you!