A
atomo
Hi, i got a problem with variable handling with mozilla(0.7). These lines
of code works fine on IE(6), but they doesn't on Mozilla:
echo"
function check(){
if( ".$name.".value!=\"\" )
{ code }";
As you can see i set a variable name with PHP, and its value is checked in
javascript.
Mozilla, shows an error on third line telling that the var is not defined,
stopping the execution. With IE and Opera there are no problems.
I'm wondering if this is because IE supports defining a variable in the
condition, while mozilla doesn't.
Any ideas?
of code works fine on IE(6), but they doesn't on Mozilla:
echo"
function check(){
if( ".$name.".value!=\"\" )
{ code }";
As you can see i set a variable name with PHP, and its value is checked in
javascript.
Mozilla, shows an error on third line telling that the var is not defined,
stopping the execution. With IE and Opera there are no problems.
I'm wondering if this is because IE supports defining a variable in the
condition, while mozilla doesn't.
Any ideas?