Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: (OT) To open a form in a new window

by fruiture (Curate)
on Jan 04, 2004 at 13:38 UTC ( #318656=note: print w/ replies, xml ) Need Help??


in reply to (OT) To open a form in a new window

This is not a Perl problem, but anyway: the window.open() method accepts a name of the new window as second parameter. This allows you to specify that window as a target for something, for example a form.

<form target="form_results" ...> ... <input type="submit" value="Go" onclick="javascript:window.open('','fo +rm_results','...');void(0)" /> </form>
--
http://fruiture.de


Comment on Re: (OT) To open a form in a new window
Download Code
Re: Re: (OT) (OT) To open a form in a new window
by Anonymous Monk on Jan 04, 2004 at 14:13 UTC
    So you're saying if I used print header, start_html('MyNewPage'); as the title of the post.pl, I'd write <input type="submit" value="Go" onclick="javascript:window.open('','MyNewPage','...');void(0)" /> ?

      No. You're confusing the title of an HTML-Document with the name of a frame/window. It's completely irrelevant what post.pl actually prints. Everything concerning windows happens on the clientside. The HTML i wrote already did all the necessary stuff: on submit-button-click a window is created (without content) an named "form_results" and the form has the target "form_results" which causes the browser to put the response of your post.pl into that window, if he is capable of and configured for handling multiple windows.

      This has still nothing to do with Perl.

      --
      http://fruiture.de

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://318656]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (15)
As of 2014-09-22 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls