Highlighted

Refresh the content

Explorer ,
Oct 01, 2020

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,

-Monisha
TOPICS
Scripting

Views

194

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Refresh the content

Explorer ,
Oct 01, 2020

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,

-Monisha
TOPICS
Scripting

Views

195

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 01, 2020 0
Adobe Community Professional ,
Oct 01, 2020

Copy link to clipboard

Copied

Can you state your version of InDesign and OS?

Please expand on your issue with more details.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0
Explorer ,
Oct 01, 2020

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

-Monisha

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0
Adobe Community Professional ,
Oct 01, 2020

Copy link to clipboard

Copied

How about using the following

textframe.recompose()

-Manan

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0
Explorer ,
Oct 01, 2020

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 );

-Monisha

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 0
Adobe Community Professional ,
Oct 01, 2020

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 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 1
Adobe Community Professional ,
Oct 01, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 01, 2020 1
Adobe Community Professional ,
Oct 05, 2020

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 05, 2020 0
Explorer ,
Oct 08, 2020

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 )

-Monisha

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 08, 2020 0