General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Insert DOM element
-
achu June 11, 2010 at 9:37 pm
Insert DOM element
June 11, 2010 at 9:37 pmParticipants 0Replies 1Last Activity 12 years, 9 months agoIs 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.
Derek Read June 11, 2010 at 10:22 pm
Reply to: Insert DOM element
June 11, 2010 at 10:22 pmYes, 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 -
AuthorPosts
- You must be logged in to reply to this topic.