Copy link to clipboard
Copied
Hi,
sorry, I'm just starting learning FrameMaker ExtendScript, but I'm still stucking at the basics. I googled a lot, used the FM10 scripting guide, and so on but I didn't find a low-level tutorial for users like me, so I'd be glad, if you'd help me by answering some - hopefully - simple questions:
Sorry, I know asking questions that way isn't very welcome. But I'd be very glad, if you'd answer them anyway. I'm keen on writing a beginners tutorial for technical writers with basic XHTML+JavaScript skills.
Thanks a lot
Stefan
Copy link to clipboard
Copied
Hi, Stefan,
There is not a direct analogue to the document.getElementById function because FrameMaker's document/object model is so fundamentally different than the HTML DOM. Depending on that you are trying to do, you would likely end up using doc.Find() for the relevant attribute/value pair. In a few circumstances, doc.getUniqueObject() might also be appropriate.
I have very limited experience moving XML into and out of Frame, so I'm feeling a bit speculative about your second question, but the first thing I would try would be myGraphic.FrameParent.Element.
For an introduction to many basic concepts, including the FM document model, I highly recommend Debra Herman's blog, Extending Framemaker.
Copy link to clipboard
Copied
Hi Stefan,
Regards,
Tarun Garg
Adobe FrameMaker Engineering