Login Register

error

dojox.timing.Sequence - '0' is null or not an object

I've only been developing with javascript for a couple of months and this is my first attempt at using dojo.
I'm trying to use Sequence to control function execution but I get this error:"'0' is null or not an object".
I've found what appears to be the offending line but I must be missing something.

function resolveAndCallFunc(func) {
var ret = null;
if(dojo.isArray(func)){
// Two elements might only be given when the function+context
// is given, this is nice for using this, ie: [this.func, this]
if(func.length>2){

FilteringSelect - Select contents on mouseclick in the select does not work

When entering a filteringSelect via a keyboard command the contents of the select are selected. One can than immediately start typing over the 'old' value. When clicking with the mouse in a filteringSelect the cursor is placed at the clicked position. The contents of the select are not selected.

How can I change this behavior so that clicking with the mouse select all the contents?

I have tried the following without any success;
select id="test1" dojoType="dijit.form.FilteringSelect" required="true" trim="true" autocomplete="true" onFocus="dijit.byId(this.id).select();"

Error on: dojo.require("dojo.style");

Hi. Have had a frustrating couple of hours trying to get some basic hiding/showing working in dojo. Primarily, when I run this:
dojo.require("dojo.style");
I get this:
GET http://localhost/js/dojo/dojo/style.js404 16ms
Could not load 'dojo.style'; last tried './style.js'

Now, I've tried the Google CDN, AOL CDN, reinstalling a local copy of dojo, and linking directly to the style.js file, which I only see in js\dojo\dojox\fx\style.js (but i'm assuming that this is not the right style.js?)

I'd like to get some simply hiding and showing going such as that at:

dojo.body() is undefined

I'm trying to create a ClassA, that is extended by ClassB. An instance of ClassB should be created onLoad.

However, the Firefox error console reports these two errors:

Error: dojo.body() is undefined
Source: /dojo/_base/_loader/bootstrap.js line 674
Error: ClassB is not defined
Source: test.html line 19

What does 'dojo.body() is undefined' actually imply?

Source:

File ClassA.js:

dojo.declare(/*Class name*/ "ClassA", /*Extend*/ null, {

initializer: function(domNode, resourceType, path) {

dojo.xhrGet error in IE7

I have a 'save' feature to save the current diagram in the drawing canvas to a file. Here's the code:
// save the current diagram to a svg file or text file.
save= function(){
dojo.xhrGet({
url: 'save.jsp',
preventCache: true,
load: saveCallback,
error: saveError,
content: {name: dojo.byId('output').value }
});
};

It works fine in FF, but I get the error(using Visual Web Developer 2005 as IE debugger) in IE7:
Microsoft JScript runtime error: Object doesn't support this property or method.

Using Package system - error loading new .js file

Hello. I've been trying to use the package system for the first time to create a compressed release version of Dojo for my site. I was able to get the script to execute properly by running it with the following command:

build.bat profile=attic action=release releaseName=dojo-root optimize=shrinksafe layerOptimize=shrinksafe

I pulled the entire release directory into my project and I'm trying to reference the new .js file, but I'm getting a javascript error on page load saying it can't recognize "dojo". Here is some additional information.

Firefox 2.0.0.16 cannot load parser

I have a script which loads the dojo toolkit, it does not run and generates an error in Firefox 2.0.0.16, i do not get this problem in any other browser (Firefox 3, IE6 & IE7).

my code is:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" type="text/css" media="screen"
href="__SITEURL__/css/site.css" />
<style type="text/css">
@import "__SITEURL__/js/dijit/themes/tundra/tundra.css";

Getting an error "The stylesheet was not loaded because its MIME type, "text/html" is not "text/css".

Hi guys I'm kinda new to dojo - well just downloaded it a whiel ago and really woudl like to start using it but I seem to be getting this error when I run it in firefox

The stylesheet root/dijit/themes/soria/soria.css was not loaded because its MIME type, "text/html", is not "text/css".

And cos of that my example tryouts seem all messed up. I'd really appreciate any help on this guys

newbie dojo.data.ItemFileReadStore shows "error getting items" when assigned json data is from javascript

Hello,

I am trying to create dojo thumbnail using following syntax.

var mess = new Array();
                //getKfJasonData returns the pics in json format from javascript
                mess[0] = getKfJsonData();                 
                thmbData.data = mess[0];
                //I get correct output here in the alert
                alert ('data: ' + thmbData.data );
Syndicate content