Rank: Member
Groups: Member
Joined: 1/11/2006(UTC) Posts: 4
|
After uploading one or more images firefox crashes from time to time. I close the uploader popop window and then after clicking the next link on the page firefox crashes (from time to time) An unhandled win32 exception occured in firefox.exe [476] there is no constant pattern in it .. sometimes i can upload several times without crashing, sometimes not. version info Mozilla/5.0 (Windows; U; Windows NT 5.2; nl-NL; rv:1.7.12) Gecko/20050919 Firefox/1.0.7 only special thing about the implementation of the image uploader is that I trigger a javascript after uploading. (works on ie, firefox, mac , etc...) Code:iu.addParam("RedirectUrl", "javascript:backToOpener();");
function backToOpener()
{
var url = opener.location.href;
opener.location.href = url;
window.close();
}
any thoughts ? Edited by user Sunday, February 17, 2008 7:21:56 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Joined: 8/3/2003(UTC) Posts: 998
|
Hello, RedirectUrl has to be a string with the URL to be redirected to. If you set something else the behavior is undefined. You can achieve the same result using the following code: Code:<script type="text/javascript" src="iuembed.js"></script>
<script type="text/javascript">
function ImageUploaderID_Progress(Status, Progress, ValueMax, Value, StatusText){
if (Status == "COMLETE"){
var url = opener.location.href;
opener.location.href = url;
window.close();
}
}
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...params...
//...other event listeners...
iu.addEventListener("Progress", "ImageUploaderID_Progress");
//...other event listeners...
iu.writeHtml();
</script>
Edited by user Sunday, February 17, 2008 7:24:27 PM(UTC)
| Reason: Not specified |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.