Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > popup window delay... will this work for me.

Reply
Thread Tools

popup window delay... will this work for me.

 
 
athahar@gmail.com
Guest
Posts: n/a
 
      07-05-2006
Hello i have a peculiar problem..
i have a link in my webpage, which opens a pop-up window, in whch i'm
embedding a flash file..
this works fine as long as i give enough time to load the flash file
properly..
if i close the pop-up window before it propely loads the flash fiels,
my original webpage gets hanged.
so i thought i'l open my pop-up after some delay, such that there is
enough time to load the flash file properly.
my code looks like this..

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function open_new(page) {
width = 267; // width of window in pixels
height = 103; // height of window in pixels
delay = 2; // time in seconds before popup opens
timer = setTimeout("Start( page, width, height)", delay*1000);
}

but still my problem is not solved.. any other mechanism, or any
modification in the code required..
please help as i'm very new to java script.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Initiating a PostBack on a main window from a popup window Jay ASP .Net 8 06-12-2011 10:51 AM
Popup Window Popup Timing =?Utf-8?B?Sm9obiBXYWxrZXI=?= ASP .Net 3 11-04-2005 07:33 PM
New Popup Window from an existing Popup Window Raffi Javascript 4 08-12-2004 01:21 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
Popup window to raise event in parent window...can it be done??? Earl Teigrob ASP .Net 4 06-04-2004 11:47 PM



Advertisments