•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Perl section within the Software Development category of DaniWeb, a massive community of 397,851 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,341 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Perl advertiser:
Views: 1726 | Replies: 3
![]() |
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
How to open HTML page in a browser with specific options selected in drop-down boxes?
#1
Jul 9th, 2007
How to open HTML page in a browser with specific options selected in drop-down boxes?
Hi Everybody,
The task that I have is from Perl script to open HTML page in a browser with specific options selected in drop-down boxes and edit fields using POST method.
The good example of such a page would be http://stockcharts.com/h-sc/ui. So if I do that manually:
I open the link in a browser,
type Symbol: $COMPQ,
select Chart Attributes\Range: 3 Month,
select Overlays\first row\first column: Exp Mov. Avg,
type Overlays\first row\second column: 5,
click on Update button.
The page gets updated according with the specified parameters.
So how can I get the same result using Perl?
I tried to search for the solution, but haven’t found anything directly related to my problem. So please point me to the source if the answer already exists somewhere else.
Thank you,
J
Hi Everybody,
The task that I have is from Perl script to open HTML page in a browser with specific options selected in drop-down boxes and edit fields using POST method.
The good example of such a page would be http://stockcharts.com/h-sc/ui. So if I do that manually:
I open the link in a browser,
type Symbol: $COMPQ,
select Chart Attributes\Range: 3 Month,
select Overlays\first row\first column: Exp Mov. Avg,
type Overlays\first row\second column: 5,
click on Update button.
The page gets updated according with the specified parameters.
So how can I get the same result using Perl?
I tried to search for the solution, but haven’t found anything directly related to my problem. So please point me to the source if the answer already exists somewhere else.
Thank you,
J
Re: How to open HTML page in a browser with specific options selected in drop-down boxes?
#2
Jul 10th, 2007
You will want to look into WWW::Mechanize if you intend to use perl.
http://search.cpan.org/author/PETDAN...W/Mechanize.pm
http://search.cpan.org/author/PETDAN...e/Examples.pod
http://search.cpan.org/author/PETDAN...hanize/FAQ.pod
There are also some modules written for gathering stock data.
http://search.cpan.org/~hampton/Fina...nance/Quote.pm
I have never used any of the above modules so I can't really help much more than I already have.
this will most likely be very difficult for you unless you already have solid perl experience and know how to install the modules.
http://search.cpan.org/author/PETDAN...W/Mechanize.pm
http://search.cpan.org/author/PETDAN...e/Examples.pod
http://search.cpan.org/author/PETDAN...hanize/FAQ.pod
There are also some modules written for gathering stock data.
http://search.cpan.org/~hampton/Fina...nance/Quote.pm
I have never used any of the above modules so I can't really help much more than I already have.
this will most likely be very difficult for you unless you already have solid perl experience and know how to install the modules.
•
•
Join Date: Jul 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Re: How to open HTML page in a browser with specific options selected in drop-down boxes?
#3
Jul 10th, 2007
Thank you, KevinADC.
I will look through the sources you suggested. Though my goal is not to gather stock data. The web page I mentioned was just a convenient public domain example. I am not an experienced Perl programmer and my goal is to learn how to operate with the HTML/scripts in the web browser, not just data collecting/processing.
I appreciate it anyway.
J
I will look through the sources you suggested. Though my goal is not to gather stock data. The web page I mentioned was just a convenient public domain example. I am not an experienced Perl programmer and my goal is to learn how to operate with the HTML/scripts in the web browser, not just data collecting/processing.
I appreciate it anyway.
J
•
•
Join Date: Jul 2007
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
Re: How to open HTML page in a browser with specific options selected in drop-down boxes?
#4
Jul 19th, 2007
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Perl Marketplace
•
•
•
•
apple beta bon browser dell development dreamweaver drivers echo email encryption firefox framework games graphics html intel internet linux microsoft mozilla news nintendo open open source open-source opengl opera operating patch privacy programming red hat security software source sun system testing ubuntu vista w3c web webmail wesnoth wii windows wysiwyg xml xp
- Open an html page from within flash flv? (Graphics and Multimedia)
- PHP in a html page? (PHP)
- Inetrnet Explorer could not open the search page after SP2 install (Web Browsers)
- "Internet Explorer could not open the start page" (Web Browsers)
- Open HTML Page (Perl)
Other Threads in the Perl Forum
- Previous Thread: CGI, Tomcat, Perl, not compiling Perl code?
- Next Thread: how to open web page using perl


Linear Mode