473,396 Members | 2,102 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,396 software developers and data experts.

scripting a web site w/Javascript

Hi all,

I would like to script a specific website. I've had a start with
httplib, but now I need to push a button (<input type=button>) that
triggers a Javascript function and then directs to some URL. Obviously,
I cannot just go to the URL because the function would not get executed.

Can something like this be done via httplib? If not, is there a library
available to do it?

I would like to avoid scripting a browser (in this case, this would be
IE 5.5 or IE 6 on a windows box).

I'd be more than happy for ideas.

Regards,
-pu
--
Linux user # 359658
Jul 18 '05 #1
2 1234
Patrick Useldinger <p@trick.lu> writes:
I would like to script a specific website. I've had a start with
httplib, but now I need to push a button (<input type=button>) that
triggers a Javascript function and then directs to some
URL. Obviously, I cannot just go to the URL because the function would
not get executed.

Can something like this be done via httplib? If not, is there a
library available to do it?


You pretty much have to examine the javascript and figure out what it
really sends to the server when you press the button. Then program
httplib or urllib to send the same thing.
Jul 18 '05 #2
Patrick Useldinger:
I would like to script a specific website. I've had a start with
httplib, but now I need to push a button (<input type=button>) that
triggers a Javascript function and then directs to some URL. Obviously,
I cannot just go to the URL because the function would not get executed.

Can something like this be done via httplib? If not, is there a library
available to do it?


http://wwwsearch.sourceforge.net/DOMForm/

The JavaScript didn't work out for me a few months ago but the other
libraries available from this site helped write some tools for testing a web
site.

Neil
Jul 18 '05 #3

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

Similar topics

2
by: dito | last post by:
I have a .asp page that contains an activex componet. When I launch it in a browser, it returns an error that the viewer is unable to create it's resource objects. "To rectify this problem,...
0
by: Drew D. Saur | last post by:
When working on a web site for my employer, I uncovered what appears to be an undocumented bug in Internet Explorer 5 & 6 for Windows in regard to a (perhaps uncommon?) integration of Flash...
3
by: Shabam | last post by:
I have an application that allows users to input certain html tags via a markup code (like "http://www.sfd.com/image.gif"). The application then translates that into real html for output. I've...
7
by: CJD | last post by:
Hello, I want to create a server-side object that tracks the clicks of a user while they do a task in a browser. The tasks would take place on external web sites. Since there does not seem to be...
0
by: Earl Teigrob | last post by:
I want to allow users to input html (via a rich text box) or directly, into a form field, save it in a data store and then output that html to the browser, but not allow cross-site scripting. ...
0
by: Roz Lee | last post by:
I need to determine whether the client browser has disabled the Active Scripting option in their browser security settings as they will be unable to log in to my asp.net site if they have, in which...
2
by: ra90812 | last post by:
Can someone tell me how to do cross-site scripting in AJAX. any help would be highly appreciated. Thanks, Rajesh
4
by: Jacob JKW | last post by:
Having read the CLJ FAQ and having done extensive Googling, I do understand that in in general cross-domain iframe scripting is not permitted. One issue I have not seen directly addressed, however,...
3
by: somebody | last post by:
I've been informed of a cross-site scripting vulnerability. Given the example of this exploit below, how to you prevent this from being passed to the perl cgi script myscript.cgi? Normally the...
2
by: Kam | last post by:
I am using SQL Server 2000 Analysis services and Office Web Components to display the information. when the user first time access the web site, he/she did to add it into the trusted site list,...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.