I would be grateful for any enlightenment on this problem ... according to all the books & online material I've referenced, this "should" work ... but I get a Javascript Error: expecting ")"
for(i=1; i<50; i++)
{
var compchap = chapter;
//alert(chapter);
//}
==> if ( psswd != compchap ) {
alert('Only membersETC.');
}
else
{
alert('Welcome, ETC.');
}
}
The code works fine up to the line with ==>
(checked by uncommenting the alert(chapter); and commenting out the if statement ... also gives the "else" alert if that isn't commented out. I have also tried changing the condition in the if statement = same error.
One of the iterations of the script is at:
<!-- m --><a class="postlink" href="http://www.reinuse.com/MEV/">http://www.reinuse.com/MEV/</a><!-- m -->
for(i=1; i<50; i++)
{
var compchap = chapter;
//alert(chapter);
//}
==> if ( psswd != compchap ) {
alert('Only membersETC.');
}
else
{
alert('Welcome, ETC.');
}
}
The code works fine up to the line with ==>
(checked by uncommenting the alert(chapter); and commenting out the if statement ... also gives the "else" alert if that isn't commented out. I have also tried changing the condition in the if statement = same error.
One of the iterations of the script is at:
<!-- m --><a class="postlink" href="http://www.reinuse.com/MEV/">http://www.reinuse.com/MEV/</a><!-- m -->