开发者

in an XSL stylesheet that outputs html, can javascript manipulate the DOM elements?

开发者 https://www.devze.com 2023-01-29 02:23 出处:网络
right now, i am just trying to append text with javascript.i have two div columns and i will be placing items into one or t开发者_高级运维he other depending on how many are in each column already, so

right now, i am just trying to append text with javascript. i have two div columns and i will be placing items into one or t开发者_高级运维he other depending on how many are in each column already, so i will not know which column to put them in and will have to dynamically assign them to a column. can javascript do this inside an XSL stylesheet?


JavaScript can only be used after the page has been rendered and the DOM has elements in it able to be edited. If you want to alternate where items in a dynamically sized list are placed, you will have to do that in the script that marks up the document that is rendered using the XSL Stylesheet.

0

精彩评论

暂无评论...
验证码 换一张
取 消