Multiple Commands #2

  • Follow


Hi,

Sorry if this is a double post.  I posted this about 1 hour ago, and
it never appeared.

I have some javascript commands I want executed when a user clicks on
an href link.  My code is below.  The code works fine with the first
command, but when I add the second and third commands, nothing
happens.

However, if I remove the first command, everything works fine.  But I
need all three statements.  Can anyone see the error in my ways?

Thanks!

<a href=\"javascript:emailvalidation('$email','The E-mail address is
not valid');document.OptOut.action = 'activate.php?type=2&db=$db&ref=
$ref&acronym=$acronym';document.OptOut.submit();\">Click Here</a>

0
Reply amerar (454) 9/21/2007 1:49:20 PM

amerar@iwc.net wrote:
> Hi,
> 
> Sorry if this is a double post.  I posted this about 1 hour ago, and
> it never appeared.
> 
> I have some javascript commands I want executed when a user clicks on
> an href link.  My code is below.  The code works fine with the first
> command, but when I add the second and third commands, nothing
> happens.
> 
> However, if I remove the first command, everything works fine.  But I
> need all three statements.  Can anyone see the error in my ways?
> 
> Thanks!
> 
> <a href=\"javascript:emailvalidation('$email','The E-mail address is
> not valid');document.OptOut.action = 'activate.php?type=2&db=$db&ref=
> $ref&acronym=$acronym';document.OptOut.submit();\">Click Here</a>
> 
I am no expert, but surely once you  call another window you have passed 
control away and that is the end of javascript in that window, Jim.
0
Reply The 9/21/2007 3:10:35 PM


1 Replies
112 Views

(page loaded in 0.032 seconds)

Similiar Articles:













7/18/2012 7:06:00 AM


Reply: