cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1181
Views
1
Helpful
2
Replies

ISE 1.3 - Guest Portal - Custom JavaScript elements not correctly loaded

Wojciech Cecot
Cisco Employee
Cisco Employee

Hello Team,

Customer is trying to customize guest portal using JavaScript (ISE 1.3 patch 6).

An example is this one (output as seen on the client -> twice the same script):

<script>

$(document).ready(function() {

  $("#ui_aup_accept_button").hide();

  $("#ui_aup_decline_button").hide();

  $(".cisco-ise-form-buttons.two-button-layout").hide();

  $(".cisco-ise-content").hide(); 

  $('.cisco-ise-header').addClass('ui-header-fixed ui-header-fullscreen slidedown');

  $('#show_aup').unbind("click").bind("click",function(){ 

  alert('click');

  if($('#aup_container').hasClass('hidden')) {

  $('#aup_container').removeClass('hidden');

  $('#aup_container').addClass('hide');

  }

  if($('#aup_container').hasClass('hide')) {

  $('#show_aup_text').text('Nutzungsbedingungen ausblenden');

  }

  else {

  $('#show_aup_text').text('Nutzungsbedingungen einblenden');

  }

  $('#aup_container').toggleClass('hide').toggleClass('show');

  $("html, body").animate({ scrollTop: $(document).height() }, "slow");

  $('#show_aup_icon').toggleClass('rotate'); 

  });

});

</script><script>

$(document).ready(function() {

  $("#ui_aup_accept_button").hide();

  $("#ui_aup_decline_button").hide();

  $(".cisco-ise-form-buttons.two-button-layout").hide();

  $(".cisco-ise-content").hide(); 

  $('.cisco-ise-header').addClass('ui-header-fixed ui-header-fullscreen slidedown');

  $('#show_aup').unbind("click").bind("click",function(){ 

  alert('click');

  if($('#aup_container').hasClass('hidden')) {

  $('#aup_container').removeClass('hidden');

  $('#aup_container').addClass('hide');

  }

  if($('#aup_container').hasClass('hide')) {

  $('#show_aup_text').text('Nutzungsbedingungen ausblenden');

  }

  else {

  $('#show_aup_text').text('Nutzungsbedingungen einblenden');

  }

  $('#aup_container').toggleClass('hide').toggleClass('show');

  $("html, body").animate({ scrollTop: $(document).height() }, "slow");

  $('#show_aup_icon').toggleClass('rotate'); 

  });

});

</script><br _moz_editor_bogus_node="TRUE" />

To workaround the problem, they implemented

  $('#show_aup').unbind("click").bind("click",function(){ 

Instead of:

$('#show_aup').click()

Sometimes the script is only loaded after a page refresh.

The goal is to auto-approve the AUP to get the client redirected to a shop page. The user should only see the shop page without the AUP...

We tried with just the Success page but this was not working for most of the clients.

Could you anyone help on this? Does TAC supports that?

Thank you

Wojciech

2 Replies 2

Jason Kunst
Cisco Employee
Cisco Employee

Sorry why the same script? Are you explaining two issues here? Is it duplicating the script twice?

Have they tried using a post-login banner instead of the success page?

TAC doesn't have support for creating script, if you have an expert saying something should work and there is a problem with the scripting interface with ISE then that would be supported and can open a case to work with ISE developers.

What clients are failing? Is captive portal bypass enable on the controller to make sure apple devices behave and forced to use a real browser?

Hey Jason,

Thank you for you answer.

Well, goal here is to hide AUP page (and auto approve it). Once customer is disabling AUP they have some other problem --- redirection is not working properly, however I would like to to check if that would be possible to hide AUP page + click accept button in the background using js -- that would solve the problem here quickly.

It seems, ISE pushes that Script twice some times. It is only once in the configuration. Issue is visible on all devices (not only apple).

Anyway seems it will be not so easy so I will try to solve that from other side.

Thank you for help

Best Regards

Wojciech