Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: working with JScript in Perl

by gellyfish (Monsignor)
on Oct 08, 2006 at 08:28 UTC ( #576957=note: print w/replies, xml ) Need Help??


in reply to working with JScript in Perl

You omitted the quotes around the ValidateForm() in your Perl code, consequently it is being interpreted as a call to an (undefined) Perl subroutine.

/J\

Replies are listed 'Best First'.
Re^2: working with JScript in Perl
by Anonymous Monk on Oct 08, 2006 at 08:50 UTC
    Thanks. Now I am able to compile. But when i click the button alert msg is not coming. Am I missing anything?.

      Not sure, but I think you need a semicolon at the end of every javascript statement.

      --
      David Serrano

        Actually no. Although expression and variable declaration statements in Javascript have to end with a semicolon like in C (and Perl, with exceptions), there's a special rule that allows for automatic semicolon insertion so they're effectively optional as long as it's not ambiguous.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://576957]
help
Chatterbox?
[choroba]: just one of its angles, in fact
[LanX]: <|--
[choroba]: Reminds me of an old joke about an orchestra...
erix imagines that in a true Lancs accent
[choroba]: so a Czech orchestra rehearses a new piece by a German composer
LanX LOL of the day ... the Turkish Anonymous Alcoholics stopped their "No to alcohol" campaign for political reasons ...
LanX omg my browser is posting again on its own ...
[LanX]: choroba: GREAT JOKE! xD

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-03-27 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.