Colin | 31 May 18:38 2016
Picon
Gravatar

Any workflows for making client side code with dojo npm modules

In the past, I have used git submodules and bower for installing dojo dependencies, but I was also wondering if anyone has used the dojo modules on npm?

Are there any workflows with building client side code that use the dojo npm modules (something like dojo-boilerplate?)

Ref

I was checking these out but trying to run dojo-util build scripts directly seemed tripped up by the directory being named dojo-util instead of just util


-Colin
--

-- 
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
Forbes, Mike | 27 May 20:41 2016
Picon

dgrid 4.0 checkbox issue

Issue with dgrid 4.0 with Checkbox and receiving data from the server.

 

I have the current grid:

 

var CustomGrid = declare([OnDemandGrid, DijitRegistry, Selection, Selector]);

 

var self = this;

                  this.grid = new CustomGrid({

                           collection: this.store,

                           columns:

                                  {

                                  bValue: { label: "", sortable: false, selector: "checkbox"},

                                  name: self._createCell({ label: i18n.selectAll, sortable: false})},

                           selectionMode: "single",

                           allowSelectAll: true

                           }, this.gridNode);

                          

                     this.grid.startup(); 

 

 

JSON:

 

{bValue: true, name: “Alex”, id: index++}

{bValue: false, name: “Marc”, id: index++}

{bValue: true, name: “Stella”, id: index++}

 

 

For some reason the checkbox in the grid remain unchecked for the data with the value of “true”.  Is there something missing?

--

-- 
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 | 26 May 20:17 2016
Picon
Picon

Embedding a Google Map using Dojo

I have been reading up on how to embed a Google Map into a page using the Google Javascript API.  I have signed up for an API key and received it.  I was searching online and found that you can't simply just include the Google Maps javascript as it loads other scripts along with it (https://www.speich.net/articles/en/2014/04/11/how-to-load-google-maps-with-dojo-and-amd/).  They suggested that you use a javascript module to load the Google Maps javascript, however I can't seem to get this to work.  Does anyone have any ideas on how to get this to happen?

I also looked at DojoX and it looks like that stuff has been deprecated, as well as the OpenLayers feature in DojoX doesn't seem to allow me to load the OpenLayers javascript library via a script tag, even though it works in the DojoX nightly tests pages.

Any ideas would be appreciated!
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
Jeff Utton | 25 May 23:29 2016
Picon

dstore with IndexedDB

I'm trying to use the indexedDB backed dstore and running into a few issues some of which I've been able to work around some of them.

