Topic: Mif is not defined

Hello !

I'm trying to run Mif Tree, but I'm having an error : "Mif is not defined" at line 20.

The line 20 is :

tree = new Mif.Tree({

You can see this error on that URL : http://www.baguette.net/debug_mif_tree/

Did I miss a setup ?

Many thanks in advance for your tips !

Regards,

Re: Mif is not defined

Hi,

I think you should check your root path in the builder script (mif.tree-v1.1/assets/scripts/Builder.js)!

and change Builder.includeType('debug_mif_tree/mif.tree-v1.1/Source');

to Builder.includeType('source');

Re: Mif is not defined

Hello Jeff !

"mif.tree-v1.1" is a sub-folder of the "debug_mif_tree" folder that contains the HTML file used for testing Mif Tree.
That's why I use that root path (mif.tree-v1.1/assets/scripts/Builder.js)  for the builder script.

Thus, if I change Builder.includeType('source'), I see that it try to get files at the wrong place (I saw that via LiveHHTPHeaders) :

GET /Source/Core/Mif.Tree.mootools-patch.js HTTP/1.1


I don't understand why :
- It try to get theses files at the upper level directory (like a ../ instead of looking in the same directory where is my HTML file)
- It requests a "Source" (uppercase "S" letter) directory instead of a "source" directory. (case does matter in Linux server).

I've left http://www.baguette.net/debug_mif_tree/ with the changes to the Builder.includeType function call in order to allow you to see the problem.

Once again, thanks a lot for your help !

Regards,

Re: Mif is not defined

Hi Levure,

I think you misunderstood the You should check your root path in the builder script (mif.tree-v1.1/assets/scripts/Builder.js)!

Open that file: mif.tree-v1.1/assets/scripts/Builder.js

and set the variable root in it to: mif.tree-v1.1/ instead of ../

Last edited by Jeff (2009-09-12 18:33:20)

Re: Mif is not defined

Hello Jeff !

You're right, I misunderstood your previous answer.
Thanks many much for your help, i've finally got the mif_tree working : http://www.baguette.net/debug_mif_tree_v2/ ! :-)

And thanks you also for your patience !

If you came in Belgium, let's me known in order to drink a Belgian Beer ! :-)

Last edited by Levure (2009-09-14 02:19:59)