Rank: Newbie
Groups: Member
Joined: 8/9/2011(UTC) Posts: 5
Thanks: 2 times
|
Hi,
I am upgrading Aurigma from a much older version(5.5) to 7.0
I need to redirect our user if the Aurigma plug in is not installed on another page, before we were using the javascript function iu.getActiveXInstalled()
How do I do this check ?
the only javascript function I found was actualVersion from activeXControl. But I does not seam posssible to read it if I am not in an Image Uploader event call back....
I need something like this to work: <asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server"> <aur:Uploader ID="Uploader1" runat="server" ...... </aur:Uploader> <script type="text/javascript">
installAurigmaCheck();
function installAurCheck() {
value1 = $au.uploader(uploaderId).activeXControl().actualVersion;
if (value == null) { window.location.href = 'redirectInstallation.aspx'; } } </script>
Thanks J-Francois
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello J-Francois, Thank you for contacting us. I have prepared a simple application based on Image Uploader ASP.NET control. It illustrates how to determine whether ActiveX is enabled. In the case if not, standard upload form will be displayed instead of Image Uploader. I attached zip archive with application to this case. Please download, and try it out. If you have any additional questions or problems, please feel free to let me know. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 8/9/2011(UTC) Posts: 5
Thanks: 2 times
|
Hi Dimitri, thanks for the demo, but it does not achieve the behavior I want. Your apps check if ActiveX is supported and if not show the standard upload. What I want to check on IE is: ActiveX is supported AND if the Aurigma Image Uploader is installed. If not I want to redirect on another page for the installation. Previously, with the older version(5.5) I was able to do this check with the image uploader javascript function iu.getActiveXInstalled(). Do you have something similar as getActiveXInstalled() in the 7.0 version. thanks J-Francois FYI: I'm using Image uploader for ASP.NET Edited by user Thursday, August 11, 2011 6:28:19 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello J-Francois, I created new sample, and attached it for your reference. Unfortunately, getActiveXInstalled method was eliminated from scripts of Image Uploader 7. I added this method in my sample: Code:
function getActiveXInstalled() {
/// <summary>Verifies whether ActiveX control is installed. If yes, it returns true; otherwise it returns false.</summary>
/// <returns type="Boolean" />
iu = $au.uploader().activeXControl().progId();
if (iu) {
try {
var a = new ActiveXObject(iu);
return true;
}
catch (e) {
return false;
}
}
return false;
}
Then I made checking using it Code:
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
if (!getActiveXInstalled())
window.location = 'redirect.htm';
It worked fine for me. Please try it out also. In case you have any questions please feel free to let me know. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
1 user thanked Dmitry.Obukhov for this useful post.
|
|
|
Rank: Newbie
Groups: Member
Joined: 8/9/2011(UTC) Posts: 5
Thanks: 2 times
|
Thanks a lot, work perfectly fine
J-Francois
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
You are welcome. Let me know if you have any problems :) |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
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.