Ok, what I'm trying to do is come up with a way to apply certain application settings (CSS to be exact) but only within an iframed version of the app.
If you've used Wordpress, I'm basically trying to implement a version of the theme live preview where it opens a version of the application in an iframe with theme changes made only to that instance of the site. I think it (Wordpress) does this by using JavaScript to change all the links to AJAX POST requests with the chosen theme as part the parameters.
I was thinking I might be able to do something similar by adding a page parameter (themePreview
or something similar), detect that and apply the temporary (session) style properties. I already have a custom CssResourceReference
that does this albeit without the page parameter detection though that seems simple enough.
My main problem is, I want the user to be able to navigate around the site within the iframe. To do so, I would need to maintain, persist or somehow inject the themePreview
page parameter into all page requests when it is already set.
Does anybody know how to accomplish this or alternatively, have a better idea?