• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Refresh the content

Participant ,
Oct 01, 2020 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

790

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
community guidelines
Community Expert ,
Oct 01, 2020 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.

Votes

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
community guidelines
Participant ,
Oct 01, 2020 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

Votes

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
community guidelines
Community Expert ,
Oct 01, 2020 Oct 01, 2020

Copy link to clipboard

Copied

How about using the following

textframe.recompose()

-Manan

Votes

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
community guidelines
Participant ,
Oct 01, 2020 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

Votes

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
community guidelines
Community Expert ,
Oct 01, 2020 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 

Votes

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
community guidelines
Community Expert ,
Oct 01, 2020 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

Votes

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
community guidelines
Advocate ,
Oct 05, 2020 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

Votes

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
community guidelines
Participant ,
Oct 08, 2020 Oct 08, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines