Click here to get back home

Access DOM using JavaScript::SpiderMonkey

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Access DOM using JavaScript::SpiderMonkey 4everjune 01-16-2006
Get Chitika Premium
Posted by 4everjune on January 16, 2006, 12:37 pm
Please log in for more thread options


Hello all,

I'm working on a program as part of my off-time hobby, but seems like
I've got a problem here.

Say, I have an HTML file like this:

<html>
<body>
<form name=myform method=POST>
<input type=hidden name=username value=abc>
</form>
</body>
</html>

In my server-side script, I'd like to access document.myform.username
and update it dynamically.

On the client side, I use Lynx as my browser, so I'd like to keep
everything on the server-side.

Is there any way I can manage that? Thank you in advance.



Posted by chris-usenet on January 17, 2006, 9:10 am
Please log in for more thread options


4everjune@gmail.com wrote:
> <html>
> <body>
> <form name=myform method=POST>
> <input type=hidden name=username value=abc>
> </form>
> </body>
> </html>

> In my server-side script, I'd like to access document.myform.username
> and update it dynamically.

Dynamically as in it changes after it's been rendered on the user's
display, or dynamically as in it its value is determined by the server
just as it sends the page to the client?

The first can't be done without client-side scripting.

For the second you could start with the CGI module, and get
progressively more complex by using a templating package such as
HTML::Template or the Template Toolkit.

Chris


Similar ThreadsPosted
Javascript::MD5 V 1.04 July 29, 2004, 7:19 am
Javascript::MD5 V 1.05 November 21, 2005, 9:17 pm
Javascript::SHA1 V 1.01 July 29, 2004, 7:19 am
How Do You Get LWP To Deal With Javascript "Pop-Ups" October 20, 2005, 3:02 pm
ANNOUNCE: Javascript::MD5 V 1.06 August 12, 2007, 12:15 am
Javascript::SHA1 V 1.03 August 12, 2007, 12:16 am
Quick Perl, HTML, CSS, JavaScript reference April 26, 2006, 10:34 am
Problems building Javascript-1.00 on Win32 system November 11, 2006, 9:59 pm
new module Logfile::Access October 23, 2004, 8:30 pm
Perl under MS IIS with access to MySQL June 19, 2005, 11:24 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap