Cheers,
Ivan
> --
> You received this message because you are subscribed to the Google Groups "jsTree" group.
> To post to this group, send email to jst...@googlegroups.com.
> To unsubscribe from this group, send email to jstree+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jstree?hl=en.
>
>
I did not know you used static data - how do you get that data? Add
"dataType" "json" to the ajax call where you load the data, not as you
did above.
Please paste where leftTreeIniData comes from (where do you set the
variable) and I will tell you what to do - it is generally bad
practice to eval, when you have other options. The issue is not jstree
related :)
Cheers,
Ivan
Especially this part: var myObject = eval('(' + myJSONtext + ')'); //
notice the '(' + and + ')'
It should work :)
Cheers,
Ivan
make sure you have quotes around class (it is a reserved keyword) so
do it like this:
"class" : "value"
which is also better JSON :)
As for type icons - IE6 does not support them, all higher version do,
I do not intend to fix that :)
Cheers,
Ivan
On Fri, Jun 25, 2010 at 21:20, Zoran Jeremic <jere...@yahoo.com> wrote:
>
> Hi Ivan,
>
> I found that the problem was caused by some sufficient "," I added
> between parentheses }}
>
> However, I still have some problems, like:
>
> 1)"invalid property id", both in FF and IE, in this example.
>
> [{data : 'A node', attr:
> {id:'phtml_1',rel:'root',class:'star'},children : [ { data: {title:
> 'XV5'}, attr: { id:'phtml_2' , rel:'competence', class:'star' }},
> { data: {title:'XV6'},attr:
> {id:'phtml_3',rel:'competence',class:'star' } }],{data : {title: 'Long
> format demo'}, attr : {id : 'test' } } }]
>
> Is there something wrong with this json string?
>
> 2)IE doesn't interpret node types identified with 'rel' attribute. It
> uses default "folder" icon for each node type.
>
> Zoran
>
>
> On Jun 25, 2:11 pm, Ivan Bozhanov <ivan.bozha...@gmail.com> wrote:
>> I see, well I am not familiar with Dojo, so I cannot really help you
>> here - all I can recommend is this:http://www.json.org/js.html
>>
>> Especially this part: var myObject = eval('(' + myJSONtext + ')'); //
>> notice the '(' + and + ')'
>> It should work :)
>>
>> Cheers,
>> Ivan
>>