Details
Description
This was seen in the icemobilespring demo in the Android container. When submitting the buttons form, the value of '[button type]undefined' would be returned. The form post was sending '[button type]undefined'. This was only seen in the container, and not seen when using the browser. This example has a different path for submitting the form when in the container:
MvcUtil.enhanceForm = function(theForm) {
//submitting the form will update
//the containing div with class ajaxzone
$(document).ready(function () {
$(theForm).submit(function () {
var updateRegion = $(this).closest("div.ajaxzone");
if (window.ice && ice.upload) {
window.ice.handleResponse = function (data) {
updateRegion.html(unescape(data));
var msgElem = $("#message");
if( msgElem.length > 0 ){
$('html, body').animate({ scrollTop:msgElem.offset().top }, 500);
}
}
ice.upload($(this).attr("id"));
return false;
}
...
When the code just before the 'if( window.ice ...) was commented out, so that the form submitted normally, the problem went away. So, the only different between this example working and not working, is that when in the container, the example posts through the ice.upload function. So that function, must be serializing the input type submit buttons incorrectly.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Migration
created issue -
Migration
made changes -
Field | Original Value | New Value |
---|---|---|
Reporter | Migration [ remote ] | User Philip.breau [ philip.breau ] |
Migration
made changes -
Assignee | Steve Maryka [ steve.maryka ] | Greg Dick [ greg.dick ] |
Migration
made changes -
Fix Version/s | 1.2 Beta [ 10344 ] |
Migration
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |