Jump to content

Win Xp And Ie8 Js Notification Script


Recommended Posts

With the Caspio Version 8.8 update, HTTPS datapages are no longer displaying for Win XP users on IE8. Is it possible to write a script that will display a custom message on a non-HTTPS datapage (which are still compatible). I need the script to read the User Client for "Windows NT 5.1" or "Windows 5.2" and where Browser Type contains "IE 7.0" or "IE 8.0" If yes then I would like to write a custom message in HTML advising user their computer is not compatible - if no then I would like to redirect the page to another datapage (login page). Otherwise they will receive blank screen when on XP and IE 8. I am currently using app parameters [@cbUserAgentString] and [@cbUserAgent] to display user info for them to self-diagnose.

Link to comment
Share on other sites

  • 2 weeks later...

Good morning Carl,

How are you?

I think, you can add the following script to an HTML block:

<script>
var myMessage = "Please go to the link to see the content of the page: ";
var myLink = "http://caspio.com";
myMessage = myMessage + '<a href="' + myLink + '">' + myLink + '</a>';

if ((navigator.userAgent.indexOf("MSIE 7") != -1) | (navigator.userAgent.indexOf("MSIE 8") != -1))
{
if ((navigator.userAgent.indexOf("Windows NT 5.1") != -1) | (navigator.userAgent.indexOf("Windows NT 5.2") != -1))
document.write(myMessage);
}
</script>

Please, enter your message and your link.

I'll be grateful, if you tell me if the code works.

Have a nice day!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...