Chriz | 30 Sep 08:58 2014
Picon

Context menu custom icons

Hello,

I'm using a context menu and I want to use my own custom icons instead of
the ones given. Is it possible to add new icons?

Any kind of help will be appreciated.

Thank you in advance.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Context-menu-custom-icons-tp4003779.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Harry Devine | 29 Sep 14:18 2014
Picon
Picon

Question about Drag and Drop

I want to use Drag and Drop in one of my pages, but I was hoping to get 
some clarification of a few things about it.

1) The Source box will be populated with user names from a MySQL 
database.  All of the examples show static data, so would I just use 
javascript to retrieve the names and call insertNodes for each name?

2) I want to only allow 5 items in my Target box, so how can I limit the 
amount of drops to be no more than 5?

3) Once I have the user names I want in the Target box, what method(s) 
do I use to retrieve that data so I can do the operation that I need to 
do with those users?

Thanks for any help,
Harry
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

pohl | 29 Sep 11:54 2014
Picon

dgrid-select event not working

Dear experts

For Intermezzo this is what I use: RESTful API (using MySql database with
Slim), using Apache Web Server, 
And... Im using DOJO to make it as AJAX application

(phew really, DOJO's learning curve is definitely a steep one :D)

Straight to the point:

Did I do wrong in this (perhaps the code's line orders?):

at the beginning, I developed a dgrid with CRUD features in a separated file
- it worked well!, no problem at all

Things were different when I tried to "merge" my code with the main code, it
is totally messed up...
grid's selection is like never being trigerred (using claro css - i expect a
"blue highlight color" on selection - but it is not happening)

So what should I check first? 
when I code separately - I put the dgrid on a BorderContainer (center)
but when I merge it with my main unit:
   I put the dgrid on a TabContainer within a StackContainer (do this has
something related with that?) 
This is the hierarchy: {BorderContainer | ContentPane (center) } ->
StackContainer -> TabContainer - {BorderContainer | ContentPane (Center)} ->
dgrid
(is this innecessary too complex?)

(Continue reading)

gdelory | 29 Sep 10:45 2014
Picon

Calling inherited of another method

Hi,

I'm struggling with one problem concerning this.inherited("methodName").

My problem is I am inheriting from a class A, for now I do not override any
method. Just

define(["dojo/_base/declare", "test/A"], function(declare, A) {
  return declare("test.B, [A], {});
});

My problem is one of the method of A uses this.inherited("show", []); which
when using A call the show method from the parent of A (let's call it
ParentA), which is the correct comportment.

But when I am using B, this method now call A.show. I think the normal
inheritance behavior should be it still calls ParentA.show because the
method still comes from the A class and then inherited looks in ParentA or
its parents.

What am I doing wrong here?

And here is A to help you understand.

define(["dojo/_base/declare", "test/ParentA"], function(declare, ParentA) {
  return declare("test.A, [ParentA], {
    _createRendering: function() {
      this.inherited("show", []); // When using B.show(), this now calls
A.show and it should call ParentA.show, it's like the inherited method loose
its context and thiunk we are in B, but in A it should looks in ParentA or
(Continue reading)

Fredde | 28 Sep 19:16 2014
Picon

Re: Circular dependency Dialog < -> Widget

Would it be an option to decouple the action from the widget? For example let
the widget emit an event or add a callback to the widget and let the event
handler/callback function decide what to do next.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Circular-dependency-Dialog-Widget-tp4003714p4003760.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Fredde | 28 Sep 19:04 2014
Picon

Re: response returned for dojo.xhrGet call seem to be different than response returned for HTTP GET (i.e. either via CURL or when accessing the URL directly from browser address bar)

Are you in control of the server side? If so, check that the server side
sends the response you expect, then follow the response along the way. Check
that it's correct in the browsers developer console, and finally in the load
callback.

I have a hard time understanding what you are doing in the load callback. If
you want to inject the response into the document, why not just do
targetNode.innerHTML = response;?

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/response-returned-for-dojo-xhrGet-call-seem-to-be-different-than-response-returned-for-HTTP-GET-i-e--tp4003738p4003758.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Fredde | 28 Sep 16:52 2014
Picon

Re: Issue with Tool tip position in ValidationTextBox

Not sure I understand the problem. Is it the the tooltip appears on different
places the first and second time? Here is a jsfiddle with tooltipPosition;
["after-centered"] which works as suspected: http://jsfiddle.net/6856ybzz/

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Issue-with-Tool-tip-position-in-ValidationTextBox-tp4003710p4003756.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Fredde | 28 Sep 15:57 2014
Picon

Re: contentpane in chrome not loading

I'm quite sure basic usage of ContentPanes does not have compatibility issues
with Chrome. Try the examples in the documentation
(http://dojotoolkit.org/reference-guide/1.10/dijit/layout/ContentPane.html).

Would need an example that shows the problem to be able to give a better
answer.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/contentpane-in-chrome-not-loading-tp4003674p4003750.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

voger | 28 Sep 15:52 2014
Picon

Should we use <div> tags or <input> for form elements?

I am searching in Google for this but all results are from stackexchange 
who keeps returning 502 Bad gateway so I can't get an answer.

I am reading in various reference documents and tutorials in the dojo 
website. They say that for every input we should use the most sensible 
tag. For example for button we must use <button>, for select we must use 
<select> etc. But later they say that if we want to style those inputs 
we must use <div> instead because IE strips the html. Quote from this
http://dojotoolkit.org/reference-guide/1.10/dijit/form/Select.html#a-styled-select

"When styling the entries of a Select widget, you must use div and span 
tags, instead of select and option tags - as IE will strip out any HTML 
within the option tags."

So what is the best thing to use?
--

-- 
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/

Dojo-interest <at> mail.dojotoolkit.org
To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

juanmarvin | 28 Sep 13:50 2014
Picon

The same Dojo module load script works on a computer, but does not work on another.

Hi all,

I am working with dojo 1.10.

This is my main script:

<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="initial-scale=1,
maximum-scale=1,user-scalable=no"/>
    <title>Title</title>
    <link rel="stylesheet"
href="http://SERVERABC/arcgis_js_api/library/3.10/3.10/js/esri/css/esri.css"/>

    
</head>
<body>
    <div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline'" style="width:100%; height:100%;">
        <div id="header" data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'top'">
            <div id="languagesContainer"></div>
        </div>
        <div id="map" data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'center'"
baseClass="dijitContentPaneNoPadding"></div>
    </div>
(Continue reading)

voger | 27 Sep 18:25 2014
Picon

How to set width to dijit/form/Select

Hi, I want to make dijit/form/Select have a steady width to fit the 
maximum options length.

What I tried is to try and calculate and set that after the load. 
Unfortunately it doesn't work.

In my on load function I have

dijit.byId('signup-window').on('load', function () {
             // set select boxes for date to a fixed width
             var bday = registry.byId('bday-select');
             var bmonth = registry.byId('bmonth-select');
             var byear = registry.byId('byear-select');

             resizeSelect(bday);
             resizeSelect(bmonth);
             resizeSelect(byear);

  // function to use on load to set proper sizes for select boxes
             function resizeSelect(select) {
                 var maxLength = 0;
                 var opts = select.getOptions();
                 var i = -1, idx = 0;

                 array.forEach(opts, function (opt) {
                     i++;
                     if (opt.value.length > maxLength) {
                         maxLength = opt.value.length;
                         idx = i;
                     }
(Continue reading)