On 03/16/2010 12:28 PM, Dilipkumar Jadhav wrote:
Hello folks,
Is it possible to call a CSS code from inside the JS code in XWiki.The
Javascript code has been written to import CSS from a specific folder in the
web application structure. However, in XWiki, I've added both the JS& the
CSS code to the same Page using the Javascript& Stylesheet extensions. The
problem is that the JS file is unable to find the CSS code embedded inside
the same Page. Do I have to use the URL of the Stylesheet or do I write some
velocity code to get the run-time URL of the CSS file? Would this method
work.Any help is appreciated. Thank you.
I really don't know what you're talking about. What do you mean by JS
"calls" CSS code? JS doesn't care about CSS usually, unless you're
really trying to dynamically change stylesheets using the CSSOM.
How exactly does "Javascript code import CSS"?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/