George Neuner | 23 Nov 00:25 2014
Picon
Picon

problem with dijit/form/Form

Hi all,

Using Dojo 1.10.2

The context is a single page app - HTML+script fragments are loaded on 
demand into newly created dojox contentpanes  (with preventCache, 
parseOnLoad, executeScripts and scriptHasHooks all set true).  The old 
content panes are being properly disposed - I create a new one for each 
"page" and destroy the one I have switched away from.

I intend that the forms be submitted by XHR.  Sometimes it works 
correctly, but sometimes submit causes a (basic HTML) form GET submit to 
occur in *addition* to calling my XHR function. Naturally, that reloads 
the page (whole app ) and screws up everything.

I'm having this same problem with several different forms, so clearly 
I'm doing something wrong.  My login form is shown below (it's the 
simplest example).  I'm only having trouble with form "submit" - "reset" 
(where applicable) and the other widgets within my forms are working 
correctly.

All the modules used and all the widget constructors are being required 
preemptively in the main HTML page. The forms all are defined using 
markup, but I have checked that every widget has a unique id (and only 
one page is active at any time anyway).  Firebug shows no errors.  When 
I try the submit, I see both my XHR POST and a form GET happen.  The 
application server answers my XHR post, but the answer is lost because 
the browser is busy reloading the page (whole app) due to the GET.

Setting the action and/or method on the form doesn't prevent the double 
(Continue reading)

Kevin Brandon | 22 Nov 22:59 2014
Picon

Emitting to parent widget from child in custom widget.

I've been having issues with trying to get widgets emit synthetically to their parents. The code looks like it will work if the passed target object had a defined parentNode. But not sure how to properly get the parentNode populated.

I've tried to use the convention of _Contained/_Container to add a widget to the child  thinking that I needed that to properly "register" a child widget.  Diving into the code it sees like the synthetic part of the emit makes sense if the parentNode is defined but having difficulties getting that parentNode defined... short of doing it myself in the custom widget...


if("parentNode" in target){
// node (or node-like), create event controller methods
var newEvent = args[0] = {};
for(var i in event){
newEvent[i] = event[i];
}
newEvent.preventDefault = syntheticPreventDefault;
newEvent.stopPropagation = syntheticStopPropagation;
newEvent.target = target;
newEvent.type = type;
event = newEvent;
}
do{
// call any node which has a handler (note that ideally we would try/catch to simulate normal event propagation but that causes too much pain for debugging)
target[method] && target[method].apply(target, args);
// and then continue up the parent node chain if it is still bubbling (if started as bubbles and stopPropagation hasn't been called)
}while(event && event.bubbles && (target = target.parentNode));

seems like if you have the a child in a widget fire off an event and its parentNode was setup via a place... that it should attempt to call it maybe with this alteration?

while(event && event.bubbles && (target = target.parentNode || target.domNode.parentNode) ?

any insight or wisdom would be appreciated!
--

-- 
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
chiranjeevibmse | 22 Nov 13:26 2014
Picon

dojox/app model is not

My Config JSON is 

"stores": {
        "explorerconfig":{
            "type": "dojo/data/ItemFileReadStore",
            "params": {
                "url": "./main/explorer.json"
            }
        }
    },
    "models": {
        "explorerConfig":{
            "modelLoader": "dojox/app/utils/mvcModel",
            "type": "dojox/mvc/EditStoreRefListController",
            "params":{
                "store": {
                    "$ref":"#stores.explorerconfig"
                }
            }
        }

And the view as 

"explorer": {
            "constraint" : "center",
            "controller": "main/explorer",
            "template": "main/explorer.html"

        }
But in the view explorer if i call the
        
init: function()
        {
            console.log(this.loadedModels.explorerConfig.store);
              
        }

is not initializing to the JSON what i have given in explorer.json

new to dojo please help on this.

Thanks
Chiru



View this message in context: dojox/app model is not
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
Rahul Sharma | 21 Nov 20:48 2014
Picon

Dojo upgrade in migration from IE8 to IE11

Hi Experts ,
 
We are planning to migrate our aplication from IE8 to IE11 and currently using Dojo 1.9.1 version. Do we need to migrate to Dojo 1.10 for this migration or we can continue using the 1.9 version without any issues ?
 
Also , we are using Dojo 1.10 tool (SDK utility ) for minifying / compressing the build (files created using Dojo 1.9.1) is it okay to do so ?
 
Thanks ,
 
Rahul Sharma.
--

-- 
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 | 21 Nov 20:38 2014
Picon
Picon

Unhide a tab container

I have a tab container inside of a content pane that I want to initially 
be set to hidden.  Later, I want to unhide it and make it visible.  I 
found an example on how to make it hidden by setting visibility:hidden 
in the style property:

     <div id="tabContainer" data-dojo-type="dijit/layout/TabContainer" 
data-dojo-props="doLayout:false,tabStrip:true" style="width:500px; 
height:500px;visibility:hidden;">

However, it's not being hidden initially.  So:

1) how can I make the tab container initially hidden?
2) once its hidden, how can I unhide it later?

