Login Register

error

dojox.cometd "402: Unknown client" error message handling

[editor: moving to the appropriate forum…]

If cometd server gets restarted or client loses internet connection till his session expires, then on next message submit inside chat room, server responds with:

dojo.io.script.jsonp_dojoIoScript12._jsonpCallback([{"successful":false,"error":"402::Unknown client","advice":{"reconnect":"handshake","interval":500},"channel":"/chat/1"}])

Getting "uncaught JavaScript runtime exception" when trying to dijit build with 1.2.3

I am trying to build my custom namespace layer; however, in doing so I am consistently getting an error in building the purely dojo/dijit portion.

I have commented out everything in my build profile except

dependencies = {

        layers: [
                {
                        name: "../dijit/dijit.js",
                        //resourceName: 'dijit',
                        dependencies: [
                                "dijit.dijit"
                        ]
                }
        ],

        prefixes: [
                //[ "mojo", "m:/mojo-release-0.9.0/mojo" ],
                [ "dijit", "../dijit" ],
                [ "dojox", "../dojox" ]
        ]
};

dojox.cometd "402: Unknown client" error message handling

If cometd server gets restarted or client looses internet connection till his session expires, then on next message submit inside chat room, server responds with:

dojo.io.script.jsonp_dojoIoScript12._jsonpCallback([{"successful":false,"error":"402::Unknown client","advice":{"reconnect":"handshake","interval":500},"channel":"/chat/1"}])

I my opinion, when client receives this error message, it should immediately initiate reconnect procedure, but it looks like it takes a minute or two till it happens, which in chat client might look like chat froze.

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.

Syndicate content