Forums > Javascript

inspecting the order of outputs from js outlets

August 3, 2012 | 7:09 pm

I have a js which I suspect is causing problems by outputting in the wrong order.

1) Is the order of output in js outlet statements affected by presence or absence of semicolons, or is it determined completely by the order of the statements in the code?

2) How can I inspect the order of outputs from a js object’s outlets, or from the outlets of any object for that matter?

Many thanks in advance

Joe



MIB
August 5, 2012 | 9:04 pm

print? or post inside the js??


August 6, 2012 | 9:34 am

MIB’s suggestion is SOP for your second question. As to your first, if you are taking advantage of Javascript’s somewhat ad hoc approach to parsing code by not explicitly using a semicolon as a statement delimiter… I do not believe it will make a difference to execution order, but I would check a JS reference before laying my hand in fire about this.

Note that if you want a JS object to output in right-to-left order, you do have to write the outlet calls in that order. Sometimes R2L seems so ingrained in Max that a person might think it happens automatically, but it’s really all up to the object to make it happen.


Viewing 3 posts - 1 through 3 (of 3 total)