Dynamic Markup

Is it planned to support dynamic markup? Like dynamic html.

It would be very usable to be able to manage XMU elements from inside the script:

function OnPlay()

{

elements["mainButton"].style.visible = false;

}

[257 byte] By [Polina] at [2008-2-7]
# 1

It's not just planned -- it's already there :-)

You can do exactly that today -- you can animate any animatable element you like from within script. You can also add, remove, and modify elements themselves (add a new button, remove a div, etc.) but there are some restrictions on exactly how much DOM structure you can change without re-loading the page (which might result in a frame or two of 'freeze-frame' while the DOM is reloaded)

Have you been trying something but not getting it to work correctly?

PeterTorr-MSFT at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 2

This is great!

Where can I find samples?

Samples "Chapters", "Buttons" and "HelloWorld" don't use this feature.

Polina at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 3

The "Pretty Buttons" blog sample uses it to some extent; I don't have a very interesting example up right now that modifies lots of different things though...

http://blogs.msdn.com/ptorr/archive/2006/07/06/658680.aspx

PeterTorr-MSFT at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 4
Yes, you can use DOM APIs to modify the document dynamically. You can refer to HD DVD Spec Annex Z for more info.
QimingLu at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...