Все вопросы: [dojo]

273 вопросов

похожие теги: dojo-1.8dojo-builddojo-dnddojo-1.6
5
голосов
1ответов
968 просмотров

dojo.dnd one item at a time only

Using dojo.dnd, I want to allow a user to drag only one item at a time, rather than any arbitrary number, as per the dojo's default behaviour. At the moment, a user can hold Ctrl and click multiple draggable items at a time, then drag them all as a group. I want to disable this so that the user...

0
голосов
1ответов
2149 просмотров

Top Navigation Dojo widget

Please find the attached image @ http://www.freeimagehosting.net/image.php?0db7e494ad.jpg We would like to achieve similiar functionality using Dojo widgets. Can someone please suggest the best widgets that we should extend for achieving this. For example on hover on Tools shows the second level...

0
голосов
1ответов
1408 просмотров

Zend_Dojo_Form onSubmit

I have a contentPane with a remote form, I'm trying to get the form to submit, and stay within the pane, either displaying the form again on error or reporting success. I'm sure this is easy but I'm stumped, not the first time and not the last I'm sure. Store Form : class Services_Form_Sto...

5
голосов
1ответов
1059 просмотров

jQuery / Dojo, UI / Dijit cross reference?

I concede that this question may fall into the 'discussable' but not 'answerable' category. If so, I do apologize and please mark the question as such. The question: I've mainly used jQuery and UI for my front-end interaction and AJAX. I need to help on a Dojo project quickly if possible and was...

2
голосов
3ответов
7971 просмотров

dojo.parser.parse only working first time it's called

I have a page that when a user clicks on a link for some reporting tools, it first asks them to enter some report parameters. I get the parameters dialog as a form using AJAX, based on the id of the link. Each dialog has some dojo controls on it, so I need to parse them when the dialog appears, b...

0
голосов
2ответов
1239 просмотров

dojo filteringselect with option value '0'

i have following filteringselect: <select name="v" dojoType="dijit.form.FilteringSelect" valueList="v" id="v" value="0"><option value=""></option><option value="0">0-test</option><option value="1">1-test2/option><option value="2">2-test3</option&g...

0
голосов
1ответов
412 просмотров

Background image with a draggable second image (layers maybe)

I need to be able to take a background image and float a second draggable image (should be scalable, but with fixed proportions) Also the code should be able to 'flatten' the image for photo sharing. Oh, also the floating image should have a dropped shadow to give the illusion of depth. Thanks! ...

0
голосов
1ответов
3228 просмотров

dojo file upload using zend framework problem

I am struggling with a bit of dojo that is needed to upload a file. Now the file upload form sits within a dojo dialog box, so is hidden until the user selects an 'upload file' button. This button can be clicked on anywhere on the site, so I've created a controller to handle the upload. At the...

3
голосов
1ответов
6300 просмотров

How to generate a right-click event in all browsers

A little context: The app I'm working on has a right-click context menu for certain objects on the screen. The current design as that each of these objects listens for a right-click, sends an AJAX request to get the context data for that object, uses that data to create a PopupMenu2 from Dojo 0.4...

3
голосов
2ответов
824 просмотров

Capturing Keyboard Events in Dojox GFX

Is it possible to capture keyboard events within a diagram produced using Dojox.GFX? We have a simple graphical application which involves some shapes drawn on a surface. We would like to add some simple keyboard interaction, e.g. using the Delete key to delete a shape, and using "Ctrl+A" to sel...

0
голосов
2ответов
2048 просмотров

Dojo tree selected node

Upon creating a tree from a store in dojo, it seems to pre-select the top node in my tree; does anyone know how to stop this from happening?

0
голосов
1ответов
942 просмотров

How to implement tab containers in web-application?

In modern web browsers we can work with multiple contents in parallel by using tab containers. It took me quite some time to mimic a similar behavior within a webpage of a web-app by using a library called Struts Menu. The solution as far as I understand is basically a combination of using CSS wi...

3
голосов
6ответов
8898 просмотров

Struts2 plugins - Dojo or jQuery or...?

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 us...

0
голосов
1ответов
1743 просмотров

Adding attributes to a dojo tree node on creation

I'm using a dojox.data.QueryReadStore to populate a dijit.Tree dynamically on expansion of each node. When each of the child TreeNodes is created, I'd like to put a custom attribute on it. How do I get called back on the automatic creation of TreeNodes before rendering?

0
голосов
2ответов
2277 просмотров

How to include dojox.gfx.SVG and dojox.gfx.VML in a custom Dojo build with cross-browser support?

I am using dojo.gfx to create vector shapes and text on my website and everything works fine when I am "dojo.require"-ing all dependencies in my Javascript. But when I'm building everything I need in a custom build (especially dojox.gfx, dojox.gfx.svg and dojox.gfx.vml), Dojo's automatic differen...

0
голосов
2ответов
2107 просмотров

JavaScript RemoveChild logic/question

I'm using Dojo Drag and Drop. When a user adds an item to a container (div dojoType='dojo.dnd.Source') then I need to get that data into a form so I can later process it on a server when the user submits the whole page. That part is working. Then to remove an item, I allow them to drag/drop a...

