Programmatically change the loaded theme, based on JS result

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
wprevett
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Tue Jun 14, 2011 1:59 pm

Programmatically change the loaded theme, based on JS result

Post by wprevett » Tue Mar 13, 2012 2:19 pm

Hello Fellow Devs,

As the title suggests, I'm looking for a way to change which App_Theme is used to render the page based on some javascript running on first load.

For example, if the user is running a mobile browser, load content A, if on a desktop machine, load content B

Thanks!

wprevett
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Tue Jun 14, 2011 1:59 pm

Re: Programmatically change the loaded theme, based on JS result

Post by wprevett » Tue Mar 13, 2012 6:31 pm

I found a way to do this without javascript, please disregard :P

Post Reply