My object model has an idProperty of "Id" (don't ask, not my choice).  But dstore is hard coding the keyPath to "id" unless the store config has a property idProperty:'<some name>'.  However setting this value in the dbConfig causes an exception on line 115 when it tries to create an index for "idProperty".

Anyone have any suggestions for a workaround for a custom idProperty short of modifying the code?

Another documentation issue with indexedDB, the docs say the the dbconfig.storeName.property can be set to an integer.  The call to idbStore.createIndex(index, index, storeConfig[index]); (About line 115) fails because the third parameter must be an object.


Thanks
Jeff
--

-- 
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
Jason Rivard | 23 May 03:54 2016
Picon

Loading dojo with content security policy (CSP) without unsafe-eval

I would like to load dojo/dijit on a page with a
Content-Security-Policy header that does not include 'unsafe-eval'.

When loading dojo.js from 1.11.1 without unsafe-eval enabled, I see
the following error:

-- copy ---
dojo.js:348 Uncaught EvalError: Refused to evaluate a string as
JavaScript because 'unsafe-eval' is not an allowed source of script in
the following Content Security Policy directive: "script-src 'self'
'unsafe-inline' 'nonce-owFwutk2cD0/WB79vWfsXNlECBAxLaac' ".
hasCache.host-browser  <at>  dojo.js:348(anonymous function)  <at>  dojo.js:1973
test.js:93 Uncaught ReferenceError: require is not defined ...
-- end copy --

The 1.11 release notes have this section:

-- copy --
csp: A feature test, 'has("csp-restrictions")' was added for non-csp
compliant code. Please set this feature test to true in order to run
code that must be csp compliant.
-- end copy --

But I have no idea what this means, does the CSP above refer to
'content-security-policy' ? If so is this a flag somehow I need to
set?  I tried setting this on the <script
data-dojo-config="{csp-restrictions: true}" ..> dojo load statement
but that didn't seem to do anything.  The dojo.js 'var eval_' section
near line dojo.js:348 has a conditional that seems to avoid the eval()
that I'm seeing in the error message, but I don't have any idea how to
trigger the 'has("csp-restrictions")' conditional to make it avoid the
eval().

In my environment I can not modify/compile the dojo release code.

So my questions is: is it possible to use unmodified/compiled
dojo/dijit on a page where the Content-Security-Policy is prohibiting
unsafe-eval() ?

Thanks!
--

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

Dylan Schiemann | 12 May 19:55 2016
Gravatar

xstyle update for users of dgrid prior to 1.0

If you're using an old version of dgrid (prior to 1.0), there is
changing behavior in Chrome 51 that may break your app (
https://bugs.chromium.org/p/chromium/issues/detail?id=597500 ).

The simplest solution is to update your version of xstyle to 0.3.2 (
https://github.com/kriszyp/xstyle/releases/tag/v0.3.2 ).

Alternatively, this may be a good time to update to dgrid 0.4.2 or 1.1
(both to be released soon).

Regards,
-Dylan
--

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

s.mathirajan | 11 May 18:25 2016
Picon

Re: Dojo-interest Digest, Vol 137, Issue 6


Sent from my BlackBerry 10 smartphone.
  Original Message  
From: dojo-interest-request <at> mail.dojotoolkit.org
Sent: புதன், 11 மே, 2016 21:30
To: dojo-interest <at> mail.dojotoolkit.org
Reply To: dojo-interest <at> mail.dojotoolkit.org
Subject: Dojo-interest Digest, Vol 137, Issue 6

Send Dojo-interest mailing list submissions to
dojo-interest <at> mail.dojotoolkit.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
or, via email, send a message with subject or body 'help' to
dojo-interest-request <at> mail.dojotoolkit.org

You can reach the person managing the list at
dojo-interest-owner <at> mail.dojotoolkit.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Dojo-interest digest..."

Today's Topics:

1. Calling functions between dijits (Andrew Davis)

----------------------------------------------------------------------

Message: 1
Date: Wed, 11 May 2016 06:50:19 -0500
From: Andrew Davis <drsockmonkee <at> gmail.com>
Subject: [Dojo-interest] Calling functions between dijits
To: dojo-interest <at> mail.dojotoolkit.org
Message-ID:
<CAEGPDCzfqM7e7BAo+DgNEBY=V_M0zP5dbhb545J-mys=oxNF3w <at> mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

I'm trying to call a function from inside one digit to another digit.

I've been able to do this before like so.. ('extras') is a folder at the
root of my project.

<script>
var dojoConfig = {
async: true,
packages: [{
name: "extras", //if you see this in the solution explorer
(VisualStudio) it is the
//folder named 'geocoders'
//this regex type expression takes you directly to the location
'relative path'
location: location.pathname.replace(/\/[^/]*$/, '') + '/extras'
}]
};
</script>

However, when I try to do this inside a different project where the folder
containing the .js file I want to work with is down several levels..
(project), 'js/gis/dijit' I am unable to get the reference.

Shouldn't the variable I have above be able to be redirected to the 'dijit'
folder I have in the second project?

Andy..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20160511/f02c0780/attachment.html

------------------------------

________________
Dojo Toolkit: http://dojotoolkit.org/
Tutorials: http://dojotoolkit.org/documentation/
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api

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

End of Dojo-interest Digest, Vol 137, Issue 6
*********************************************
--

-- 
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
Andrew Davis | 11 May 13:50 2016
Picon

Calling functions between dijits

Hello,

I'm trying to call a function from inside one digit to another digit.

I've been able to do this before like so.. ('extras') is a folder at the root of my project.

<script>   
    var dojoConfig = {
        async: true,
        packages: [{          
            name: "extras", //if you see this in the solution explorer (VisualStudio) it is the
                //folder named 'geocoders'
            //this regex type expression takes you directly to the location 'relative path'
            location: location.pathname.replace(/\/[^/]*$/, '') + '/extras'
        }]
    };
</script>

However, when I try to do this inside a different project where the folder containing the .js file I want to work with is down several levels..
(project), 'js/gis/dijit'  I am unable to get the reference.


Shouldn't the variable I have above be able to be redirected to the 'dijit' folder I have in the second project?


Andy..
--

-- 
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
Rice Yeh | 10 May 03:30 2016
Picon

How do I debug dojo with source maps?

Hi,
  How do I debug with source maps? It seems that dojo does not release source maps for debugging minified javascript files.
--

-- 
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 | 6 May 20:15 2016
Picon
Picon

Overriding InlineEditBox

I'd like to override InlineEditBox to have the user enter their log in credentials when the change a field in their profile.  The field is being edited by an InlineEditBox.  I figure that I need to override InlineEditBox so I can override the save function, do my validation, and continue from there.  Here's what I'm trying (any pointers would be greatly appreciated):

define([
"dojo/_base/declare",
"dojo/request",
"dojo/Deferred",
"dojo/on",
"dojo/dom",
"dojo/query",
"dijit/registry",
"dijit/InlineEditBox"
], function(declare, request, Deferred, on, dom, query, registry, InlineEditBox) {
  return declare("TSInlineEditBox", InlineEditBox, {


  /* Handler for the Change Password Cancel button */
  query("#pwdDialogSubmit").forEach(function(node) {
    on(node, "click", function() {
      this.verifyUser(mod.iebPhone.get("value"), data.phone);
    });
  });


  onChange: function() {
    dom.byId("pwdDialogUserName").innerHTML = "<b>" + registry.byId("username").get("value") + "</b>";
    registry.byId("pwdDialogPassword").reset();
    registry.byId("pwdDialog").show();
  },


  /* This is the overridden save function. We want to see if this user */
  /* passes the password validation check BEFORE we save the edit. If */
  /* they do, we will save the edit; if not, we will cancel it. */ 
  save: function(focus) {

  var result = false;

  

  /* Not sure what to do here!!! */

  },


  /* This function is called when the user clicks the Unlock Account button. */
  verifyUser: function(phone, oldPhone) {
    request.post("verifyUser.php", {
      handleAs: "json",
      data: {'user': registry.byId("username").get("value"),
      'pwd': registry.byId("pwdDialogPassword").get("value"),
      'phone': phone
    }
    }).then (function(data){
      if (data.status == "true") {
        dom.byId("ldapAccountUnlockStatus").innerHTML = "<b><font face=Arial color=green>Password verified; Phone update recorded!";
        setTimeout(function() {dom.byId("ldapAccountUnlockStatus").innerHTML = "";}, 3000);
      }
      else {
        dom.byId("ldapAccountUnlockStatus").innerHTML = "<b><font face=Arial color=red>Password failed! Phone update aborted!</font></b>";
        setTimeout(function() {dom.byId("ldapAccountUnlockStatus").innerHTML = "";}, 3000);
      }
    });
  }

  });
});


What I need to do, in a nutshell, is:

1) The user double-clicks the field and makes their update;

2) User clicks Save;

3) Dialog is presented to enter their LDAP credentials;

