Firefox doesn't take form target correctly

O

Oliver Arndt

hi,

I have a little problem with a form, specially the target defined in the
form tag:

<form name="mailMe" method="post" accept-charset="utf-8"
action="http://www.mysite.net/cgi" target="tempMail"
onSubmit="openPopup()"> [...] </form>

the function openPopup opens the target browserwindow (by
window.open('etc...) and loads a html with a frameset in the popup. the
second frame is named tempMail (=target) and its framesource is set to
"about:blank".

this works perfectly in IE and in opera but not in firefox! firefox
opens the target in the popup (as defined) AND in the main window itself
where the form is located.

<base target="tempMail"> doesn't help...

any help would be appreciated
 
J

Jonathan N. Little

Oliver said:
hi,

I have a little problem with a form, specially the target defined in the
form tag:

<form name="mailMe" method="post" accept-charset="utf-8"
action="http://www.mysite.net/cgi" target="tempMail"
onSubmit="openPopup()"> [...] </form>

the function openPopup opens the target browserwindow (by
window.open('etc...) and loads a html with a frameset in the popup. the
second frame is named tempMail (=target) and its framesource is set to
"about:blank".

this works perfectly in IE and in opera but not in firefox! firefox
opens the target in the popup (as defined) AND in the main window itself
where the form is located.

<base target="tempMail"> doesn't help...

any help would be appreciated

Where is this form...not visible on page that you list. Not your only
problem though, bad browser sniffing. I get a 'Please Update Your
Browser' when clicking links the a need 'Mozilla Firefox 1.0 and above.'
I'm using SeaMonkey which is technically *above* Mozilla Firefox 1.0!!!
 
O

Oliver Arndt

hi jonathan,

thanks for your quick response.
1) what do you mean with "where is this form"? where in the body of the
html file?
2) as I see firefox everywhere installed on my friends machines and as
the target attribute is such a basic feature, I still hope to find a
solution on that.

telling the user "sorry, not with your browser" is IMHO unacceptable for
a simple target option.

@all: maybe there is a special CSS tag or javascript for firefox to take
ONLY the popup as the form target... any idea? :)

cheers
oliver


Oliver said:
hi,

I have a little problem with a form, specially the target defined in
the form tag:

<form name="mailMe" method="post" accept-charset="utf-8"
action="http://www.mysite.net/cgi" target="tempMail"
onSubmit="openPopup()"> [...] </form>

the function openPopup opens the target browserwindow (by
window.open('etc...) and loads a html with a frameset in the popup.
the second frame is named tempMail (=target) and its framesource is
set to "about:blank".

this works perfectly in IE and in opera but not in firefox! firefox
opens the target in the popup (as defined) AND in the main window
itself where the form is located.

<base target="tempMail"> doesn't help...

any help would be appreciated

Where is this form...not visible on page that you list. Not your only
problem though, bad browser sniffing. I get a 'Please Update Your
Browser' when clicking links the a need 'Mozilla Firefox 1.0 and above.'
I'm using SeaMonkey which is technically *above* Mozilla Firefox 1.0!!!
 
J

Jim Moe

Oliver said:
<form name="mailMe" method="post" accept-charset="utf-8"
action="http://www.mysite.net/cgi" target="tempMail"
onSubmit="openPopup()"> [...] </form>

this works perfectly in IE and in opera but not in firefox! firefox
opens the target in the popup (as defined) AND in the main window itself
where the form is located.
Change
onSubmit="openPopup()"
to
onsubmit="openPopup(); return false;"
 
J

Jonathan N. Little

Oliver said:
hi jonathan,

thanks for your quick response.
1) what do you mean with "where is this form"? where in the body of the
html file?

Precisely, do not see *any* form elements withing source of given url:

http://home.mysite.com/

2) as I see firefox everywhere installed on my friends machines and as
the target attribute is such a basic feature, I still hope to find a
solution on that.


Target should be use with frames only, and use of frames is questionable IMO
telling the user "sorry, not with your browser" is IMHO unacceptable for
a simple target option.

But that is what happens when your click 'PhotoSite' link on your page.
Target had nothing to do with it, the browser sniffer did...
@all: maybe there is a special CSS tag or javascript for firefox to take
ONLY the popup as the form target... any idea? :)

Not sure what your mean here.

Also, please do not top post in the newsgroup

<snipped top posting>
 
O

Oliver Arndt

the given url was just an example to tell you that the ACTION uses a
http url. the page is not online yet.

what do you mean with "please do not top post in the newsgroup"?
what is a "top post" at all? sorry, for any inconvenience caused.
 
O

Oliver Arndt

hi jim,

thanks for the tip. unfortunately this didn't change anything. although
I thought, that ONSUBMIT must get a "return true" after all to launch
the ACTION...(?)


Jim said:
Oliver said:
<form name="mailMe" method="post" accept-charset="utf-8"
action="http://www.mysite.net/cgi" target="tempMail"
onSubmit="openPopup()"> [...] </form>

this works perfectly in IE and in opera but not in firefox! firefox
opens the target in the popup (as defined) AND in the main window itself
where the form is located.
Change
onSubmit="openPopup()"
to
onsubmit="openPopup(); return false;"
 
J

Jonathan N. Little

Oliver said:
the given url was just an example to tell you that the ACTION uses a
http url. the page is not online yet.

what do you mean with "please do not top post in the newsgroup"?
what is a "top post" at all? sorry, for any inconvenience caused.

Top posting is just what sound like, putting your comments at the top
ABOVE the bits you are replying to. in a newsgroup it can get quite
confusing as to what your are referring to when the posting looks like
Jeopardy!

A:Because it makes more sense to read the question first before the answer.

Q:What is wrong with top posting?

Got it? ;-)
 
O

Oliver Arndt

what do you mean with "please do not top post in the newsgroup"?
Top posting is just what sound like, putting your comments at the top
ABOVE the bits you are replying to. in a newsgroup it can get quite
confusing as to what your are referring to when the posting looks like
Jeopardy!

A:Because it makes more sense to read the question first before the answer.

Q:What is wrong with top posting?

Got it? ;-)

got it. nice example! thx :)
 
J

Jim Moe

Oliver said:
thanks for the tip. unfortunately this didn't change anything. although
I thought, that ONSUBMIT must get a "return true" after all to launch
the ACTION...(?)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top