dojo

DOJO Button within A Grid

I am trying to get the dojo button that is within the data grid to use styling. Currently it does not use the styling. HTML: <table dojoType="dojox.grid.DataGrid" class="soria" id="grid1" jsId="grid1" elasticView="2" store="theStore" selectionMode="single" query="{grid1:'*'}"> <thead> <TR> <th field="0" formatter="getButt...

Dojo dnd input box

I'm trying to move the contents of an input box using Dojo DnD, so the HTML looks something like this: <div id="input_box"> <input type="text" class="my_input_box_style" /> </div> And the JavaScript looks something like this: var dndSource = new dojo.dnd.AutoSource(dojo.byId("input_box"), { singular: true, copyOnly: true, sel...

dojo 1.4 problems with ie7?

Tryed making an dijit.Tree from an TreestoreModel, works fine in Firefox, but the Tree dont display in IE7. So i wanted to test the campus samples with my ie- they dont even load. (in firefox all ok) Tested it on 2 different pcs. No Error Msg, just the Loading sun. Any idea what the problem could be? ...

dynamic script tag loading is not working as expected

We have an application that uses both the google closure and dojo libraries. We have the following in our index page which works as expected: <script type="text/javascript" src="runtime/src/lib/google-closure-rev26/closure/goog/base.js"></script> <script type="text/javascript" src="runtime/src/lib/dojo_release_132_src/dojo/dojo.js"></s...

dojo.require() prevents Firefox from rendering the page

Im experiencing strange behavior with Firefox and Dojo. I have a html page with these lines in the <head> section: ... <script type="text/javascript" src="dojo.js" djconfig="parseOnLoad: true, locale: 'de'"></script> <script type="text/javascript"> dojo.require("dojo.number"); </script> ... Sometimes the page loads normally. But s...

Dojo Framework: CrossFrame Approach?

Hi there. I'm looking for a dojo toolkit approach to communicating across iFrames. Something similar to Julien Lecomte's CrossFrame technique shown here http://www.julienlecomte.net/blog/2007/11/31/. His approach uses a YUI library function. Is there anything of the sort in Dojo? I checked out dojo.io.frame, but that doesn't seem to b...

Why aren't these Dojo hover events working?

I'm new to Dojo (quite experienced in jQuery) for a project, and am working on adding/removing some classes that will change styles for main navigation links and drop-downs. Here is the code I've written: dojo.addOnLoad(function() { dojo.query('#primary-nav > ul > li > div').forEach(function(container) { var hoverToggles = doj...

How to get Dutch locale in Dojo to work?

I need to format a date into a Dutch locale (Netherlands, Dutch language) string. I found that dojo supports this, but I can't get it to work. I am a Javascript newbie. Don't underestimate my blissful ignorence. EDITED <html> <title>title</title> <body> <SCRIPT TYPE="text/javascript" SRC="http://ajax.googleapis.com/ajax/libs/...

How to show seperate google maps v3 in different FloatingPanes using dojo

I'm trying to open up more than one dojox.layout.FloatingPane with different instances of a Google Map using the V3 API. I can always get the first FloatingPane to display correctly with the map, but after the first one I can't add more. I thought maybe I couldn't add more than one google map to the page, but I tried that and it worked...

How to create a 20x20px cell grid background programmatically?

I'm trying to build a grid the size of the browser window that has 20x20px squares. My first idea was to just construct a table with the following code, but IE8 (in any mode) will not render the cells unless they have non-white space content. According to this, it will if it has a &nbsp;, but from my testing, it only works if the table i...

Which JavaScript framework have anybody used with CodeIgniter?

I've delved into Dojo Toolkit which I intend to use with CodeIgniter. ...

Using multiple Javascript frameworks in a project?

Is it good or okay to have several frameworks in a project, or is it bad because it gets cluttered (= a mess), and the loading times maybe get's longer. Does some 100 K matter really? Or should you stick with one? ...

How to set max-width of dijit.ToolTip?

I tried the following, but it didn't seem to work. var helpIcon = dojo.create("span", {"class":"help-icon", innerHTML:"[?]"}, td1); var tooltip = new dijit.Tooltip({ connectId: [helpIcon], label: "large paragraph of text here ... " }); tooltip._setStyleAttr("max-width: 100px"); Help! ...

Display Custom Label from data store with dojox.charting

I am using the dojox.charting.widget.Chart2D and I am trying to retrieve the data from an dojo.data.ItemFileReadStore. I can retrieve the data, and everything works and displays, except I cannot seem to find a way to display custom labels on the items. My HTML snippet is: <div dojoType="dojo.data.ItemFileReadStore" jsId="chartDataStor...

How to revert to content of a Dijit text box when browser back-button is clicked?

Hello, I am using a Dojo Textarea Dijit to input and submit text (to be processed). I found that after submiting, if a browser back-button is pressed (IE8, Firefox) unlike regular HTML Textarea, I return to the input screen, but the Textarea is EMPTY. What I would like to happen is that after back-button is pressed, I would return to ...

How to trigger item click event on Dojo Tree manually?

Does anyone know how to manually trigger item click event of Dojo tree? I have a create new node button and whenever a new node is created, I would like to move focus to the new node. I have setup the click event and it would be great if I can manually trigger click event with the param is the new node. ...

Struts2 + jQuery Autocompletion (Solved, with DOJO :) )

I used the jQuery autocompletion for my Struts2 application. Pratically, my action made a list of strings that jQuery use. This is the script: $().ready(function() { $("#tag").autocomplete("/myAction/Action", { multiple : true, autoFill : true, minChars:1 }); ...

getting a dojo node when I have the store item id

I have a dijit.Tree that's populated by a ItemFileReadStore using JSON. Because of our setup, I need to do a new request each time a tree node is clicked. The tree is using cookies to remember which folders were expanded and not, so that's not a problem. But I'm trying to set focus to the node that was clicked. I've managed to get the i...

Is AJAX easier with ZendX_JQuery or with Zend_Dojo?

The context is that I don't want to use Zend MVC - controllers, helpers, decorators etc - that's overkill for what I am writing. I've scoured the jQuery site plugins section and these issues bother me most: I have to search a lot for plugins - it is tedious. I have to check dependencies with jQuery versions. Thankfully I decided to s...

Dojo lightbox Issue when called in a tab after loading

Hello, I have a Dijit Lightbox on a page, and its working perfect (well close enough.. the close button does not work in IE) Then I created a Dojo Tab, and it is also working perfect. Then I put the lightbox page, in the tab, and it also worked perfect. But then I made the lightbox tab content only load when clicked, and it showed my ...