Re: Problem with submit in IE and FF
- From: Bart Van der Donck <bart@xxxxxxxxxx>
- Date: Fri, 15 Feb 2008 01:55:52 -0800 (PST)
szimek wrote:
I've got very sick IE-only app
Pleonasm :)
and I'm trying to make it FF compatible.
Not the most easy task.
Here's one of maaany problems.
There's a link (it's actually a span element with onclick event
handler) that triggers javascript function that submits a hidden form.
This form action attribute is set to "main.jsp".
So far, this sounds like a reasonable design.
In IE after clicking this button, the onclick event is later passed to
the body element, but there's nothing interesting going on.
Sounds strange. You say that the form is submitted at that onClick-
event, so one shouldn't rely on code that comes after it anymore,
because a new HTTP request is done already.
In the main.jsp file there's "parent.document.location=logout_page.jsp"
js code that redirects it to the logout page.
That is possible, but it's perhaps better to just let 'main.jsp'
output the HTML-code of 'logout_page.jsp'.
In FF the event is also passed to the body element, but the whole apge
just halts with the wait cursor. I've put the "debugger" keyword right
before the js code mentioned before (document.location) and the IE
debugger halts on it, but the Firebug doesn't see it and the page just
hangs.
It works fine in Opera 9.23...
I'm having difficulties to understand what you mean here.
I have no idea how the main.jsp is generated, but is there some way to
break on the first line of the generated main.jsp that the form action
points to? This way I could see if the generated FF version differs
from IE version. I really have no other idea how to solve this
problem.
One common debug method is to put an alert()-command at the spot in
question, and to comment out the rest of the code. This way you could
check variables, outcomes from functions, etc. step-by-step and only
proceeding to a next level if the former is error-free.
Or maybe there's a way to see exactly in IE and FF what data is send
by this form (it's using POST) and if it's different in any way.
'main.jsp' receives the POST-ed data. One debug method is to let
'main.jsp' output the received data to screen and exit the program.
Hope this helps,
--
Bart
.
- Follow-Ups:
- Re: Problem with submit in IE and FF
- From: szimek
- Re: Problem with submit in IE and FF
- References:
- Problem with submit in IE and FF
- From: szimek
- Problem with submit in IE and FF
- Prev by Date: Re: Problem with submit in IE and FF
- Next by Date: iframe pasteHTML
- Previous by thread: Re: Problem with submit in IE and FF
- Next by thread: Re: Problem with submit in IE and FF
- Index(es):