cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2341
Views
0
Helpful
1
Replies

iOS Guest Portal Linking to Another Guest Portal Issue

paul
Level 10
Level 10

I have a Hotspot guest portal setup that has a button that links to a sponsored guest portal to allow certain account to sign in and get elevated access.  The button works fine on Android and Windows OS.  On iOS devices the customer is getting Error Loading page when they click the button.  The screen says on the Hotspot portal Accept/Deny screen but Error Loading Page pops up.  I am sure it is an issue with the psuedo browser and the java script i am using.  The button does show up correctly so portions of the java script are working fine.

 

Below is the script I am using.  Has anyone seen this issue before:

 

<script>

jQuery(window).ready(function() {

var hostname = window.location.hostname;

var WebSessionId = window.location.href.substr(window.location.href.search("\\?")).split("=")[2];

jQuery('.cisco-ise-body').append(' <center><a href="https://'+hostname+':8443/portal/PortalSetup.action?portal=e03676a2-c82d-11e9-9a84-1e9093947ec7&sessionId='+WebSessionId+'&action=cwa" style="color: rgb(0,255,0)"><font color="212121"><button type="submit">Go to Login Portal</button></font></a></center>');

});

</script>

1 Accepted Solution

Accepted Solutions

Colby LeMaire
VIP Alumni
VIP Alumni

I assume you grabbed the script from https://community.cisco.com/t5/network-access-control/linking-one-guest-portal-to-another-guest-portal/td-p/3467537

There are some slight differences in that post and what you have.  Try the following:

$(window).ready(function() {

You have jQuery(window).ready(function() {

 

View solution in original post

1 Reply 1

Colby LeMaire
VIP Alumni
VIP Alumni

I assume you grabbed the script from https://community.cisco.com/t5/network-access-control/linking-one-guest-portal-to-another-guest-portal/td-p/3467537

There are some slight differences in that post and what you have.  Try the following:

$(window).ready(function() {

You have jQuery(window).ready(function() {