Skip to main content
mauriziof35004155
Participant
Aug 6, 2015 8:02 PM UTC
Answered

how can I dynamically load a different css in an Air desktop application ?

I'd like to dinamically load one or more css in an Air desktop Air application to implement a Theme system.

How can I do that ?

This topic is closed to new replies. Start a new post to keep the conversation going.
mauriziof35004155
mauriziof35004155Correct answer
Participant
Aug 8, 2015 4:52 PM UTC

Ok, I finally managed to do that, by reloading the page in which I dynamically generate the css link.

The difficult part was to pass the theme identifier from the old page to the new.

I managed to do that writing it in an "option file" that I read at page load.

I'ts not very elegant, anyway I must save it in the option file  as a permanent option, so it' sufficient to read it while loading the html.

Regards

Maurizio.

1 reply

mauriziof35004155
mauriziof35004155AuthorCorrect answer
Participant
Aug 8, 2015 4:52 PM UTC

Ok, I finally managed to do that, by reloading the page in which I dynamically generate the css link.

The difficult part was to pass the theme identifier from the old page to the new.

I managed to do that writing it in an "option file" that I read at page load.

I'ts not very elegant, anyway I must save it in the option file  as a permanent option, so it' sufficient to read it while loading the html.

Regards

Maurizio.

Translate