I have a script I want to have on a separate page and simply link to the pages that need the script. I created a file called 'ipadcode.asp' the code on that page is:
If InStr(Request.ServerVariables("HTTP_USER_AGENT"), "iPad") > 0 Then
isIPad = True
isIPad = False
1. Is the code above correct or should it be different ?
2. Is the name of the file correct or should I change the extension to . vb ?
the page links to this file using :
<script language="VBScript" runat="server" src="../../../ScriptLibrary/ipadcode.asp"></script>
Is this correct or should the syntax be different ?
Hope it makes sense.