0
using onclick events in the javascript dialog box
New Here
,
/t5/indesign-discussions/using-onclick-events-in-the-javascript-dialog-box/td-p/1160766
Jun 19, 2008
Jun 19, 2008
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Beginner
,
/t5/indesign-discussions/using-onclick-events-in-the-javascript-dialog-box/m-p/1160767#M275694
Jun 20, 2008
Jun 20, 2008
Copy link to clipboard
Copied
I don't understand what you are asking.
Can you paste some code?
Bob
Can you paste some code?
Bob
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_subha_oviya_
AUTHOR
New Here
,
/t5/indesign-discussions/using-onclick-events-in-the-javascript-dialog-box/m-p/1160768#M275695
Jul 16, 2008
Jul 16, 2008
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Participant
,
/t5/indesign-discussions/using-onclick-events-in-the-javascript-dialog-box/m-p/1160769#M275696
Jul 17, 2008
Jul 17, 2008
Copy link to clipboard
Copied
onclick works with ScriptUI Window objects, not InDesign Dialog objects.
Dave
Dave
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_subha_oviya_
AUTHOR
New Here
,
LATEST
/t5/indesign-discussions/using-onclick-events-in-the-javascript-dialog-box/m-p/1160770#M275697
Jul 20, 2008
Jul 20, 2008
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

