Results 1 to 2 of 2
  1. #1

    [Javascript] Multiple functions help

    Hello,

    If I try 2 execute these 2 functions at the same time it will not work unless I click the link twice.
    Code:
    function open_win(args1,args2)
    {
    newplayer = window.open(args1,args2);
    }
    
    
    
    function Play(args1,args2,...)
    {
    if(!newplayer)
        {
         open_win('args1','args2'...);  // first function 
    
         newplayer.Load(args1, args2, args3); // second function 
        }
    Thank you!
    <<Please see rules for signature setup>>

  2. #2
    Join Date
    Mar 2006
    Posts
    418
    just call play() at the end of open_win? maybe make a setTimeOut for a second or two before calling it so the computer has a chance to load the window in question?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •