Besttoolbars Development network

Back to Besttoolbars main site

 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
setTimeout

 
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions
Author Message
Rayman2



Joined: 18 Aug 2008
Posts: 8

PostPosted: Sat Sep 06, 2008 6:01 pm    Post subject: setTimeout Reply with quote

hi

i cant get setTimeout to work

i have it like this
var f = MainWindow.document.parentWindow.setTimeout("MainWindow.document.parentWindow.alert ('v if')",5000);

and it wont work at all Sad

anyone got that working?

tznx luka

i am using IE 7
Back to top
Rayman2



Joined: 18 Aug 2008
Posts: 8

PostPosted: Mon Sep 08, 2008 10:41 am    Post subject: Reply with quote

anyone?
Back to top
shiryavsky



Joined: 18 Mar 2010
Posts: 2

PostPosted: Thu Mar 18, 2010 7:59 am    Post subject: Reply with quote

It's real sh*t, because:
Quote:

MainWindow.document.parentWindow.setTimeout("alert('aa')",10);

OK, but
Quote:

var a=1;
MainWindow.document.parentWindow.setTimeout("alert(a)",10);

a undefined!!
Evil or Very Mad

This function is called in a different script-space.
Back to top
shiryavsky



Joined: 18 Mar 2010
Posts: 2

PostPosted: Thu Mar 18, 2010 8:08 am    Post subject: Reply with quote

Found!
Quote:

var a=1;
MainWindow.document.parentWindow.setTimeout(function () {
MainWindow.document.parentWindow.alert(a);
}, 100);
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group

Copyright c Softomate, 2010. All Rights Reserved
Terms of Service | Privacy Policy