Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
In a VBScript macro, I want to do something like:
If viewedWithIEPlugin then
doAction1;
else
doAction2;
end if
How to do that?
Thank you
I was unable to use ClientPlatform() from a VBScript macro, even when stored in a variable.
Instead I used ActiveDocument.GetApplication.QTProduct and it worked for me.
Hi,
You should be able to use the ClientPlatform( ) function.
Returns the name of the platform the client is using, for example, Mobile.iPhone.
All mobile clients start with Mobile, a period sign and the type of mobile device. Clients using AJAX will return Browser.Nameofbrowser, for example Browser.Firefox.
For Plugin or Standalone QV the returned value will be blank (which should allow you to target these clients as well with a separate action).
From the F1 help:
"The function will only return the client type for those clients using the QVPX protocol, that is the mobile clients and the AJAX client."
Thanks a lot I'll try that
I was unable to use ClientPlatform() from a VBScript macro, even when stored in a variable.
Instead I used ActiveDocument.GetApplication.QTProduct and it worked for me.
ClientPlatform() function returns a blank value for IE Plugin and Standalone client. Below macro should give you the result.
Function GetClientPlatform
Platform = ActiveDocument.Evaluate("ClientPlatform()")
if isnull(Platform) or Len(Platform)=0 then
GetClientPlatform = "Plugin or Standalone Platform"
'Msgbox("Plugin or Standalone Platform")
else
GetClientPlatform = Platform
' Msgbox(Platform)
end if
end function
I see thanks
I didn't know about this "evaluate" function but it seems to be quite useful
Could you please show me the detailed steps that how to use ActiveDocument.GetApplication.QTProduct?
Thanks.