Thread: Waitfor?
View Single Post
  #1  
Old 12-30-2007, 01:19 AM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Waitfor?

Hi,

uh i tried using waitfor, ex:

PHP Code:
function onCreated()
  {
  echo( 
"waiting" );

  if( 
waitforthis"onChange") == false ) echo( "timeout" );
  else echo( 
"event" );
  }
  
function 
onChangetest )
  {
  
sendtorc"waiting again" test );

  if( 
waitforthis"onChange") == false) echo( "timeout" );
  } 
now when onChange is called in the 5 secs before the timeout runs out it echoes "event" but but doesnt say "waiting again", how can i make it so it runs the functions too(with the params sent to it)
Reply With Quote