Search found 4 matches

by mercwnz
November 11th, 2010, 5:30 am
Forum: Scripts Discussion
Topic: Adding variables to a onclick in a for loop
Replies: 1
Views: 5914

Re: Adding variables to a onclick in a for loop

var dim = [50,50,500,450] var btn = [0,50,75,50] var d = new Window('window', 'test', [dim[0],dim[1],dim[2],dim[3]]) var y = ["morgen","overmorgen","meerdaagse","speciaal weer","renderen"]; for (var q = 0; q < y.length; q++){ d.[q] = d.add("but...
by mercwnz
November 11th, 2010, 2:37 am
Forum: Scripts Discussion
Topic: Adding variables to a onclick in a for loop
Replies: 1
Views: 5914

Adding variables to a onclick in a for loop

Example var loc = [0,1,2]; function soSomething(l){ $.write(l); } for(l = 0; l < loc.length; l++){ d.pnl.[l] = d.pnl.[c].add("panel", [0,(l*150),390,(l*150)+150]); d.pnl.[l].text = loc[l]; d.pnl.[l].btn= d.pnl.[c].[l].add("button",[155,8,300,30], "some text"); d.pnl.[l]...
by mercwnz
October 20th, 2010, 6:13 am
Forum: Scripts Discussion
Topic: Resolving the location of a script
Replies: 2
Views: 7107

Re: Resolving the location of a script

wow thanks, it was breaking my brain at some point!
by mercwnz
October 19th, 2010, 12:25 pm
Forum: Scripts Discussion
Topic: Resolving the location of a script
Replies: 2
Views: 7107

Resolving the location of a script

If you run alert( Folder .current) it shows you the location of the program that is currently executing the script. What I rather see is the location of the script that has been executed. Because if I want to include a XMLfile, I would like to use ../'s instead of the absoluteURI Current Folderlayou...