-
1. Re: (JavaScript, CS3) calling functions with arguments on click?
mwdiers Oct 15, 2009 2:10 PM (in response to Mike.Edel)You are making this too hard.
When the code behind onClick runs, it has access to the entire object model. That includes all the text boxes in your dialog box, along with their current values. Just reference the current values in those boxes from your onClick code.
-
2. Re: (JavaScript, CS3) calling functions with arguments on click?
Mike.Edel Oct 19, 2009 1:47 AM (in response to mwdiers)It took some tinkering but I got it to work.
But I still don't see how I can access the whole DOM from within the onClick functions:
I can get to the dialog properties (this.parent.parent) but nevertheless don't have any way to access app.documents and such.
I was able to manage my way around by making the whole window a dialog instead of a window - thereby getting a return value from the OK button and being able to run the code from within main().
Still strange, though...
Cheers,
Mike

