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

Notification

Icon
Error

Options
Go to last post Go to first unread
Ublo  
#1 Posted : Tuesday, April 27, 2010 1:58:38 AM(UTC)
Ublo

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

andreym  
#2 Posted : Tuesday, April 27, 2010 7:10:48 PM(UTC)
andreym

Rank: Advanced Member

Groups: Member
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?

Ublo  
#3 Posted : Saturday, May 1, 2010 2:36:15 AM(UTC)
Ublo

Rank: Member

Groups: Member
Joined: 7/29/2009(UTC)
Posts: 21

Well, in fact the problem was the way I used Image Uploader with JQuery...

This problem is solved, see : http://forums.aurigma.co...method--not-working.aspx

Users browsing this topic
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.