08-11-2020 01:37 PM
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>
Solved! Go to Solution.
08-11-2020 02:56 PM
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() {
08-11-2020 02:56 PM
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() {
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide