Bug 19444
Summary: | form submit stops javascript execution | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sunhwan Jo <sunhwanj> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | ap |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.5 | ||
URL: | http://www.charmm-gui.org/test.html |
Sunhwan Jo
http://www.charmm-gui.org/test.html
When a form is submitted, javascript execution is stopped.
I'm using a javascript to periodically update a textarea, and
when I submit the form, this update is stopped.
This page works okay with safari 2, firefox 2&3, ie 6&7.
# test.html
<script src="javascripts/prototype.js" type="text/javascript"></script>
<script>
function updateMonitorComplete(request) {
//new Insertion.Top('monitor', request.responseText);
$('monitor').value = request.responseText;
}
function updateMonitorCall() {
new Ajax.Request('/monitor_test.php',
{
asynchronous:true,
onComplete: updateMonitorComplete
}
);
}
new PeriodicalExecuter(updateMonitorCall, 1);
</script>
<form action='monitor_test_form.php'>
<textarea id='monitor' name='monitor'>
</textarea>
<input type=submit>
</form>
# monitor_form_test.php
<? sleep(10); ?>
# monitor_test.php
<? echo time(); ?>
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
*** This bug has been marked as a duplicate of bug 14828 ***