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

Notification

Icon
Error

Options
Go to last post Go to first unread
terra3110  
#1 Posted : Wednesday, September 28, 2011 7:20:11 AM(UTC)
terra3110

Rank: Newbie

Groups: Member
Joined: 9/22/2010(UTC)
Posts: 3

Hello,

I'm upgrading our Javascript installation of Image Uploader 6 to 7. Is there a way to place buttons outside the Image Upload itself like in Version 6?

With the old IU I did like this: (javascript)

var iu = new ImageUploaderWriter("ImageUploader1", 680, 345);

// no button on top, we create them ourselves

iu.addParam("ShowButtons", "false");

Then I added a button to the page where IU has been placed on:

<a href="#" class="start buttom fl_right" name="Send" href="#" onclick='getImageUploader("ImageUploader1").Send();'>Upload images</a>

I did not find in the manual if there's still a way to do so, is there?

Regards,

Michael

p.shirykalova  
#2 Posted : Wednesday, September 28, 2011 8:34:40 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Hi Frank,

ShowButton property was eliminated in Image Uploader 7.

To workarount it you can set UploadButtonText to "" (empty string), in this case the button will disappear.

Please try it on our online demo site:

  • Open JavaScript Console,

  • type this:

    Code:
    $au.uploader('ctl00_content_Uploader1').uploadButtonText('');

  • see the result.
  • Best regards,

    Pauline Shirykalova

    Aurigma Technical Support

    terra3110  
    #3 Posted : Thursday, September 29, 2011 5:20:19 AM(UTC)
    terra3110

    Rank: Newbie

    Groups: Member
    Joined: 9/22/2010(UTC)
    Posts: 3

    Hello Pauline,

    Quote:

    ShowButton property was eliminated in Image Uploader 7.

    To workarount it you can set UploadButtonText >to "" (empty string), in this case the button will disappear.

    Please try it on our online demo site:

  • Open JavaScript Console,

  • type this:

    Code:
    $au.uploader('ctl00_content_Uploader1').uploadButtonText('');

  • see the result.
  • That did help thank you. The button gets removed like you said. But the message send is not being 'understood' by the application object anymore, I tried like this:

    Code:
    $au.uploader('ImageUploader1').Send();

    at my onclick handler. So how do I have to change that message, so the selected files are being uploaded?

    Version 6 of did that by calling:

    Code:
    getImageUploader("ImageUploader1").Send();

    Is that method still in place or do I have to do it differently?

    Best regards,

    Michael

    terra3110  
    #4 Posted : Thursday, September 29, 2011 8:36:23 AM(UTC)
    terra3110

    Rank: Newbie

    Groups: Member
    Joined: 9/22/2010(UTC)
    Posts: 3

    Hello,

    I located the method in IU7 documentation. It changed names to:

    Code:
    $au.uploader('ImageUploader1').upload();

    Regards,

    Michael

    p.shirykalova  
    #5 Posted : Thursday, September 29, 2011 7:33:30 PM(UTC)
    p.shirykalova

    Rank: Advanced Member

    Groups: Member
    Joined: 7/13/2011(UTC)
    Posts: 286

    Thanks: 6 times
    Was thanked: 31 time(s) in 31 post(s)
    Frank,

    You are right, Send() method was renamed into upload().

    Here is the complete list of JavaScript API changes between Image Uploader 6 and 7.

    Please feel free to ask if you have any additional questions.

    Best regards,

    Pauline Shirykalova

    Aurigma Technical Support

    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.