4) Credentials are checked;

5) If the credentials are correct, the update is saved as normal;

6) If the credentials are incorrect, the update is NOT saved and the data reverts back to the previous value;


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
kwehner | 6 May 18:00 2016
Picon

AUTOREPLY Dojo-interest Digest, Vol 137, Issue 3

Sehr geehrte Damen und Herren,
 
Ihre Nachricht(en) an diese E-Mail-Adresse wird/werden momentan nicht bearbeitet und nicht weitergeleitet. Bitte wenden Sie sich in dringenden Fllen an unsere EDV-Hotline +49 9236 66-2888.
 
Mit freundlichen Gren
Kirk Wehner
 
Fr. Schiettinger KG
Abteilung EDV
Schiettingerstr. 3
95682 Brand
 
E-Mail kwehner <at> schiettinger.de
Telefon +49 9236 66-2852
Telefax +49 9236 66-6852
 
Fr. Schiettinger KG Werk Brand
Sitz Gppingen
Registergericht AG Ulm HRA 722672
USt-IdNr. DE 145477467
 
GEHEIMHALTUNGSPFLICHT: Diese E-Mail und alle damit verbundenen Anlagen sind vertraulich und duerfen deshalb nur bestimmten Personen zugaenglich gemacht werden. Sofern Sie nicht zu den angegebenen Empfaengern gehoeren, benachrichtigen Sie bitte unverzueglich den Absender. Der Inhalt darf weder an Dritte weitergegeben noch zu anderen Zwecken verwendet werden. Die Informationen duerfen auch nicht auf einem Datentraeger gespeichert oder auf einen Datentraeger kopiert werden.
 
CONFIDENTIALITY: This email and any attachments are confidential and may be privileged. If you are not named receipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.


