cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

This community is for technical, feature, configuration and deployment questions.
For production deployment issues, please contact the TAC! We will not comment or assist with your TAC case in these forums.
Please see How to Ask the Community for Help for other best practices.

765
Views
0
Helpful
1
Replies
Highlighted
VIP Advocate

iOS Guest Portal Linking to Another Guest Portal Issue

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
Highlighted
Collaborator

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
Highlighted
Collaborator

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