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