harshpandya Posted June 30, 2008 Share Posted June 30, 2008 setTimeout("wait()", 3000);function wait(){searchStr(mainStr, "brightness", "mode", true);}This works fine but i dont want to use this method--------------------------------Why would this not work setTimeout("searchStr(mainStr, "brightness", "mode", true)", 3000);Why it wont how do i fix this --------------------------------- Link to comment Share on other sites More sharing options...
harshpandya Posted June 30, 2008 Author Share Posted June 30, 2008 Sorry about that - i figured it outsetTimeout(searchStr(mainStr, "brightness", "mode", true), 3000);thanks Link to comment Share on other sites More sharing options...
justsomeguy Posted June 30, 2008 Share Posted June 30, 2008 setTimeout("searchStr(mainStr, \"brightness\", \"mode\", true)", 3000);That would work. If you leave the quotes out then it's going to execute the function immediately, not after 3 seconds. Link to comment Share on other sites More sharing options...
harshpandya Posted June 30, 2008 Author Share Posted June 30, 2008 Awesome dude --- you have helped me lot Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.