Forums > MaxMSP

why does this javascript not work in max?

Feb 22 2010 | 1:20 am

Dear users,

I have copied a javascript and loaded in the object [jsui].
However, it does not work.
What is the reason?


var newDefs = new Object;
newDefs.overimg = ‘arrow.gif’;
flyDefs (newDefs);
makeLayer (
"First title=#",
"Item 1=#",
"Item 2=#>menu2a",
"Item 2 submenu=#",
"Subitem 1=#",
"Subitem 2=#",
"Subitem 3=#>menu2a3",
"Subitem 3 submenu=#",
"Sub Subitem 1=#",
"Sub Subitem 2=#",

"Subitem 4=#",

"Item 3=#",
"Item 4=#>menu4a",
"Item 4 submenu=#",
"Subitem 1=#",
"subitem 2=#",


Feb 22 2010 | 1:33 am

It looks like it might be part of a dropdown menu css script which is extremely unlikely to work in max, especially as most of the code isn’t there in the first place. I did look into writing a script for [jsui] but my attention span is short so the project was shelved. It would be quite useful though so I might have another go at piecing something together.


Feb 22 2010 | 1:56 am

I want to have a submenu function in MAX.
I have an algorithm just by using built-in max objects.
It is, however, very clumsy.
I think, we can have such thing in javascript easily.
I attach my patch for submenu in MAX.


-- Pasted Max Patch, click to expand. --

Feb 22 2010 | 2:08 am

No need to re-post. As I mentioned: I shall look into writing something in javascript because it would be useful and a fun challenge. No promises though, and I am not in any great hurry. I’ll let you know if I come up with anything that works.


Feb 22 2010 | 2:17 am


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

Forums > MaxMSP