Details
Description
Some third party components use there own java script to submit to the server. (Calling form.submit() directly)
Intercept these calls, and perform an iceSubmit instead.
Example Code.
window.onLoad(function() {
$enumerate(document.forms).each(function(form) {
form.submit = function() {
iceSubmit(form, null, new Object());
};
form.onsubmit = function() {
iceSubmit(form, null, new Object());
};
});
});
Intercept these calls, and perform an iceSubmit instead.
Example Code.
window.onLoad(function() {
$enumerate(document.forms).each(function(form) {
form.submit = function() {
iceSubmit(form, null, new Object());
};
form.onsubmit = function() {
iceSubmit(form, null, new Object());
};
});
});
Issue Links
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Ken Fyten [ ken.fyten ] | Mircea Toma [ mircea.toma ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13376 | Fri Mar 09 11:30:47 MST 2007 | mircea.toma | Capture form submits and send them as XMLHttpRequests. Issue |
Files Changed | ||||
![]() |
Fix Version/s | 1.6DR#3 [ 10050 ] | |
Assignee Priority | P1 |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13430 | Tue Mar 27 16:58:17 MDT 2007 | mircea.toma | Force MyFaces to inject the needed Javascript on each submit. Rewrite 'submit' and 'onsubmit' when the browser document is updated -- |
Files Changed | ||||
![]() ![]() ![]() ![]() |
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13628 | Fri Apr 20 17:23:48 MDT 2007 | mircea.toma | Use previously registered function -- |
Files Changed | ||||
![]() |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #13765 | Thu May 03 11:53:56 MDT 2007 | mircea.toma | Refactor how and when form submits are redirected to avoid memory leaks -- |
Files Changed | ||||
![]() ![]() ![]() |
Fix Version/s | 1.6 [ 10031 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 | |
Assignee | Mircea Toma [ mircea.toma ] |
Forced MyFaces to inject the needed Javascript on each submit (removing custom attribute from the requestMap). Also, rewrite 'submit' and 'onsubmit' when the browser document is updated.