Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Javascript file contains the following codeprint start_html( -title=>'People Data', -script=>[ { -language => 'JavaScript', -src => '/javascript/ValidateForm.js' } ] ); print table({-border=>0,-cellpadding=>4,-cellspacing=>5}, Tr({-align=>LEFT,-valign=>TOP}, [ td('Sun Id: ',textfield(-name=>'Sunid',-value=>"$sun +id",-size=>20),submit(-name=>'Load',-value=>'Get Details',-onClick=>V +alidateForm())), td({-bgcolor=>chocolate},font({-color=>white},'Enter Sun + ID and click Get Details')) ] )); print end_form; print end_html;
I am getting compilation error. Please help me out. thanks in advance.function ValidateForm(){ var Phone=document.inFOrm.Mobile alert("In JS") return true }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: working with JScript in Perl
by gellyfish (Monsignor) on Oct 08, 2006 at 08:28 UTC | |
by Anonymous Monk on Oct 08, 2006 at 08:50 UTC | |
by Joost (Canon) on Oct 08, 2006 at 15:26 UTC | |
by Hue-Bond (Priest) on Oct 08, 2006 at 08:56 UTC | |
by Errto (Vicar) on Oct 09, 2006 at 04:31 UTC | |
Re: working with JScript in Perl
by McDarren (Abbot) on Oct 08, 2006 at 08:27 UTC | |
by Anonymous Monk on Oct 08, 2006 at 08:54 UTC |