Dethman Posted June 24, 2009 Share Posted June 24, 2009 Ok I need to know why this is not working I cannot get it to work. Its not exactly working as I wanted it to. <SCRIPT LANGUAGE="JavaScript"> var msgVar = "Welcome back "user", you are now being logged in. <BR> <font size='-2'>This box will redirect you in 7 seconds."; function(){TINY.box.show(msgVar,0,0,0,0,7)} </SCRIPT> Thanx For any Help Link to comment https://forums.phpfreaks.com/topic/163557-solved-javascript-function-call/ Share on other sites More sharing options...
deth4uall Posted June 24, 2009 Share Posted June 24, 2009 Change var msgVar = "Welcome back "user", you are now being logged in. <BR> <font size='-2'>This box will redirect you in 7 seconds."; To var msgVar = "Welcome back "+user+", you are now being logged in. <BR> <font size='-2'>This box will redirect you in 7 seconds."; Also get the AddOn "Web Developer" for Mozilla Firefox, it tells you where errors are... Link to comment https://forums.phpfreaks.com/topic/163557-solved-javascript-function-call/#findComment-862922 Share on other sites More sharing options...
Dethman Posted June 25, 2009 Author Share Posted June 25, 2009 Does this script call and run the function or just creates the function? Link to comment https://forums.phpfreaks.com/topic/163557-solved-javascript-function-call/#findComment-863182 Share on other sites More sharing options...
Ken2k7 Posted June 25, 2009 Share Posted June 25, 2009 Neither. The following line doesn't make sense - function(){TINY.box.show(msgVar,0,0,0,0,7)} Link to comment https://forums.phpfreaks.com/topic/163557-solved-javascript-function-call/#findComment-863183 Share on other sites More sharing options...
Dethman Posted June 25, 2009 Author Share Posted June 25, 2009 THATS WHAT I THOUGHT! IT was a very strange funtion call than used in PHP Link to comment https://forums.phpfreaks.com/topic/163557-solved-javascript-function-call/#findComment-863184 Share on other sites More sharing options...
Ken2k7 Posted June 25, 2009 Share Posted June 25, 2009 Try taking out the function part and just leave with - TINY.box.show(msgVar, 0, 0, 0, 0, 7); Link to comment https://forums.phpfreaks.com/topic/163557-solved-javascript-function-call/#findComment-863189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.