Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
tom.leuntjens  
#1 Posted : Monday, February 06, 2006 10:29:45 PM(UTC)
tom.leuntjens

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

Alex Makhov  
#2 Posted : Wednesday, February 08, 2006 6:25:21 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Administration
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

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Similar Topics
Firefox crashing on Mac when loading java applet (Image Uploader)
by stark77 2/26/2007 8:02:52 AM(UTC)
Firefox crashing (Image Uploader)
by sunbomb 9/15/2005 11:23:18 PM(UTC)
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.