Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expected ; driving me nutz

Status
Not open for further replies.

TurboSRT4

Programmer
Nov 23, 2009
47
US
Hello, i use this same function with no problems on other pages i have tried everything and im pretty good with perl and javascript but i keep getting an error expected ; if i remove 'test' from the function to just scOn() it works fine, the problem is when trying to pass a variable pleas help thanks.

foreach(@arSub){
push @bbSub, qq(<div><table id="$_" class="bgWhite" width="110" height="30" onmouseover="javascript:scOn('test');"><tr><td>$_</td></tr></table></div>);
}
push @javaSubs, qq(var subItems$lp = '@bbSub';);

}
 
well i fixed it can someone please explain why this fix worked

onmouseover=javascript:scOn("test");

i took the quotes out of the onmouseover event, and i changed the single quotes to double quotes in passing the variable???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top