Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
[SOLVED] IE 7 iuembed bug : "return out of function"
Rank: Member
Groups: Member
Joined: 7/29/2009(UTC) Posts: 21
|
Hi everyone, Here is how I corrected what seems to be a bug in iuembed.js : Code:
...
sb.add('var myFunction = function() { var result, result1;');
...
sb.add('return result; }; myFunction();');
...
The problem was that when starting my uploader, IE 7 throwed me a javascript error saying that I cannot use a "return" out of a function. Thus, I added an anonymous function in code generated by iuembed.js Regards, Edited by user Saturday, May 1, 2010 2:36:34 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Joined: 6/16/2009(UTC) Posts: 134
Was thanked: 8 time(s) in 8 post(s)
|
Hello Ublo!
This script rendered inside the <script> tag with addition attributes "for" and "name", which should prevent script to be evaluated in usual way and the code inside this script tag should be executed only when event in ActiveX control occurs. And we need "return" statement to return value to ActiveX control.
Anyway, it is strange, that you get errors in this code. Could you , please, provide the full page example? |
|
|
|
|
Rank: Member
Groups: Member
Joined: 7/29/2009(UTC) Posts: 21
|
|
|
|
|
Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
[SOLVED] IE 7 iuembed bug : "return out of function"
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.