Highlighted

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

New Here ,
Aug 06, 2015

Copy link to clipboard

Copied

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 ?

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.

TOPICS
Development

Views

113

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Aug 06, 2015

Copy link to clipboard

Copied

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 ?

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.

TOPICS
Development

Views

114

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Aug 06, 2015 0
New Here ,
Aug 08, 2015

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 08, 2015 0