WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
14828
All Javascript that should run after a form has been submitted does not run
https://bugs.webkit.org/show_bug.cgi?id=14828
Summary
All Javascript that should run after a form has been submitted does not run
Stephen
Reported
2007-07-31 10:38:40 PDT
Once the initial onSubmit JS has been executed, any JS after that will not run (works fine in Firefox, IE6, IE7). This is specifically more crippling with the introduction of PHP 5.2 and its ability to return fileupload progress information via XMLHTTP Requests. Steps to reproduce: 1) Attach an onSubmit function to a form. 2) In that function set an interval that will run a chunk of code. 3) The code in the set interval will not execute. Code example: <form enctype="multipart/form-data" onsubmit="myFunction()"> function myFunction() { alert('this works'); myFunctionInterval = setInterval(function() { alert('this does not work'); }, 200); }
Attachments
Test case from Comment #0
(283 bytes, text/html)
2007-07-31 23:25 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2007-07-31 23:25:26 PDT
Created
attachment 15770
[details]
Test case from
Comment #0
In the future, please attach test cases to the bug for easier testing. Thanks!
David Kilzer (:ddkilzer)
Comment 2
2007-07-31 23:28:23 PDT
Confirmed with a local debug build of WebKit
r24792
with Safari 3 Public Beta v. 3.0.2 (522.12) on Mac OS X 10.4.10 (8R218). Both Firefox 2.0.0.6 and Opera 9.21 show both alerts in the test case. This is not a regression as Safari 2.0.4 (419.3) with its original WebKit behaves the same way as the newer Safari/WebKit.
Mark Rowe (bdash)
Comment 3
2007-08-01 05:41:13 PDT
<
rdar://problem/5376648
>
Alexey Proskuryakov
Comment 4
2010-11-12 12:13:38 PST
***
Bug 19444
has been marked as a duplicate of this bug. ***
Gavin Barraclough
Comment 5
2012-09-06 17:28:30 PDT
Our behaviour here appears to matches Firefox, Opera, Chrome – if you still see a bug, please attach a new test case that better demonstrates the problem.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug