Login Register

undefined

Drag and Drop , dynamicly created new iteams, t is undefined

Hello,

Im trying to drag & drop elements dynamically added, but havent been having much sucess,the new elements added by "add item" dont drag and drop properly, could someone please tell me what is wrong with this code?

item = 5;

function additem() {

        document.getElementById("draglist").innerHTML += '<ul class="dojoDndItem" id="' + item + '"><li class="taskdrag dojoDndHandle" id="drag-' + item + '" ><small>drag ' + item + '</small></li></ul>';
        item = item + 1;
}

Drag and Drop , dynamicly created new iteams, t is undefined

Hello,

Im trying to drag & drop elements dynamically added, but havent been having much sucess,the new elements added by "add item" dont drag and drop properly, could someone please tell me what is wrong with this code?

item = 5;

function additem() {

        document.getElementById("draglist").innerHTML += '<ul class="dojoDndItem" id="' + item + '"><li class="taskdrag dojoDndHandle" id="drag-' + item + '" ><small>drag ' + item + '</small></li></ul>';
        item = item + 1;
}

IMPORTANT - dojo functions are all undefined

Hello!
I'm new in this forum and also with dojo. I used to create my first dojo-project. I tried it with ATF and I got my new project-structure:

>MyProject
>>WebContent
>>>dojoAjax
>>>test.html

The problem concerning the code is, that every dojo-function is UNDEFINED. I have the right path to the dojo.js file, because the compiler knows the object "dojo". For example: dojo.require -> The function require is undefined...
Hope someone knows a solution...
Thank's

Chart Display problem in FF 2.0

Hello all,
I am having problems displaying a simple chart using firefox 2.0. The chart behaves correctly under IE 7, but using firefox and firebug i get the following error in the console:

http://localhost:8888/jmat/views/charts/undefined../dojox/gfx.js 404
http://localhost:8888/jmat/views/charts/undefined../dojox/charting/_colo... 404
http://localhost:8888/jmat/views/charts/undefined../dojox/charting/theme... 404

my view code is as follows:

Dojo Toolkit Test Page

Syndicate content