Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: Howto Include JavaScript to Script

by Anonymous Monk
on Jun 15, 2009 at 11:40 UTC ( [id://771619]=note: print w/replies, xml ) Need Help??

in reply to Re: Howto Include JavaScript to Script
in thread Howto Include JavaScript to Script

Hi, Do the line code: " twofastest = document.getElementById('twofastest'); if ( twofastest )" will retrieve the elementid "twofastest" while window load the page ? Because in my code after i add condition "if", it works. Before it always throw eror element id is null because it was calling on load page
  • Comment on Re^2: Howto Include JavaScript to Script

Replies are listed 'Best First'.
Re^3: Howto Include JavaScript to Script
by Anonymous Monk on Feb 25, 2011 at 06:22 UTC
    Jesus please let me give you some advice to avoid all future bugs of this nature, that whole object oriented style of writing HTML code makes me cry just write the actual code out and you will see that every single unique checkbox has an onClick() that you can add to it, javascript and HTML mesh like candy, javascript and OOP style generated HTML mesh like hotdogs and cold rice.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://771619]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-07-23 02:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.