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

Notification

Icon
Error

Options
Go to last post Go to first unread
jmarcv  
#1 Posted : Tuesday, January 15, 2013 10:51:56 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
In JS to create an object reference,
Looks like this is the way
uploader=$au.imageUploaderFlash('Uploader1');
instead of this
uploader=$au.uploader('Uploader1');

Very inconvenient to have different syntax. Took a lot of flipping pages in the Docs to finally see what was wrong.

But my question is, Running the second line in HTML5 (which is wrong) did not throw any JS exceptions so i had no idea the syntax was wrong.

Is there some sort of JS error suppression going on that I can bypass so I get errors shown?


jmarcv  
#2 Posted : Tuesday, January 15, 2013 11:10:06 AM(UTC)
jmarcv

Rank: Member

Groups: Member
Joined: 2/6/2012(UTC)
Posts: 27

Thanks: 1 times
FYI
$au.debug().level(3);
$au.debug().mode(['console']);
uploader=$au.uploader('Uploader1');

I am led to believe this should work, but I get no messages, and everything after the uploader= line that should cause an error is ignored.
vitaly  
#3 Posted : Wednesday, January 16, 2013 12:05:52 AM(UTC)
vitaly

Rank: Advanced Member

Groups: Member
Joined: 12/19/2012(UTC)
Posts: 164

Was thanked: 8 time(s) in 8 post(s)
Hi jmarcv,

I noticed that you incorrectly creating an object:
Quote:
uploader=$au.imageUploaderFlash('Uploader1');


Create the object correctly so:
Code:
var uploader = $au.imageUploaderFlash({id : 'Uploader1'});


Please use this code for creating the uploader instance, then your following code should work correctly.
Code:

$au.debug().level(3);
$au.debug().mode(['console']);
uploader=$au.uploader({id : 'Uploader1'});


I hope it helps.

Best regards,
Vitaly Kustov
Aurigma Technical Support
Best regards,
Vitaly Kustov
Aurigma Technical Support
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.