By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,483 Members | 3,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,483 IT Pros & Developers. It's quick & easy.

Posting a form into new window

P: n/a
Eli
How can I POST a form into a new window where I control the size and
other attributes of the new window?

Also. Are there any implications, perhaps due to browser security
(Interne Explorer?) that could cause problems if I try to post a form
at www.mydomain.com to www.anotherdomain.com?

Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Eli <u1@zolx.com> wrote:
How can I POST a form into a new window where I control the size and
other attributes of the new window?
You can't, in HTML. In HTML you can only use the target="_blank" or
target="somename" attribute in a <form> element to distract and confuse
the user with a new window, assuming he hasn't e.g. installed Google
toolbar and thereby prevented such operations.
Also. Are there any implications, perhaps due to browser security
(Interne Explorer?) that could cause problems if I try to post a form
at www.mydomain.com to www.anotherdomain.com?


Yes.

To get a more detailed answer, ask a more detailed question in a more
suitable group. The question is not about HTML.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2

P: n/a
On Sat, 25 Sep 2004 21:27:27 +0000 (UTC), "Jukka K. Korpela"
<jk******@cs.tut.fi> wrote:
the user with a new window, assuming he hasn't e.g. installed Google
toolbar and thereby prevented such operations.


Or installed Service Pack 2 for Windows XP which I assume many have by
now.
Jul 23 '05 #3

P: n/a
Eli
>> How can I POST a form into a new window where I control the size and
other attributes of the new window?


You can't, in HTML. In HTML you can only use the target="_blank" or
target="somename" attribute in a <form> element to distract and confuse
the user with a new window, assuming he hasn't e.g. installed Google
toolbar and thereby prevented such operations.


I run the google toolbar with the popup blocker activated and it
doesn't block popup windows initiated through a user action.

Jul 23 '05 #4

P: n/a
Eli wrote:
How can I POST a form into a new window where I control the size and
other attributes of the new window?


Not in HTML, no. But with a little Javascript...

<form target="foo" action="bar.cgi"
onsubmit="window.open('about:blank','foo','height= 150');">
<!-- ... -->
</form>

It's probably not a good idea though -- what makes you think you know what
sized window is best? Only the visitor knows his screen size, font size
and preferences (and perhaps the visitor's close friends and family?).

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./ed_harcourt/here_be_monsters/06_apple_of_my_eye.ogg

Jul 23 '05 #5

P: n/a
On Sat, 25 Sep 2004 15:56:52 -0600, Eli <u1@zolx.com> wrote:
How can I POST a form into a new window where I control the size and
other attributes of the new window?


You can't, in HTML. In HTML you can only use the target="_blank" or
target="somename" attribute in a <form> element to distract and confuse
the user with a new window, assuming he hasn't e.g. installed Google
toolbar and thereby prevented such operations.


I run the google toolbar with the popup blocker activated and it
doesn't block popup windows initiated through a user action.


That is correct. I have seen other popup blockers which won't open a new
window ever, even if you click on a targeted anchor.
Jul 23 '05 #6

P: n/a
Neal <ne*****@yahoo.com> writes:
On Sat, 25 Sep 2004 15:56:52 -0600, Eli <u1@zolx.com> wrote:
I run the google toolbar with the popup blocker activated and it
doesn't block popup windows initiated through a user action.


That is correct. I have seen other popup blockers which won't open a
new window ever, even if you click on a targeted anchor.


Sometimes they're even integrated into the browser.
http://lynx.browser.org/

--
Chris
Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.