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

Cisco Community Designated VIP Class of 2020

475
Views
0
Helpful
4
Replies
Highlighted
Beginner

WEB-AUTH Splash Page

Hi All,

I've got a very basic web authentication page working but need to include a CHECK BOX to verify a user has read the T&C's. Got the checkbox to display but need the script code to disable (when not checked) either username/password input or the submit button. Any of you bright guy's managed to do this or anything similar.

Web splash attached.

Thank for any replies,

Jay  

Everyone's tags (4)
1 ACCEPTED SOLUTION

Accepted Solutions
Beginner

Re: WEB-AUTH Splash Page

Guy's sorted it

if(!document.getElementById('agree').checked){

     alert('Please agree to the terms and conditions.');

     return false;

   }else{

   var link = document.location.href;

      var searchString = "redirect=";

      var equalIndex = link.indexOf(searchString);

      var redirectUrl = ""; if(!document.getElementById('agree').checked){
     alert('Please agree to the terms and conditions.');
     return false;
   }else{
   var link = document.location.href;
      var searchString = "redirect=";
      var equalIndex = link.indexOf(searchString);
      var redirectUrl = "";

Thanks anyway!

View solution in original post

4 REPLIES 4
Beginner

Re: WEB-AUTH Splash Page

Guy's sorted it

if(!document.getElementById('agree').checked){

     alert('Please agree to the terms and conditions.');

     return false;

   }else{

   var link = document.location.href;

      var searchString = "redirect=";

      var equalIndex = link.indexOf(searchString);

      var redirectUrl = ""; if(!document.getElementById('agree').checked){
     alert('Please agree to the terms and conditions.');
     return false;
   }else{
   var link = document.location.href;
      var searchString = "redirect=";
      var equalIndex = link.indexOf(searchString);
      var redirectUrl = "";

Thanks anyway!

View solution in original post

Hall of Fame Master

WEB-AUTH Splash Page

Good job... can you post the html so others can actually see what you have done?

Thanks,

Scott

Help out other by using the rating system and marking answered questions as "Answered"

-Scott
*** Please rate helpful posts ***
Beginner

Re: WEB-AUTH Splash Page

No problem done!

Cheers,

Jason

Hall of Fame Master

Re: WEB-AUTH Splash Page

Thanks Jason!

Sent from Cisco Technical Support iPhone App

-Scott
*** Please rate helpful posts ***
CreatePlease to create content
Content for Community-Ad

August's Community Spotlight Awards