Login Register

undefined

Dojo setup

Hi,
I just installed Dojo 1.2.1.
I did not manage to make anything run so far.

I keep getting the same errors for all the dojo/dijit funtions I call.
Firefox (3.0.4): Dijit.byId is not a function
IE6:Object does not support this property or Method

I get the same errors for any dojo funcion I try to invoke. I tried the Demo examples for dialogs and it's the same thing :(

I do not have any errors for the dojo.require ...

Could someone please help me ?
Thanks in advance,
MM

Here part of my code:

-------------------

<%@taglib prefix="s" uri="/struts-tags"%>

Strange errors when using parseOnLoad

I'm having a bit of trouble with this simple attempt to combine some script and a DropDownButton. When I set parseOnLoad: true in djConfig, I get a js error that '_36 is undefined' in dojo.js. I'm sure there is something extremely simple that I've overlooked, but I've been stuck on this awhile now, and I could really use some help.

I'm using firefox 3.0.3, and dojo 1.2.0.

My ultimate goal is to have a lot of drop-down buttons on one page sharing a single tooltip dialog.

here is an online version of the code below:

How to get selectedIndex of a filteringselect or combobox

Hi,
I want to get the index of the selected item of my filteringselect, so that I can use it in my other javascript functions. Is it possible to do it? I have tried something like following but it gives me "undefined".

// tried both dijit and dojo byId methods
//var atFName=dijit.byId("attributeFriendlyName");
var atFName=dojo.byId("attributeFriendlyName");

var theindex = atFName.selectedIndex;
alert ("the selected index is " + theindex);

Thanks,
Waqas Ashraf

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