On Sep 30, 3:42 pm, Sean Gilligan <[email protected]> wrote:
> charles h wrote:
> > On Sep 30, 1:16 pm, Sean Gilligan <[email protected]> wrote:
>
> >> charles h wrote:
>
> >>> Thanks for the links.
> >>> The only different thing is that I validate the form by the "Search"
> >>> button of the iPhone keyboard, not by clicking a submit link (I think
> >>> that's the issue), so the javascript listener for the "click" doesn't
> >>> work.
>
> >>> I tried to add this in the form:
> >>> onsubmit="javscript:submitForm(this);"
>
> >>> But that didn't worked.
>
> >> It sounds like you are narrowing it down.  Can you provide a 'reduced'
> >> test case that shows what works and what doesn't?  That would be very
> >> helpful if you could post that on the list and/or submit as an issue on
> >> Google Code.  This page has some tips for submitting issues and created
> >> 'reduced test cases' (aka reductions):
>
> >>http://code.google.com/p/iui/wiki/Contributing
>
> >> You may also want to try it with the 0.40 pre-release which should be
> >> available in the next few days.
>
> > I've already posted this as an issue in the Google Code page (Issue
> > #182:http://code.google.com/p/iui/issues/detail?id=182), I'm not sure
> > how I can provide a test case.
>
> You could modify the music.html file that came with iUI to reproduce the
> problem.  That would be ideal.
>
> I'm almost certain that you are having problems because you are not
> using the built-in click handlers of iUI to submit the form.  You should
> be able to call submitForm yourself,  but maybe you also need to prevent
> the default submission of the form. Try:
> onsubmit="submitForm(this); return false"
>

The onsubmit="submitForm(this); return false"  didn't work (exactly
the same behavior). Something weird by the way, I have the debug
console on my iPhone Safari, and just when a press the "Search" touch
of the iPhone keyboard I can that there is one error:

JavaScript Error on line 23 (in my HTML file)
ReferenceError: Can't find variable: submitForm

So I removed the "(function() {" and "})();" of the iui.js, and it
worked !!! :-)

But one other error message appeared:

JavaScript Error on Line 1
Refused to set unsafe header "Content-Length"

Maybe there is other way to do that.

Also the iPhone keyboard is still visible after the search.

--
Charles

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to