I was going to try

       domStyle.set(dom.byId("tabContainer").domNode, {'visibility': 
"visible"});
       dom.byId("tabContainer").resize();

but I don't know if this works yet because I can't get the tab to hide 
at startup.

Thanks,
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

Philippe Soares | 21 Nov 18:39 2014
Picon

Dojo build problem with cujo modules

Hi,
I'm trying to use wirejs (https://github.com/cujojs/wire) in a dojo app.
Everything works fine in development, but when I try to build the app using the dojo build tool, my app doesn't recognize the wire/wire module, although I think i set my dojoConfig properly.

I set up a template github project at https://github.com/psoares/DojoAndWirejs that looks more or less like the config I have in my app.

With npm installed, you can cd into the project root directory and run "npm install" to perform a dojo build.
You can then do npm start to start a server with 2 demo pages :
- http://127.0.0.1:8000/index.html will use the source packages
- http://127.0.0.1:8000/index-built.html will use the packages built with the npm install command.

Could anyone please have a look and see if there is something obvious I'm missing here ?

Thanks in advance for any help you can give.

Regards,

Philippe


P.S. : There is a corresponding stackoverflow question I asked for this at http://stackoverflow.com/questions/27024573/wirejs-and-dojo-using-the-dojo-build-system
--

-- 
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
lbowman | 21 Nov 06:32 2014
Picon

bower command to install dgrid .3 + all of it's dependencies (xstyle/put-selector)

I want to install .3 version of dgrid instead of the latest.

I am more familiar with this version and do not have the time to learn .4
and the corresponding dstore, etc...

How can I use the bower command to get all of the files I need for dgrid .3

I tried using the command:

>bower install dgrid#v0.3.9 

but this only grabs dgrid.  It does not get xstyle nor putselector.

Thanks,

Lisa

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/bower-command-to-install-dgrid-3-all-of-it-s-dependencies-xstyle-put-selector-tp4004356.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

SeanZhao | 21 Nov 01:54 2014
Picon

dgrid0.4 how to notify one row

It's great to see dgrid0.4 released, thanks sitepen team!

It seems that 0.4 is totally different with old version. This make upgrade a
big headache. We have an application heavly depends on dgrid.

1: In dgrid0.3, we can use grid.store.notify(row,rowId) to re-render a
particular row without refresh whole grid, how this can be achieved in
dgrid0.4?

2. Are all features in dgrid0.3, like complexcolumns, subrows, fixed
subrows(without horizonal scrool while width too large) still in dgrid0.4? 

Thanks

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/dgrid0-4-how-to-notify-one-row-tp4004354.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

demisheep | 20 Nov 20:03 2014
Picon

Creating a web application with multiple tabs and sub tabs all including gridx

I wanted to get some advice on best practices on a piece of software I will
be building very soon. What I will be doing is generating a set of dojo
TabContainers, some with sub TabContainers with I believe ContentPanes,
every tab will have a gridx. So in the end I will end up with something like
5 main tabs with 2 or 3 of these having sub tabs. Every tab will have a
gridx. I read somewhere that if I place a gridx within a TabContainer that I
should not need a ContentPane, is that correct?

My initial thought is to write JavaScript to build this, create <div's> with
id's and then placing the gridx grids within the specific <div > by the id's
and then have the JavaScript write it out to the body of HTML.

All the gridx grids will be populated with various dojo widgets and data
will be sent to and received from services on the server side.

Please give me some advice on best practices for what I plan to do.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Creating-a-web-application-with-multiple-tabs-and-sub-tabs-all-including-gridx-tp4004350.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

LeoCombes | 20 Nov 16:26 2014
Picon

How can I set/get cell value in dgrid?

Hi, I have a silly question, but not find a way to set or get the value of
the a cell in dgrid.
Before, with a gridX I could do this:

grid.cell(row, column).setRawData("wait");

...where row and column are integers zero based.

How do this in the same way but with dgrid?

Thanks.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-can-I-set-get-cell-value-in-dgrid-tp4004348.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

hod | 20 Nov 15:25 2014
Picon

How to fill a form with dnd

Hello,

I have a simple form with Select and two Textarea.
I've also have a dnd Source with list of data that created by this form.
My dnd Target is a third place on the screen for a different use.

My question is if it possible to drag from my source to the form, so the
form will get the value of the dropped object although the object is in
different structure?
In other words, it is possible to drop the object over the form and catch
the data of the object, so i can decide how to fill the form?

Kind regards,
Hod.

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/How-to-fill-a-form-with-dnd-tp4004346.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


Gmane