Copy link to clipboard
Copied
Hi
I need to change story contents inside onClick button
closeBtn.onClick = function() {
var stories = getStories(app.selection); // get all selection stories
for (var i = 0; i < stories.length; i++) {
var abc = stories.contents = 'fsdfdsfdsfs';
}
artDialog.close();
}
Thanks
Hi Robert,
This topic has been dealt like a zillion times over the forum. You are (probably) using a modal dialog. So you can't have any access to the DOM BEFORE you closed the dialog.
closeBtn.onClick = function() {
//checking if you can go further
artDialog.close(1);
}
}
if ( win.show() == 1 ) //call code
Copy link to clipboard
Copied
Hi Robert,
This topic has been dealt like a zillion times over the forum. You are (probably) using a modal dialog. So you can't have any access to the DOM BEFORE you closed the dialog.
closeBtn.onClick = function() {
//checking if you can go further
artDialog.close(1);
}
}
if ( win.show() == 1 ) //call code
Copy link to clipboard
Copied
Thank you very much