[SOLVED] Â Mobile Device Detection |
12/9/2020 12:45:10 PM |
PHPRunner General questions | |
S
salus1 authorDevClub member
Is it possible to detect the client type at log-in and divert to a mobile version of the website? |
|
![]() |
HJB 12/9/2020 |
For inspiration, using Javascript Onload Event <script type="text/javascript"> |
![]() |
Admin 12/9/2020 |
There is no such thing as "mobile version of the website", your application will adapt itself based on the width of the screen. |
S
|
salus1 authorDevClub member 12/9/2020 |
I should have said an alternative, mobile-specific website. The sites PHPRunner generates may be responsive but are still far less than ideal on cell-phones. |
S
|
salus1 authorDevClub member 12/9/2020 |
After testing discovered this only works for external links in the header. Linking to a page in the same PHPRunner-generated site creates a loop that errors out for too many redirect attempts. |
S
|
salus1 authorDevClub member 12/10/2020 |
Actually proved problematic using AfterAppInit() and preg_match method. |