|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: an external javascript question
[TP] > > Here is the other question, I am trying to move all the js > out and try to call the js as you would in html. I have tried > everything that I could find that other users have posted such as > [snip...] > > As an alternative for now, I am importing the stylesheet that > has the javascript and calling the stylesheet by the template > name. I am assuming that this is not the procedure that most > developers use on this list. As soon as this is done, I want > to do the same for the .css. > > I would appreciate some tips. > First, write an HTML page that works, including the javacript imports - no transformations or dynamic pages involved. Then write a stylesheet that reproduces that HTML page. Only after this is all working is it time to move to anything more complicated. As for the script location, when it looks for scripts specified by <script type='text/javascript' src='xxx'></script>, the HTML page loaded by the browser will use paths relative to the host page's path, not relative to any path that was used to generate the page (the browser would not know about that). Cheers, Tom P XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








