| Issue 342: | How to use dynatree drag n drop with lazy loading technique. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
How to use dynatree drag n drop with lazy loading technique.
I am getting error when initializing tree with drag n drop.
Its because tree is not loaded yet due to lazy loading technique (an ajax call will populate the tree) and dynatree tries to initialize dnd (drag n drop methods) which is raising javascript error in jquery.ui.core at line 267.
Error: Microsoft JScript runtime error: '$.ui[...].prototype' is null or not an object
--------------------start - code from jquery.ui.core ------------------
// deprecated
$.extend( $.ui, {
// $.ui.plugin is deprecated. Use the proxy pattern instead.
plugin: {
add: function( module, option, set ) {
var proto = $.ui[ module ].prototype;
for ( var i in set ) {
proto.plugins[ i ] = proto.plugins[ i ] || [];
proto.plugins[ i ].push( [ option, set[ i ] ] );
}
},
call: function( instance, name, args ) {
var set = instance.plugins[ name ];
if ( !set || !instance.element[ 0 ].parentNode ) {
return;
}
for ( var i = 0; i < set.length; i++ ) {
if ( instance.options[ set[ i ][ 0 ] ] ) {
set[ i ][ 1 ].apply( instance.element, args );
}
}
}
},
--------------------end - code from jquery.ui.core ------------------
What version of the dynatree and jQuery are you using?
dynatree v1.2.1
jquery v1.7.1
jquery.ui.core v1.8.22
On what operating system and browser? IE8 on windows 7
Any help on this plz....
May 1, 2014
Project Member
#1
moo...@wwwendt.de
Status:
WontFix
May 2, 2014
Cleanup Scrumboard
Labels:
Milestone-Release2.0
|