charles h wrote:
> The onsubmit="submitForm(this); return false" didn't work (exactly
> the same behavior).


Yes, the same behavior, but you were one step closer... :-)

>  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 !!! :-)
>   

I forgot that submitForm() is a private, internal method of iUI.  
Removing the function wrapper (as you did) will solve your problem, but 
it is not a good practice.  Try adding this code into the "public" part 
(e.g. between getSelectedPage and isNativeUrl) of iUI:

    xxSubmitForm: function(form)
    {
        submitForm(form)
    },

Make sure the previous object is followed by a comma.

In your code call:
iui.xxSubmitForm(form)

That should do it.

> But one other error message appeared:
>
> JavaScript Error on Line 1
> Refused to set unsafe header "Content-Length"
>   

This error doesn't  seem to cause any harm as the "Content-Length" 
header is set automatically by the browser.  This issue will be fixed in 
0.40.

> Maybe there is other way to do that.
>   

You can safely comment out that line.

> Also the iPhone keyboard is still visible after the search.
>   
This problem (or a similar one) has  been submitted on this list 
before.  I'm not sure how to resolve it, but it probably involves moving 
the focus away from the current form/field.  (I'm assuming the "return 
false" told the browser we're not submitting the form and it therefore 
assumes we're still editing it.)

-- Sean


--~--~---------~--~----~------------~-------~--~----~
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