Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

this.getHeader(name) ?

2

do you know how to get the responseHeader??
this.response.getHeader() doesn't work...

3

You should replace Mif.Tree::load, Mif.Tree.Node::load with your own functions, or rewrite only onSuccess function

tree.load({
     url: some_url,
     onSuccess: function(json){
            console.log(this.response.text);
            //do something with this.response.text
            if(tree.forest){
            tree.root=new Mif.Tree.Node({
                tree: tree,
                parentNode: null
            }, {});
            var parent=tree.root;
        }else{
            var parent=null;
        }
        Mif.Tree.Load.children(json, parent, tree);
        Mif.Tree.Draw[tree.forest ? 'forestRoot' : 'root'](tree);
        tree.$getIndex();
        tree.fireEvent('load');
        return tree;
     }
});
node.load({
   onSuccess 
....

4

Hello to all,

After I've loaded the json from a certain url I want to test what I got back from this url.

 .load({
           
         url: "../certainUrl
                 
           

    })

For example I want to test whether the return is a jsonString or an ordinary html side.

Is it possible to check this?