This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: Javascript mobile device detection redirect
Feedback Type: Question
Product Area: Domino Server
Technical Area: Application Development
Platform: Not Applicable
Release: 8.5.1
Reproducible: -Reproducibility-
I've found some js code that does a fairly simple check to see what type of device browser a user is using to view a domino website. If it is one of the mobile devices we check for, I want it to bounce the user to a different url. Here is the code:
If I put it in a button for testing purposes it works fine. I need to put it in a form that is displayed in a frameset for a website. So when the homepage is opened it will check for a mobile device and then bounce the user to our mobile website. I thought the onLoad event of the form in the top pane of the frameset would be the best spot but it won't do the redirect. Where can I put this code that will execute the location.href line?
Feedback number WEBB8ZJPVB created by ~Judy Opkroakol on 10/29/2012
Status: Open
Comments: