Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

(OT) javascript function not running when called from function with arguments

by tarunkhanna (Novice)
on Oct 13, 2011 at 07:02 UTC ( #931144=perlquestion: print w/replies, xml ) Need Help??
tarunkhanna has asked for the wisdom of the Perl Monks concerning the following question:

Hi, This works =======
<html> <script type="txt/javascript"> function abc(a,b) { alert ("hello"); } </script> <body onLoad="return abc();"> </body> </html>
This doesn't works =============
<html> <script type="txt/javascript"> function abc(a,b) { alert ("hello"); } </script> <body onLoad="return abc(x,y);"> </body> </html>
what shall i do to make second code working?? Regards

Replies are listed 'Best First'.
Re: (OT) javascript function not running when called from function with arguments
by davido (Cardinal) on Oct 13, 2011 at 07:59 UTC

    Hello, and welcome to the Monastery; a place where we love learning about Perl. It would be great if you wish to join us in that pursuit. At the moment it seems you have been asking a lot of questions that are not Perl related: Javascript with CGI, (OT) Javascript with CGI using different files, CGI button -onClick not working, as well as this thread. You've even gotten a few helpful answers, which may have encouraged you to continue with the off-topic posts.

    For Perl, there's no better place than The Monastery (PerlMonks). But for other languages there are forums where questions on Javascript and HTML would be more on topic. For example, StackOverflow is designed to be language neutral. You could ask your Javascript and HTML questions there, and as long as you apply the appropriate tags and follow the guidelines for asking "answerable" questions, you'll be right on topic, and will get responses that aren't given begrudgingly. As long as you keep asking Javascript questions that have no Perl merit to them in PerlMonks, you'll continue receiving unappreciative responses here.

    However, while I can't speak for everyone, I'm happy to put the past behind us and move on. So find something Perl related we can sink our teeth into, and we'll enjoy seeing you hanging around. When it comes to Perl questions, it is here where the atmosphere encourages thought-provoking discussion.


    Dave

Re: (OT) javascript function not running when called from function with arguments
by Anonymous Monk on Oct 13, 2011 at 08:25 UTC

    what shall i do to make second code working??

    Hire a programmer *ZING*

Re: (OT) javascript function not running when called from function with arguments
by dHarry (Abbot) on Oct 13, 2011 at 07:11 UTC

    Where is the Perl in your question?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://931144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2018-09-20 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (173 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!