dojo

Loading Dojo dijit CSS from CDN

孤者浪人 提交于 2019-12-04 15:07:57
问题 I am quite new to dojo world. Using dojo with google's CDN is well and Fine. But while using dijit just dojo.require() does not work. Where can I find the default CSS Themes from CDN ?? and another question out of quorisity: Would the the CSS configuration for dijit work for dojox too ?? 回答1: The CSS can be found on Google's CDN. I've used it in a page or two. Here's some CSS link tags. <link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/dojo/1.4/dojo/resources

Struts2 plugins - Dojo or jQuery or…?

≡放荡痞女 提交于 2019-12-04 14:44:48
Since Apache Struts has deprecated Dojo plugin from Struts 2.1.x I am thinking to change everything to jQuery. I especially noticed the difference in sizes (170kb vs 19kb - something like that). I had troubles with IE browser with handling dojo scripts, is this happening also with jQuery (when user is working with the application for a long time, script stops running)? I have a lot of dojo tags in my applications, and I use most of theirs attributes. Has anyone had any experience doing that? What were the problems? What were the benefits? Downsides? Does anyone has any better ideas of which

dijit.Tree search and refresh

主宰稳场 提交于 2019-12-04 14:31:38
问题 I can't seem to figure out how to search in a dijit.Tree, using a ItemFileWriteStore and a TreeStoreModel. Everything is declarative, I am using Dojo 1.7.1, here is what I have so far : <input type="text" dojoType="dijit.form.TextBox" name="search_fruit" id="search_fruit" onclick="search_fruit();"> <!-- store --> <div data-dojo-id="fruitsStore" data-dojo-type="dojo.data.ItemFileWriteStore" clearOnClose="true" urlPreventCache="true" data-dojo-props='url:"fruits_store.php"'></div> <!-- model --

Dojo Grid - Switching between editable and not editable

我只是一个虾纸丫 提交于 2019-12-04 13:31:08
问题 I have a grid that will edit small chunks of data based on a larger tree structure. In order to make it easier to know what's being saved by the user, I want to have the grid be in a non-editable state when the user first sees the grid. When the user is ready, they can click the edit button, which will make portions of the grid editable. Then, there is a save or a cancel button to either save the changes or revert back. For the most part it works. However, if you click edit, don't change

escaping json string with a forward slash?

五迷三道 提交于 2019-12-04 13:12:36
I am having a problem passing a json string back to a php script to process. I have a json string that's been created by using dojo.toJson() that contains a / and looks like this: [{"id":"2","company":"My Company / Corporation","jobrole":"Consultant","jobtitle":"System Integration Engineer"}] When I pass the string back to the php script it get's chopped at the / and creates a malformed json string, which then means I can't convert it into a php array. What is the best way of escaping the / in this string? I was looking at regular expressions and doing a string.replace() however my regex isn't

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

冷暖自知 提交于 2019-12-04 11:28:20
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 problem. I have tried setting the height and width manually and this just results in a large grey rectangle on the second tab. Do I need to tell the Grid to refresh in some way - or is it a property for the TabContainer? Help - this is driving me mad! Yeah, that

Is there any javascript library to capture mouse/keyboards events and send them to external server?

安稳与你 提交于 2019-12-04 11:23:03
What I need is something which: can catch all keyboard events can catch all mouse events (clicks, movement) can catch page scrolling, possibly taking care about browsers differences send data to external server using JSONP (or anything else, but need to work not only in newest browsers) is quite small, at most xx kB I hope I would like to find something which have at least 3 of above implemented properly. I can also look at js frameworks like Dojo or JQuery if they can help me, but then will I be able to to keep it small enough? How about writing it yourself ? :) Let's consider this simple

Dojo populate combo box widget dynamically

偶尔善良 提交于 2019-12-04 11:12:24
Could someone please explain to me why this simple straight forward code isnt working, var serviceStore = new dojo.data.ItemFileWriteStore({ data: {identifier: "serviceCode",items:[]} }); //jsonObj is a json object that I obtain from the server via AJAX for(var i = 0; i<jsonObj.length;i++){ serviceStore.newItem({serviceCode: jsonObj[i]}); } var serviceFilterSelect = dojo.byId('serviceSelect'); serviceFilterSelect.store = serviceStore; There is no error at all displayed but my combobox with the id "serviceSelect" doesn't display any options, the combo is declared in the html section of my code,

Is it possible to have Dojo/Dijit DataGrid autoheight functionality based on the parent div size instead of a number of rows?

99封情书 提交于 2019-12-04 10:22:25
I have a datagrid that is updated periodically and the number of rows inside it grows steadily over time. It is inside of a parent div with a height of 60% of the screen. If I set autoheight to, say, 5 rows, the table works properly. When a sixth row is added, a scrollbar appears within the datagrid and I can scroll up/down and the headers remain fixed at the top and visible. Unfortunately, once I have a lot of data, this is a waste of space -- I have 60% of the screen's height to work with, but only 5 rows are being shown at a time. If I set autoheight to false, the scrollbar that appears is

Reload dojo widgets after ajax request

℡╲_俬逩灬. 提交于 2019-12-04 07:56:10
I am newbie in this topic. I have div with some dojo widgets inside. I use ajax to reload this div, but after this my dojo widgets doesn't show. How can i make my browser to reload the widgets again after ajax request. I don't want to reload whole page. My ajax view part: <div dojoType="dijit.layout.BorderContainer" gutters="true" id="borderContainerTwo"> <?php foreach($wynik as $row): ?> <div dojoType="dijit.layout.ContentPane" region="center" splitter="false"> <p id="category"><img src="/photo/category/<?php echo $row->idPropozycji;?>.jpg" width="100" height="130" style="float: left;"></p> <