Advertisement

05.07.2008 at 07:46AM PDT, ID: 23382949
[x]
Attachment Details

Possible to change CSS stylesheet file via AJAX?

Asked by bemara57 in Asynchronous Javascript and XML (AJAX), JavaScript, Cascading Style Sheets (CSS)

I have a page with a dropdown of stylesheets the user can select from. When they select a stylesheet, it reloads the page with the <link href="style1.css" type="text/css" rel="stylesheet" /> pointing to a different file. Now I want the user to be able to change the stylesheets for the page without reloading the page. Is it possible to change the stylesheet in the <link> tag via AJAX?Start Free Trial
[+][-]05.07.2008 at 07:51AM PDT, ID: 21517045

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Asynchronous Javascript and XML (AJAX), JavaScript, Cascading Style Sheets (CSS)
Sign Up Now!
Solution Provided By: ali_kayahan
Participating Experts: 3
Solution Grade: A
 
 
[+][-]05.07.2008 at 07:59AM PDT, ID: 21517130

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.07.2008 at 08:04AM PDT, ID: 21517183

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628