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

using onclick events in the javascript dialog box

New Here ,
Jun 19, 2008 Jun 19, 2008
hi,
Iam creating dialog box to get some inputs and use it for batch processes. so, i need onclick events on that dialog box.

for example:

in my dialog box, i fix a browse button(check box) and connect the choose folder box. but, after i click okay button only i get the choose folder box. i need to see the choose folder dialog box after click the check box.. is it possible???

regards,
Subha oviya
TOPICS
Scripting
1.5K
Translate
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 Beginner ,
Jun 20, 2008 Jun 20, 2008
I don't understand what you are asking.
Can you paste some code?

Bob
Translate
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
New Here ,
Jul 16, 2008 Jul 16, 2008
hi bob,

The following code shows a dialog box.

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
var myDialog = app.dialogs.add({name:" Dialog Onclick Test", canCancel:true});
with(myDialog)
{
with(dialogColumns.add())
{
with(dialogRows.add())
{
with(dialogColumns.add())
{
var browse_check = checkboxControls.add({staticLabel:"Browse",checkedState:false});
}
}
}
}

if(myDialog.show() == true)
{
if(browse_check.checkedState == true)
{
var filefolder = Folder.selectDialog("Choose Files Folder");
}
}

This is my code. After run this script a dialog box appear on the screen. we check the browse check box and then click he ok button. after then a "choose folder dialog box" will appear.

i need to see the "choose folder dialog box" before press the ok button and after check the check box. IS IT POSSIBLE?

Regards,
Subha
Translate
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 ,
Jul 17, 2008 Jul 17, 2008
onclick works with ScriptUI Window objects, not InDesign Dialog objects.

Dave
Translate
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
New Here ,
Jul 20, 2008 Jul 20, 2008
LATEST
hi Dave,

It is Working in ScriptUI. I wrote a script in indesign CS3 With onclick events in a dialog box. it is perfectly working. Is there anyother events in CS3 javascript without onclick event?

Regards,
Subha_oviya
Translate
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