Developer forum

Forum » Development » accessibility

Reply

i want to apply an accessibility stylesheet in different pages

 

on the template thati am using to show these pages i want to put a link like this

<a href="?accessibility=true">accessible version</a>   or

<a href="?styleid=1234">accessible version</a>

 

the problem is that when i click it i want to see the accessibility version for the page id where i am navigating in that moment, but it always go to the home page of the accessibility version

 

any id because there are a lot of pages so it will take me a lot of time to put every where 

default.aspx?id=  ???

 

thanks a lot

stavros

 


Replies

 
Reply

Hi Stravos,

 

You can do this with javscript. Do it similar to this:

 

< script type="text/javascript">

  function ActivateAccessibility () {

    window.location = location.protocol + '//'+ location.host + location.pathname + location.search + &accessibility=true;

  }

 

  function DesactivateAccessibility () {

    window.location = location.protocol + '//'+ location.host + location.pathname + location.search + &accessibility=false;

  }

< /script>

 

Explore the location javascript object and you will get what you need.

 

Regards,

Nuno

 
Reply
nuno wrote:

Hi Stravos,

 

You can do this with javscript. Do it similar to this:

 

< script type="text/javascript">

  function ActivateAccessibility () {

    window.location = location.protocol + '//'+ location.host + location.pathname + location.search + &accessibility=true;

  }

 

  function DesactivateAccessibility () {

    window.location = location.protocol + '//'+ location.host + location.pathname + location.search + &accessibility=false;

  }

< /script>

 

Explore the location javascript object and you will get what you need.

 

Regards,

Nuno


 

thanks a lot it really help everything is working fine !!!

 

thanks nuno!!!

 

 

 

You must be logged in to post in the forum