473,394 Members | 1,769 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,394 software developers and data experts.

filling forms automatically generated using javascript


Is there an automatic way of filling forms that have been generated
using javascript?
I tried to use python+mechanize but am having trouble with javascript
forms.

This is the way the form is created:

<script
src="/WebResource.axd?d=uz45jgd0NVyzsVJV_sZDrjxBvvX2yHd3 hs2IGgfXLN3pPD65PTl8Gec4qFJa35leX_j-S-HQNzQg1sDk82eQYafpf0w9zI7HaoMUnMjb9ihQ96Tf0qvT-Air__85j5db0&amp;t=632972974720000000"
type="text/javascript"></script>

Thanks in advance for your help,
--j

Nov 22 '06 #1
1 1280

John wrote:
Is there an automatic way of filling forms that have been generated
using javascript?
I tried to use python+mechanize but am having trouble with javascript
forms.
Yes, it depends on what you're trying to do of course, but usually you
just set the input element's "value" property. (The exception here is
<input type="file">, where the value property is read-only for security
reasons.) This can be done even without javascript; just set the value
attribute in the HTML code if you want default values. It shouldn't
matter what your backend language is.
This is the way the form is created:

<script
src="/WebResource.axd?d=uz45jgd0NVyzsVJV_sZDrjxBvvX2yHd3 hs2IGgfXLN3pPD65PTl8Gec4qFJa35leX_j-S-HQNzQg1sDk82eQYafpf0w9zI7HaoMUnMjb9ihQ96Tf0qvT-Air__85j5db0&amp;t=632972974720000000"
type="text/javascript"></script>
We really can't do anything with that. The url is useless because it's
not absolute, so we can't look at your code. Please post a working
link if you want help.

Thanks,

David

Nov 22 '06 #2

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

Similar topics

6
by: Sjaakie | last post by:
Hi there, I'm trying to get this working with Firefox. Can you point out what's wrong? No problems with IE, Firefox doens't fill selMonth... TIA >>> the script... >>> <select name="selDay"...
6
by: Brian | last post by:
Hello, Basically, I'm running a query on a form's activation, and I'd like to have the results of the query be placed into other fields on the same form automatically. Does anybody know how...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
3
by: DotNetNewbie | last post by:
I am reading the book Teach Yourself Microsoft Visual Basic .Net 2003 in 21 Days. I am having trouble getting one of the exercises to work at the end of day 4. Exercises: 1. Create a new...
7
by: grpmangr | last post by:
hi Is ther anyway i can automatically fill out forms and submit them thru java? supposing i hav a normal txt file that contains all data that needs to be filed out into the form, is there anyway...
3
by: luanhoxung | last post by:
Hi ! i'm falling in headache status. i have 3 forms linking together by the sub/main form way. 1st form named fcontract: biggest 2nd form named fdetailcontract 3rd named fshipmentcontract: is...
5
by: c676228 | last post by:
Hi everyone, my colleagues are thinking about have three insurance plans on one asp page: I simplify the plan as follow: text box:number of people plan1 plan2 plan3
1
by: John | last post by:
Is there an automatic way of filling forms that have been generated using javascript? I tried to use python+mechanize but am having trouble with javascript forms. This is the way the form is...
2
by: KDawg44 | last post by:
Hi, I am writing a PHP website. When I am taking some input from a user, I write some static radio buttons for a category, and then also write some more that are generated based on a query to a...
5
by: Nathan Sokalski | last post by:
I have an ASP.NET application which is giving the following JavaScript error: 'theForm' is undefined However, when I do a View Source one of the <scriptelements is as follows: <script...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...

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.