Copy link to clipboard
Copied
Hi Professionals,
I need to refresh the modified content without reloading remaining content and the page. Please guide me.
Regards,
Copy link to clipboard
Copied
Can you state your version of InDesign and OS?
Please expand on your issue with more details.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
How about using the following
textframe.recompose()
-Manan
Copy link to clipboard
Copied
Hi Manan
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[0].recompose();
alert(myText );
Copy link to clipboard
Copied
I'm really not sure what you're asking for. Is it this?
Recompose All Stories:
Cmd-Opt-/
Ctrl-Alt-/
~Barb
Copy link to clipboard
Copied
Hi Monisha,
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.
-Manan
Copy link to clipboard
Copied
There is very less information for this querry to answer. What to refesh whether InDesign File or any variable which is getting change after any operation performed by JavaScript?
Sunil
Copy link to clipboard
Copied
Hi,
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);
alert(doc.xmlElements.item(0))
alert("myRoot "+myRoot.markupTag.name)
var elts = myRoot.evaluateXPathExpression("//product_family")
alert("elts:" +elts )