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