Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Javascript with CGI

by tarunkhanna (Novice)
on Oct 07, 2011 at 06:37 UTC ( #930117=note: print w/ replies, xml ) Need Help??


in reply to Re: Javascript with CGI
in thread Javascript with CGI

yeah, I can see that...

But it's not even working with

document.getElementByName("name").value


Comment on Re^2: Javascript with CGI
Download Code
Re^3: Javascript with CGI
by Anonymous Monk on Oct 07, 2011 at 06:43 UTC

    And? If you wish to debug your HTML and javascript, go to a different forum

      Yeah, I have to do that if I don't get solution here.

      The point is this forum is also to help each other. That's why I posted here. If you know the solution, you can tell me.

Re^3: Javascript with CGI
by bart (Canon) on Oct 07, 2011 at 11:10 UTC
    Well your problkem is that you need to add the 'id' attribute. According to the CGI.pm docs, you can add it with a named parameter using '-id' but you'll have to change the way you pass the name parameter. This works:
    $textfield = CGI->textfield({ -name => 'name', -id => 'name' });
    as does this:
    $textfield = CGI->textfield(-name => 'name', -id => 'name');

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2014-12-29 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (187 votes), past polls