473,549 Members | 2,723 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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+mechaniz e but am having trouble with javascript
forms.

This is the way the form is created:

<script
src="/WebResource.axd ?d=uz45jgd0NVyz sVJV_sZDrjxBvvX 2yHd3hs2IGgfXLN 3pPD65PTl8Gec4q FJa35leX_j-S-HQNzQg1sDk82eQY afpf0w9zI7HaoMU nMjb9ihQ96Tf0qv T-Air__85j5db0&am p;t=63297297472 0000000"
type="text/javascript"></script>

Thanks in advance for your help,
--j

Nov 22 '06 #1
1 1182

John wrote:
Is there an automatic way of filling forms that have been generated
using javascript?
I tried to use python+mechaniz e 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=uz45jgd0NVyz sVJV_sZDrjxBvvX 2yHd3hs2IGgfXLN 3pPD65PTl8Gec4q FJa35leX_j-S-HQNzQg1sDk82eQY afpf0w9zI7HaoMU nMjb9ihQ96Tf0qv T-Air__85j5db0&am p;t=63297297472 0000000"
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
3019
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" id="selDay" style="width:50;" ></select> - <select name="selMonth" id="selMonth" style="width:50;"></select> -
6
17143
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 this can be done? I've tried setting the default value of the text fields on the form to be equal to ! using Access' expression
3
4845
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 protected by forms authentication. When I create forms authentication at root level it works but when I move my code up to the subfolder I get this...
3
2174
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 multiple-form application that displays two forms when it starts, each with a text box. Add code to each text box’s TextChanged event (this is the
7
2971
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 i can fill out a form and submit it automatically by providing only the URL of the form and the txt file? thanks Najla
3
1854
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 smallest. 1st & 2nd linked by ContNo. 2nd & 3rd linked by a togglelink button through fields: ContNo and ProNo. i want to fill ContNo and ProNo of...
1
1284
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 created: <script...
2
3382
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 database. I would like to have a text box for a description of the category. I would like that to be able to be typed in if the user selects on...
5
10795
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 type="text/javascript"> <!-- var theForm = document.forms;
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7450
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7957
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7809
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6043
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1059
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.