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