Send Dojo-interest mailing list submissions to dojo-interest <at> mail.dojotoolkit.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest or, via email, send a message with subject or body 'help' to dojo-interest-request <at> mail.dojotoolkit.org You can reach the person managing the list at dojo-interest-owner <at> mail.dojotoolkit.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Dojo-interest digest..." Today's Topics: 1. Resetting a value in an InlineEditBox (Harry Devine) 2. Re: dijit components layout broke on IE11 Enterprise mode (Marco) ---------------------------------------------------------------------- Message: 1 Date: Thu, 5 May 2016 18:38:18 +0000 (UTC) From: Harry Devine Subject: [Dojo-interest] Resetting a value in an InlineEditBox To: dojo-interest <at> mail.dojotoolkit.org Message-ID: Content-Type: text/plain; charset="utf-8" I am implementing an InlineEditbox with a TextBox field. When the user clicks Save, I have a custom dialog being presented that asks for the user's credentials, which I verify against our LDAP database. If it passes, the value is updated accordingly and there are no issues. If the user's password fails, I'd like to cancel the inline edit change and revert the field back to what it was. However, I can't seem to get that to happen. I try to set the value back by calling registry.byId("iebPhone").set("value", oldValue), but this triggers an onChange event. The onChange event is where I show my dialog for the user's credentials, so the dialog keeps getting shown over and over again. So how do I either cancel the inline edit or force the original value back into the field WITHOUT triggering an onChange event each time? Thanks, Harry -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20160505/93a83766/attachment.html ------------------------------ Message: 2 Date: Fri, 6 May 2016 11:07:16 +0200 From: Marco Subject: Re: [Dojo-interest] dijit components layout broke on IE11 Enterprise mode To: dojo-interest <at> mail.dojotoolkit.org Message-ID: Content-Type: text/plain; charset="utf-8" Hi, I've updated to 1.9.8 but nothing changed and problems persists. Unfortunately IE11 emulating IE8 is not a choice but an enforcement and we have to make it works :) Here some extra informations on user agent and has params: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E; Tablet PC 2.0) config-selectorEngine:acme dojo-debug-messages:false bug-for-in-skips-shadowed:0 quirks:false dojo-force-activex-xhr:false native-xhr:true dojo-gettext-api:1 dojo-loader-eval-hint-url:1 ie-event-behavior:true host-browser:1 dom:1 dom-addeventlistener:false touch:false device-width:1280 dom-attributes-explicit:false dom-attributes-specified-flag:true dojo-preload-i18n-Api:1 json-parse:true json-stringify:true jscript:5.8 event-orientationchange:false event-stopimmediatepropagation:false activex:true native-xhr2:false native-formdata:false dom-qsa2.1:true air:false mac:false trident:4 ie:8 wii:false thanks in advance for any advice ps : I had similar problem with dojox/widget/Dialog pops up with top-left corner centered in the middle of the screen and monkey patched repositioning dialog after _sowContent. Problems on TabContainer seems something like this... I can see it correctly rendered and immediatly after it disappear ( maybe repositioned, resized or similar ). I think these problems share the same source and it's bound to IE11 Enterprise but I don't know where to start from :) On 5 May 2016 at 12:36, Dylan Schiemann wrote: > Hi Marco, > > Dojo 1.9.1 was released in June, 2013, whereas IE11 was released in > August, 2013. The issue is that IE11 introduced a number of breaking > changes, which we started fixing in 1.9.2. > > I would suggest trying out Dojo 1.9.8, which is simply a backport of a > number of non-breaking fixes, and thus should be an easy upgrade unless > you have modified Dojo itself. If you still see the same issues with > 1.9.8, then please let us know! > > Also, enterprise mode is basically allowing you to emulate IE7 or IE8 > behavior. We don't officially support similar quirks modes approaches, > because they can have many problems. For example, IE8 behavior in IE11 > would have no native vector graphics engine because VML was actually > removed from IE11 and not available through compatibility mode. > > We'd need to know what the various values of dojo/has are evaluating to > for checks for ie and trident to help diagnose further. > > Regards, > -Dylan > > on 5/5/16, 03:09 (GMT-07:00) Marco said the following: > > Hi, > > I have a dojo 1.9.1 application running on IE11 and IE11 Enterprise mode. > > In IE11 Enterprise I've found that some dijit/dojox widget does not > > display correctly. > > - dijit/dojox Dialogs pops up with the left upper corner centered in the > > middle of the screen ( overflowing to the right ) > > - dijit/layout/TabContainer seems to render correctly but immediately > > after disappear. > > > > TabContainer rendering change behavior setting doLayout=false > > > > doLayout=false : display correctly inner content panes but do not > > display Tab strips > > doLayout=true : render correctly but right after everything disappear. > > > > Problems should be related to some resizing or positioning that broke on > > IE11 Enterprise. > > Sometimes seems that problems occurs the first time the component is > > rendered only.. > > > > Anyone got same problems? > > Any advice? > > > > Thanks in advance > > > > > -- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20160506/4065dfa6/attachment-0001.htm ------------------------------ ________________ Dojo Toolkit: http://dojotoolkit.org/ Tutorials: http://dojotoolkit.org/documentation/ Reference Guide: http://dojotoolkit.org/reference-guide API Documentation: http://dojotoolkit.org/api Dojo-interest <at> mail.dojotoolkit.org To unsubscribe, visit: http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest End of Dojo-interest Digest, Vol 137, Issue 3 *********************************************
--

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