[Webkit-unassigned] [Bug 19922] image doesn't get fetched when requested from an onunload handler.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Apr 14 16:22:58 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=19922
ajay <info.varghese at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |info.varghese at gmail.com
--- Comment #16 from ajay <info.varghese at gmail.com> 2010-04-14 16:22:57 PST ---
Just desperate to get a solution for this issue. Here is a workaround I came up
with. Like to share with you all.
It works cross site for browser Safari, Chrome, IE, & firefox. Should work with
other browser too.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
function imageget() {
im = new Image()
im.src="http://example.com/foo.gif";
setTimeout('document.myform.submit()', 100);
};
</script>
</head>
<body>
<form name="myform">
<input class="submit" id="but1" type="submit" value="Click Me"
onclick="imageget();return false;" />
</form>
</body>
here i am tricking safari by breaking the current call stack by returning false
and making a asynchronous call for the submit using setTimeout.
Thanks
Ajay
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list