General XMetaL Discussion

  • achu

    Insert DOM element

    Participants 0
    Replies 1
    Last Activity 12 years, 9 months ago

    Is there any way to insert a new DOM element at the current cursor location?

    I would like to assemble a new element with three children elements in the macro and insert at the user cursor location.

    XMetal 5.5.

    Reply

    Derek Read

    Reply to: Insert DOM element

    Yes, you can do this.

    The XMetaL Developer Programmer's Guide has information on all the DOM APIs XMetaL Author and XMAX support. I would probably start my reading with the topic “DOMDocumentFragment” in your case which has an example similar to what you are asking for. Read this topic as well: “DOM interfaces”.

    You can view that topic here as well if you don't have XMetaL Developer:
    http://na.justsystems.com/webhelp/en/xmetaldeveloper/pg/6.0/pg.html#DOMDocumentFragment

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support