You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Peter Skala (JIRA)" <ji...@apache.org> on 2014/08/08 12:25:12 UTC

[jira] [Created] (TAP5-2372) Ajax Form Submit on IE8 reloades the page

Peter Skala created TAP5-2372:
---------------------------------

             Summary: Ajax Form Submit on IE8 reloades the page
                 Key: TAP5-2372
                 URL: https://issues.apache.org/jira/browse/TAP5-2372
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.4
            Reporter: Peter Skala
            Priority: Minor


Form submit on a form with zone parameter defined   results in full page reload on IE 8. 

Reason:
zone binds the submit event to the document with the call of:

onDocument: function(events, match, handler) {
  return exports.on( document, events, match, handler);
},
 in t5-core-dom. The the reason why it does not work in IE 8 is described here:
http://yuilibrary.com/forum-archive/forum/viewtopic.php@p=30202.html
and here:
http://www.quirksmode.org/dom/events/submit.html

The solution or or workaround is to call 

dom..on( selector, events, match, handler);
where the selector defines the form, which triggers the submit instead of :
on( document, events, match, handler);





--
This message was sent by Atlassian JIRA
(v6.2#6252)