PDA

View Full Version : Load time too long ....


Decoy Filt
04-29-2003, 12:17 PM
//this little function takes like 5 seconds to load the popup...
//Is this normal ???

function popupwin() {
winpopup = window.open('','popup','height=50,width=20,menubar=no,scrollbars=no,status=no,toolbar=no,left=100,to p=0');
winpopup.document.write('<html>\n<head>\n');
winpopup.document.write('<title> PoopUp title</title>\n');
winpopup.document.write('</head>\n');
winpopup.document.write('<body> TEXT,TEXT,TEXT\n');
winpopup.document.write('</body>\n </html>');
winpopup.document.close();
}

//****

tamienne
04-29-2003, 01:30 PM
There's an extra space between window. and open Also, you might want to do a winpopup.document.open(); Overall though, i didn't get the load problem that you're getting.

function popupwin() {
winpopup = window.open('','popup','height=50,width=20,menubar=no,scrollbars=no,status=no,toolbar=no,left=100,to p=0');
winpopup.document.open();
winpopup.document.write('<html>\n<head>\n');
winpopup.document.write('<title> PoopUp title</title>\n');
winpopup.document.write('</head>\n');
winpopup.document.write('<body> TEXT,TEXT,TEXT\n');
winpopup.document.write('</body>\n </html>');
winpopup.document.close();
}

Decoy Filt
04-29-2003, 03:30 PM
the load time was a bug i think (in dreamweaver)

but if i put several function of popupwin like
popupwin2 and popupwin3 ,..etc. the popup is always opened in the same popupwindow.., i should have a new window opened for each popup ...
or even good would be that the window would stay on top ..


thanks for u're time ....

Decoy Filt
04-29-2003, 04:05 PM
nevermind,
i got it ,
i just changed the name of each Window.Open()