Re: Issue 80 in iui: Form does not submit when target="_self" (original summary: Search button does not work...)

3 views
Skip to first unread message

i...@googlecode.com

unread,
Feb 2, 2010, 3:20:32 AM2/2/10
to iui-i...@googlegroups.com
Updates:
Summary: Form does not submit when target="_self" (original summary:
Search button does not work...)
Status: Accepted

Comment #7 on issue 80 by msgilli...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

Note: There are some interesting and useful comments in Issue #137 and
Issue #177, but let's make all new
comments here on Issue #80.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

i...@googlecode.com

unread,
Feb 2, 2010, 3:24:39 AM2/2/10
to iui-i...@googlegroups.com

Comment #8 on issue 80 by msgilli...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

There is a reproducible test case in web-app/test/form-test.html
Navigate to the 'Post to target="_self"' item and then touch "Submit" --
the clickHandler never seems to be called
on the current iPhone or iPhone simulator
Until we have a fix, you can run this test case directly from the GAE demo
site:
http://iui-js.appspot.com/test/form-test.html

i...@googlecode.com

unread,
Feb 2, 2010, 3:28:40 AM2/2/10
to iui-i...@googlegroups.com

Comment #9 on issue 80 by msgilli...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

After some painstaking debugging, I've determined that adding the following
attribute to the form element
seems to fix the problem:
onclick="(function(event) {return true;})()"

I"m not sure what the actual problem is here. It might be a bug in Mobile
Safari. Alternatively it is something
complicated in event processing. For whatever reason, the above workaround
seems to make the problem go
away. Maybe it will give someone a clue as to what the real problem is.

i...@googlecode.com

unread,
Mar 17, 2010, 5:28:43 PM3/17/10
to iui-i...@googlegroups.com

Comment #10 on issue 80 by vichuds...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

I haven't dived into the code for this much yet, but I noticed no one
mentioning any
browsers but safari or mobile safari. I did a quick test w/Firefox on
Windows at the
appspot demo and the submit anchor worked. The Req Info and Parameters
field sets on
the full page echo were blank though, so maybe they were not encoded/sent?
If no one
else has it solved by then I'll try to dig deeper when I have a little free
time
closer to the weekend.

Also of interesting note when I tried to submit any of the other form test,
again in
Firefox, the loading over lay came up, but never went away and the full
page echo
never showed up either. The page effectively locks down with no response to
clicks on
the back button or dialog. The only way I found to get out was with page
refresh. I
don't know if it's related to this issue or not but I discovered it while
looking at
this issue. Maybe something with the new busy flag, or just a Firefox issue?

i...@googlecode.com

unread,
Mar 18, 2010, 4:22:28 AM3/18/10
to iui-i...@googlegroups.com

Comment #11 on issue 80 by vichuds...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

What about this?????
Compatibility Notes

The target attribute of <form> is deprecated, and is not supported in HTML
4.01
Strict / XHTML 1.0 Strict DTD.

From http://www.w3schools.com/TAGS/att_form_target.asp

The form demo page is ......

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Just throwing it out there.
At work right now so I cant try to change the doc type to check. Maybe
later. Anyone
else thought of or tried this already???????

i...@googlecode.com

unread,
Apr 12, 2012, 12:48:58 AM4/12/12
to iui-i...@googlegroups.com
Updates:
Labels: Milestone-REL-0.40

Comment #12 on issue 80 by msgilli...@gmail.com: Form does not submit when

target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

(No comment was entered for this change.)

i...@googlecode.com

unread,
Jul 22, 2012, 4:41:17 AM7/22/12
to iui-i...@googlegroups.com
Updates:
Status: Fixed

Comment #13 on issue 80 by msgilli...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

This issue should be fixed in 0.4-beta3. I've made major fixes in form
handling.
Note also that using <input type="submit"> is now preferable to <a
type="submit"> which is deprecated.

If you find any issues with form submission in 0.4-beta3 or later, please
open a new issue.


i...@googlecode.com

unread,
Aug 3, 2012, 5:16:50 PM8/3/12
to iui-i...@googlegroups.com

Comment #14 on issue 80 by msgilli...@gmail.com: Form does not submit when
target="_self" (original summary: Search button does not work...)
http://code.google.com/p/iui/issues/detail?id=80

This page addresses the Safari bug I was talking about in Comment #9:
http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html
Some of the comments and the linked tests are interesting, too.


Reply all
Reply to author
Forward
0 new messages