1
голосов
4ответов
3892 просмотров

Unable to set focus to textbox in dojo datagrid

I have a Dojo Datagrid with one of the columns being rendered as a textbox by a formatter function. When I click on the rendered textbox to enter some value, the cursor appears in the textbox and focus is immediately lost (i.e, the cursor disappears - typing does not produce anything). I have to ...

6
голосов
6ответов
10159 просмотров

What does the dojo.query() return?

I'm just getting started with dojo, and I've understood that dojo.query is the same as $ in jQuery. But I haven't figured out what it returns. Is it a specialized object like in jQuery? What I'm trying to do (with no luck) is: dojo.query("output").innerHTML = data; //this doesn't work either: ...

1
голосов
2ответов
348 просмотров

Javascript scope issues

I am extending dojo's dojox.data.JsonRestStore and I want to provide my own fixed scheme. this is getUsername won't work because it doesn't refer to the current datastore Take a look at this code: /** * @author user */ dojo.provide("cms.user.UserAuthenticationStore"); dojo.require("dojox.dat...

1
голосов
2ответов
728 просмотров

DWR and WebSphere Commerce - Is it Good Combination?

My current task is to migrate a J2EE application (JDK5) that is using DWR for its AJAX capability, into WebSphere Commerce platform (J2EE 1.4, JDK1.4). In the WebSphere Commerce, the idea is for the AJAX to call commands those are written in Commerce platform. WebSphere Commerce has its own AJAX ...

0
голосов
1ответов
3376 просмотров

Refining my Dojo/Dijit NumberTextBox numeric validation

I have the following code: Questions: 1) How do I set the width of the box? Do I have to do it in a style tag or a CSS? Is the traditional "input size" tag ignored? 2) The above sample shows the error when I type in a non-numeric value. But if I tab over the field and don't fill in anyth...

0
голосов
1ответов
1826 просмотров

xhrPost : from an http view to an https url

using Dojo, is it possible to make an Ajax call using xhrPost from an HTTP view to a HTTPS url ? The url must be HTTPS (as defined in Struts). If I simply set "MyCommand" as the 'url' parameter of the xhrGet, I get a 302 error code. If I transform "MyCommand" using javascript to something like...

2
голосов
1ответов
1071 просмотров

Using ZeroClipboard with Dijit.Menu to provide copy functionality

I have a webapp that (did) allows text to be copied using zeroClipboard, using a Dijit.Menu, by right clicking. The problem is that Flash 10 needs the user to click on the actual Flash applet to allow this to happen now. I have tried to use the ZeroClipboard.glue() method to 'glue' the swf to t...

0
голосов
1ответов
131 просмотров

problem executing php file with javascript

i have been learning about javascript and using dojo. I am trying to execute a php file with dojo. My code is dojo.xhrGet({ url: 'helloworld.php', load: testCallback, error: testError, content: {name: dojo.byId('name').value} }); for the dojo function. The php file is basically a...

0
голосов
3ответов
1988 просмотров

dijit.Tooltip --- how do you disable hover?

I would like to have a tooltip that only comes up when you click a text link (but does nothing on hover). I know this is easy to do with jquery, but I have to use dojo. I've tried to declare a new tooltip class with "attachHover: false;" but it breaks when I declare the class so I assume this is ...

1
голосов
2ответов
8275 просмотров

Filtering a Dojo DataGrid

I have a datagrid all set up, connected to an XMLStore. When the user selects a month from the dropdown list I want the grid to filter only that months data. Should be simple and according to every example it is. I can't figue out why it doesn't work, nor why IE tells me that none of the methods ...

0
голосов
1ответов
590 просмотров

catch menu positon, and edit menu after creation

I'm working with the dijit.Menu widget, but I don't know how to do some things: How can I catch te position of the top left corner of a dijit context menu? How can I know witch dome node belongs to the dijit menu, (to do that I write into the menu the DOM node id and I find it with dojo.byId, b...

0
голосов
1ответов
492 просмотров

Dojo - problem sending form with IE6

I am getting a JavaScript error in IE6 when trying to send form data with xhrGet. Here is the code: var kw = { url: "Save.action", load: function(data){ }, error: function(data){ }, form: "editData" }; dojo.xhrGet(kw); It works fine in IE 8. I am using Dojo 1.3.2 and ...

2
голосов
1ответов
964 просмотров

Dojox.grid.DataGrid filtering

I've a DataGrid which contains data fetched from the server side. I need to filter the data based on some conditions. I've three checkboxes, on selecting the checkboxes I need to filter the data. For example I've three Checkboxes- Pending, Issued,Completed. When I uncheck Pending checkbox, the Da...

0
голосов
2ответов
1297 просмотров

Splitting a form into tabbed pages using dojo

I have a form that as more than a 100 fields across 5 categories of which only 3 fields are necessary and the rest are autofilled or set to default values. Earlier I was using a dijit.TitlePane to split the sections and hide the other remaining sections. I have now decided to switch to a tabbed...