471,353 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Submit form, open result in a browser

Hi,

Is there a way to submit a form and then open the resulting page in the
default browser? (Writing the form submission code is not a problem by
the way)
I guess what I'm asking is how I can get the resulting URL and feed it
to the webbrowser module.
I need to do it this way because the site owners will not let me parse
the page and show the result inside my application... loss of
advertising revenue I guess. And since it's just a small added feature
to the application, opening it in a browser is fine. I just need to get
an idea on how to do it...

Thanks
Tina
Jul 27 '07 #1
4 1244
Tina I schrieb:
Hi,

Is there a way to submit a form and then open the resulting page in the
default browser? (Writing the form submission code is not a problem by
the way)
I guess what I'm asking is how I can get the resulting URL and feed it
to the webbrowser module.
I need to do it this way because the site owners will not let me parse
the page and show the result inside my application... loss of
advertising revenue I guess. And since it's just a small added feature
to the application, opening it in a browser is fine. I just need to get
an idea on how to do it...
That's not how HTTP works. Either you use e.g. urllib to make a http
call and save the resulting html into a temporary file - and then you
point your webbrowser to that.

Or you open the webbrowser with the url + parameters.

But there is no "result url"

Diez
Jul 27 '07 #2
Is there a way to submit a form and then open the resulting page in the
default browser? (Writing the form submission code is not a problem by
the way)
There is a library called "Client Form" that does this for you.
wwwsearch.sourceforge.net/ClientForm/
I guess what I'm asking is how I can get the resulting URL and feed it
to the webbrowser module.
After the form is submitted through ClientForm open the resulting
response using the webbrowser module.

Cheers
Thejaswi Puthraya

Jul 27 '07 #3
theju wrote:
>Is there a way to submit a form and then open the resulting page in the
default browser? (Writing the form submission code is not a problem by
the way)

There is a library called "Client Form" that does this for you.
wwwsearch.sourceforge.net/ClientForm/

After the form is submitted through ClientForm open the resulting
response using the webbrowser module.

Cheers
Thejaswi Puthraya
ClientForm is absolutely perfect! Less than 10 lines of extra code and
the job is done :)

Thanks!
Tina
Jul 27 '07 #4
In article <hs*********************@telenor.com>,
Tina I <ti*****@bestemselv.comwrote:
>theju wrote:
>>Is there a way to submit a form and then open the resulting page in the
default browser? (Writing the form submission code is not a problem by
the way)

There is a library called "Client Form" that does this for you.
wwwsearch.sourceforge.net/ClientForm/

After the form is submitted through ClientForm open the resulting
response using the webbrowser module.

Cheers
Thejaswi Puthraya

ClientForm is absolutely perfect! Less than 10 lines of extra code and
the job is done :)
Jul 27 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by vishal | last post: by
3 posts views Thread by Mark Michel | last post: by
3 posts views Thread by Matt | last post: by
2 posts views Thread by Terence Parker | last post: by
6 posts views Thread by CJM | last post: by
19 posts views Thread by Bruce Duncan | last post: by
1 post views Thread by Andy Kasotia | last post: by
3 posts views Thread by Eric van der Niet | last post: by
reply views Thread by XIAOLAOHU | last post: by

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.