Search found 4 matches
- October 1st, 2011, 3:55 pm
- Forum: Scripts Discussion
- Topic: Evaluating a function stored as a string in an object??
- Replies: 1
- Views: 6573
Re: Evaluating a function stored as a string in an object??
And once again, the problem is my misunderstanding of the syntax.... If anyone else has problems using eval() with a user-input string, I found this link really helpful : http://chrysanthus.hubpages.com/hub/Strings-and-the-JavaScript-Eval-Function . The solution was wrapping the user-input string in...
- October 1st, 2011, 2:53 pm
- Forum: Scripts Discussion
- Topic: Evaluating a function stored as a string in an object??
- Replies: 1
- Views: 6573
Evaluating a function stored as a string in an object??
Ok, so I'm writing a toolbar script and I'm having trouble getting my user-generated functions to evaluate. Currently, the script stores the information for the toolbar's buttons in an array of objects. Each object holds data for a button and has properties for name, helptip, and command ('command' ...
- September 28th, 2011, 12:50 pm
- Forum: Scripts Discussion
- Topic: Updating buttons on a panel upon closing an floating panel??
- Replies: 1
- Views: 5814
Re: Updating buttons on a panel upon closing an floating pan
Ok. Finally I figured it out. I don't know why this didn't occur to me before... I wasn't taking into account the fact that when you remove something from the front of an array, all the objects behind it in the list get moved up in line, so to speak. So if I have an array of values ["a",&q...
- September 28th, 2011, 11:26 am
- Forum: Scripts Discussion
- Topic: Updating buttons on a panel upon closing an floating panel??
- Replies: 1
- Views: 5814
Updating buttons on a panel upon closing an floating panel??
So in my script I've got a dockable panel with a bunch of buttons created with this code: function createUI(thisObj) { myPanel = ( thisObj instanceof Panel) ? thisObj : new Window("palette", "Your Panel Name", undefined, {resizeable:true}); var editBtn = myPanel.add("button&...