dojo

Bug : Dojo Dialog + Flash in Firefox 3

i have a flash component on a dijit.Dialog.In Firefox 3, i cant click on the flash button.When i right click on the flash i get the tooltip(settings) far away from where i clicked.It's working on all other browsers. I had to update dojo from 1.1 to 1.3 for IE 8 issue.After updating i seem to get this problem.Before it worked fine in doj...

Why can't I roll a loop in Javascript?

I am working on a web page that uses dojo and has a number (6 in my test case, but variable in general) of project widgets on it. I'm invoking dojo.addOnLoad(init), and in my init() function I have these lines: dojo.connect(dijit.byId("project" + 0).InputNode, "onChange", function() {makeMatch(0);}); dojo.connect(dijit.byId("project" ...

convert code from jquery to prototype or dojo

If you had to do this... function addRemoveItemNS() { var $newLi = $('<li class="special">special and new <button class="addone">I am new</button> <button class="removeme">remove me</button></li>'); $('#list9 li.special') .find('button.addone') .unbind('click.addit') .bind('click.addit', function() { $(this).parent().after($new...

Problem with dojo tree

Hello, I'm trying to get the dojo tree widget working. It works with a small json object, but when i try it with a large json object it goes wrong. There is no error, just the root node. Is this a normal behavior? Is there a maximum of objects you can load? My json object contains around 800 entries. Thanks, Ewout ...

When does Dojo need the args variable?

You have to pass the args variable to the anonymous function, but the anonymous function does not visibly need the args variable, so you have to memorize when Dojo needs the args variable, but the Dojo help page doesn't say! So, when does Dojo need the args variable? var init = function(){ var contentNode = dojo.byId("content"); dojo.xh...

Dojo and Firebug

I just started a new project with the Dojo toolkit, and no sooner did I drop my dojo.js script tag in than firebug started telling me Could not load 'dojo._firebug.firebug'; last tried './_firebug/firebug.js' I know dojo has a reputation for bad debugging messages, but this is ridiculous.... If anyone has any ideas about this I would...

Dojo Comet + Orbited is giving 404

I have <script type="text/javascript"> function setupComet() { dojox.cometd.init("http://comet.domain.tld:8000"); dojox.cometd.subscribe("/my/calendar", cometCallback); } dojo.addOnLoad(setupComet); function cometCallback (msg) { alert(msg.data); } </script> Orbited is replying (viewed with firebug): <htm...

dojo crashes ie6 when using Zend Framework

I'm having issues with a application that I am writing that uses Dojo and Zend Framework. The issue only effects Internet Explorer 6, other versions of IE, ff, chrome and safari work fine with no issues. When IE6 lands on the login page it crashes with the send details to microsoft dialog box. The login script uses dojo to provide som...

Connect links inside an dijit.dialog

Hi , i have some trouble to connect an link inside an dijit.dialog. Iam calling an "other" html file inside the Dialog (dialog.href="xxx.html") inside this file iam trying to connect some links by id, to fire an alert box. But nothing happens ? Possible that this isnt possible ?? Thats the part from my xxx.html file.. <script type="t...

Dijit widgets don't initialize if they are programatically created on IE6.

I'm using the classical JavaScript way (programatically) to instantiate dijit widgets with dojo-1.3.1, it works OK in Firefox but in IE wont initialize the widgets and it doesn't throw any error. My source code for this is: <html> <head> <title>...</title> <script type="text/javascript" src="lib/dojo/dojo/dojo.js" djconfig="parseOn...

REST vs. RPC

Hello, I'm building my own ajax website and I'm contemplating between REST and RPC. If my server supported Servlets I'd just install persevere and end the problem but my Server doesn't support Servlets. RPC is simpler to code (imo) and can be written in PHP easily. All I need is a database query executer. I'm using the Dojo Toolkit an...

Dojo, how to do onclick event on a DIV

There was a fade out sample in the internet.. http://docs.dojocampus.org/dojo/fadeOut?t=tundra but i want to do something different.. i want people directly click on the text then the text will fade out. in my code there is a div wrap the text <div id='parentNode'> <div id='textDiv' onClick='whenClickAnyWhereWithinThisDiv_performF...

How do I add "onload" to my Dojo class?

I'd like to add an "onload" function to my custom Dojo class such that it can call functions that register to for the event - something like myWidget.addOnLoad(...) My class is not a Dijit it's a simple class that uses dojo.declare. Upon creation several functions are called (xhr, etc) to initialize the class and I need the ability to n...

Injecting dojo in an existing page through a bookmarklet

Hello, I am trying to convert my web application into a bookmarklet. It is built on top of dojo framework. When the user clicks the bookmarklet, dojo is injected on the page via a dynamic script tag (if it does not already exist) and application kicks off from djConfig.addOnLoad. Well, that's the plan anyway. however, I find that djCo...

Dojo Drag and drop: how to format a dropped item?

I'm using Dojo trying to build an application with dojo's dnd. I've looked around for an answer to this problem but I'm just not sure how to accomplish this. I have a Source object in which there are a bunch of products formatted with html/css in a certain way. When I drag these objects to my Target object, the dropped item still looks t...

Dojox.grid.DataGrid - in a widget - only renders on visible tab

I am using a Widget that contains a DataGrid object. The Widget works fine when included in the first tab (this is the visible tab), but not when I use the same code on a second tab. The code is the same I have done several checks to make sure there are no other problems - and non Grid code is rendering fine - only the grid that has a p...

Can I implement a breadcrumb trail using dijit.layout.StackContainer in Dojo? Are there better ways?

I want to implement a breadcrumb trail in a website using Dojo - and I am considering using StackContainer. Is this a good approach? Are there better ways of achieving the same thing? --UPDATE-- Here is an article from IBM that makes use of the StackContainer for a breadcrumb trail http://www.ibm.com/developerworks/library/wa-aj-cust...

Dijit combobox not rendering in custom widget

I am trying to use the combobox provided by Dijit inside of a custom-made widget. I have been using Dojo's tutorial on comboboxes to guide me. When I implement a stand-alone webpage similar to their tutorial examples, everything worked fine; but when I ported the code into my custom-made widget, it just renders the combobox as a plain ...

dojo drag and drop: don't want to sort items

I have a dojo.dnd Source object that I just want to list out normally, without the user being able to sort the objects. Is this possible? ...

Dojo: Is there an event after drag & drop finished

I've got two dojo.dnd.Sources with items. Whenever an item is dropped I need to persist the new order of the items in the Sources using an xhr. Is there an dojo event or topic that is fired after an dnd operation has (successfully) finished? What would be the best way to use it? ...