Dan wrote:
Maybe the submit link is actually the thing causing my problem (the
input/hidden values in the forms are not getting back to the server in
0.4, but they make it just fine in 0.31). Although it appears that
your option #3 is what I already have. Any thoughts on changes that
happened to iUI in .4 that might have caused things to not post in a
situation like this? I'll see if I can find a way to download 0.4 dev1
to try and pinpoint when things broke.
There were some fairly significant changes to form handling between 0.31
and 0.40-dev1 that may be causing trouble. You can try the dev1
version, but I suspect you will see the same problem. If you want to
try to make it work with 0.40, you should probably stick with
0.40-dev2. For reference the files are here:
http://code.google.com/p/iui/source/browse/iui/iui.js?r=REL-0.31
http://code.google.com/p/iui/source/browse/web-app/iui/iui.js?r=REL-0.40-dev2
The big change is that iUI now uses an object, rather than an array for
storing the form values before using ajax to send to the server. If you
compare the two encodeForm() method implementations -- it will be easy
to see the difference. You have two hidden inputs with the same name
"CollectionDetails.index" -- it looks like only one of them will be
sent. There are also differences in the way the strings are escaped.
0.31 uses the (deprecated) escape() function and on the value string.
0.40 uses encodeURIComponent() for both the name and the value strings.
Perhaps the names should not be encoded for method="POST".
There is clearly more work that has to be done to encodeForm() to
properly support checkboxes, radio buttons, etc. That's why 0.40 is
still a "dev" version. But with a little tweaking, you should be able
to make it work for your form.
You might want to look at web-app/test/form-test.html and
web-app/test/form-echo.gtpl - you can either install/use the Google App
Engine Java SDK to run this sample or you can rewrite form-echo.gtpl in
ASP or PHP so that you can echo the parameters that are being submitted.
Please let us know what you find.
-- 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.