Welcome Guest Search | Active Topics | Members

Auto-redirect fails in Java version Options
alpha47j
Posted: Thursday, January 03, 2008 8:08:00 PM
Rank: Newbie
Groups: Member

Joined: 12/22/2007
Posts: 1
Points: 3
Hi, the auto-redirect works with activeX but not with Java.

The java applet works because the images are actually uploaded and the entire upload page seems to execute. A button saying the files were uploaded appears. When I click ok.. nothing happens. However, in internet explorer with the activeX version it works perfectly redirecting the user as intended.

What could be causing this?

Here is the code i am using

Code:
iu.addParam("RedirectUrl", "editpicture.cfm");


thanks,
Jon
George Ulyanov
Posted: Sunday, January 06, 2008 10:25:51 PM
Rank: Advanced Member
Groups: Member

Joined: 7/26/2006
Posts: 205
Points: -4,065
Location: Solar System, Sun-3 (Earth/Terra), Eurasia Contine
Hello Jon,

Check your script out - if there are some definitions of event listeners (for example: iu.addEventListener("Progress", "iuProgress");), there must be declarations of them too.
If you still have problem - feel free to let me know.

Best regards,
George Ulyanov
stevepiercy
Posted: Monday, January 07, 2008 3:18:26 AM
Rank: Member
Groups: Member

Joined: 11/13/2007
Posts: 16
Points: 39
I am experiencing the same issue on Mac OS X 10.4.11 with Firefox 2.0.0.11. I have the following listeners in my script:

Code:
//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
iu.fullPageLoadListenerName = "fullPageLoad";


The redirect fails with the IU 5.0 demo, but works with my licensed version of IU 4.5.x.

Can you explain what you mean by "there must be declarations of them too."?

Andrew
Posted: Monday, January 07, 2008 4:44:12 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 709
Points: 108
stevepiercy wrote:
I am experiencing the same issue on Mac OS X 10.4.11 with Firefox 2.0.0.11. I have the following listeners in my script:

Code:
//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("ViewChange", "ImageUploader_ViewChange");
iu.fullPageLoadListenerName = "fullPageLoad";


The redirect fails with the IU 5.0 demo, but works with my licensed version of IU 4.5.x.

Can you explain what you mean by "there must be declarations of them too."?


If I understand the problem correctly, the point is that Java version does not execute JavaScript code by itself (such as redirects and events). It uses a special Java facility called LiveConnect. If for some reason LiveConnect crashes, Java applet is not able to operate with browser anyhow.

The common situation when LiveConnect get in trouble is when you specify the event listener function name but this function does not exists. When some event occurs, LiveConnect tries to call it, but since this function does not exist, it fails. After that neither event handlers nor RedirectUrl property will not work.

So for example if you have this line:

Code:
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");


you must have a declaration of the ImageUploader_UploadFileCountChange function on the same page.

If you do have it, make sure that you have no misprints in function names. Also, if you have complicated HTML, try to avoid function code and Image Uploader initialization to be in different parts of DOM tree (especially if your HTML is malformed).

Hope this helps.

Sincerely yours,
Andrew Simontsev from Aurigma Team
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.