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;

}



Answer this question

Dynamic Markup

  • portect

    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



  • KevMac

    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



  • ScaryKidsScaringKids

    Yes, you can use DOM APIs to modify the document dynamically. You can refer to HD DVD Spec Annex Z for more info.
  • Shailendra Kumar

    This is great!

    Where can I find samples

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


  • Dynamic Markup