Pages: 1
Print
Author Topic: Insert DOM element  (Read 861 times)
achu
Member

Posts: 39


« on: June 11, 2010, 03:37:28 PM »

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.
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1552



WWW
« Reply #1 on: June 11, 2010, 04:22:28 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:
http://na.justsystems.com/webhelp/en/xmetaldeveloper/pg/6.0/pg.html#DOMDocumentFragment
Logged
Pages: 1
Print
Jump to:  

email us