I need to refresh the modified content without reloading remaining content and the page. Please guide me.
Can you state your version of InDesign and OS?
Please expand on your issue with more details.
For CS6 I have to refresh the modified content in the text frame will dragdrop the attributes without reloading the remaining content and pages in the InDesign document
How about using the following
I have tried using recompose method but I get an undefined value and sometimes it returns some buffer values. Please provide me some links to refer recompose method. The code I used is attached below.
var myDoc = app.activeDocument;
var myText= "";
myText += myDoc.textFrames.recompose();
I'm really not sure what you're asking for. Is it this?
Recompose All Stories:
Recomopse method is not supposed to return anything, see the method declaration below
undefined recompose ()
Recomposes the text in the TextFrame.
It is just meant to recompose the text. So the idea is if you are doing many edits in the textframe/document, the text may not reflect the latest changes as it's not composed to make that happen we call this method.
For refreshing the content I need to fetch all the attributes values inside the xml so that I tried this code bit it only returns the object value of the xml file. Please guide me.
var doc = app.activeDocument;
var myRoot = doc.xmlElements.item(0);
var elts = myRoot.evaluateXPathExpression("//product_family")
alert("elts:" +elts )