473,405 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

ClientForm .click() oddity

I've written a script using ClientForm to automate opening and closing
ports on my Linksys router. It works, but I wonder if there isn't a
better way to do it.
The problem is that the list of arguments in the request generated by
..click()ing the form is incomplete and I have to edit it manually. The
Submit button on the form is created with the following code:

<script>document.write("<input type=button name=save_button" + "
value=\"" + sbutton.save + "\" onClick=to_submit(this.form)>");</script>

Which calls this function in the form source:

function to_submit(F)
{
F.submit_button.value = "Forward";
F.action.value = "Apply";
F.submit();
}

Simply .click()ing on the form does not properly fill in
submit_button=Forward&action=apply, however. The arguments are there but
with no values.
Is this because ClientForm doesn't run javascript, or is there a way to
determine and fix these values without manually editing the .data string
of the Request with values I have to find on my own?
May 15 '07 #1
1 1204
Gordon Airporte <JH*****@fbi.govwrites:
[...]
Simply .click()ing on the form does not properly fill in
submit_button=Forward&action=apply, however. The arguments are there
but with no values.
Is this because ClientForm doesn't run javascript,
Yes.

or is there a way
to determine and fix these values without manually editing the .data
string of the Request with values I have to find on my own?
No. (Strictly, it shouldn't be necessary to actually edit the data
string -- you should be able to use the API to do it -- but I'm not
sure that's fully documented and tested, so that may not work
correctly. Either way, you have to do it manually.)
John
May 24 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matej Cepl | last post by:
Hi, using python 2.3, ClientForm, and ClientCookie and I have this code: opener = ClientCookie.build_opener(ClientCookie.HTTPRefererProcessor, ClientCookie.HTTPRefreshProcessor,...
5
by: narke | last post by:
Does anyone here use ClientForm to handle a HTML form on client side? I got a form, within which there is a image control, it direct me to another page if i use mouse click on it. the code of...
0
by: kostem | last post by:
Hi, I need some help on using ClientForm to post to cgi and getting response. I have done this many times and it worked very well until now. I have contacted the webmaster of the page I'm...
0
by: m0sf3t | last post by:
Does anyone here use ClientForm to handle a HTML form on client side? I try to open this page https://www.orange.ch/footer/login but got this message File...
0
by: emiliano | last post by:
Hey guys, i was just googling some information about how to use the ClientForm package with a page which requires HTTP basic authentication and i got here :P ... So here is the problem, lets see if...
1
by: socialanxiety | last post by:
alright, i'm coding a program that will log me into yahoo.com (so far), now, the problem i have is that once i've submitted by login & password, the program doesn't know whether yahoo.com accepted...
6
by: Jim Devenish | last post by:
I have an unbound form that displays all the days of the year as a calendar. It has 12 rows of text boxes with either 29,30 or 31 in each row. Text box names are of the form: display_01_01,...
2
by: hp1980 | last post by:
Hi, I'm writing a web automation script using ClientForm and urlgrabber. I use urlgrabber because I need the "http keepalive" which doesn't exist in urllib2. I'm facing a problem, the...
0
by: skiani | last post by:
Hi, I'm trying to automate downloading a file from a website. The site has a cookie based authentication so I use ClientCookie to first login then I fillout the form with ClientForm successfully....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.