Skip to content

Instantly share code, notes, and snippets.

View celikmus's full-sized avatar

Mustafa Çelik celikmus

View GitHub Profile
@celikmus
celikmus / _.md
Created September 10, 2015 09:28
Tributary inlet
@celikmus
celikmus / _.md
Created August 24, 2015 20:47
Tributary inlet
@celikmus
celikmus / _.md
Last active August 29, 2015 14:28
linegraph
// intern config file:
loader: {
// Packages that should be registered with the loader in each testing environment
packages: [ { name: 'visitorsPortal', location: 'portals/visitor' },
{ name: 'dojo', location: 'lib/dojo/dojo'},
{ name: 'dijit', location: 'lib/dojo/dijit'},
{ name: 'portalLib', location: 'portals/lib'} ]
},
suites: [ 'tests/uitests' ],
var handle_xhrGetResponse = function(response, ioArgs)
{
console.log("received Response from server");
var myData = { "identifier": "id", "items": response };
myData.items = dojo.map( myData.items, function(x) { x = x.course; return x;});
var jsonStore = new dojo.data.ItemFileReadStore({data: myData });
var handle_xhrGetResponse = function(response, ioArgs)
{
/*
I can see response in Firebug, has been validated as JSON
by jsonformatter.curiousconcept.com... Pasted it towards the
end of the page.
*/
console.log("received Response from server");
var handle_xhrGetResponse = function(response, ioArgs)
{
// first try... This worked when server sent one object(see the object contents below to this page)
// however, it fails to create jsonStore (undefined) when server sends multiple objects in response.
// var jsonStore = new dojo.data.ItemFileReadStore({data: {items: [response.course]}});
// var jsonStore = new dojo.data.ItemFileReadStore({data: myData});
// second try... doesn't work... for both cases.
// var myData = {'label': 'myResponseData', 'identifier': 'course','items': [response.course]};
Expected declaration but found '*'. Skipped to next declaration.
[Break on this error] *font-size: 75%;
dojo.css (line 95)
Expected declaration but found '*'. Skipped to next declaration.
[Break on this error] *font-size:100%;
dojo.css (line 150)
Expected declaration but found '#zoom'. Skipped to next declaration.
[Break on this error] #zoom: 1; /* set hasLayout:true to mimic inline-block */
dijit.css (line 32)
Expected declaration but found '#display'. Skipped to next declaration.
<!--
! Excerpted from "Mastering Dojo",
! published by The Pragmatic Bookshelf.
! Copyrights apply to this code. It may not be used to create training material,
! courses, books, articles, and the like. Contact us if you are in doubt.
! We make no guarantees that this code is fit for any purpose.
! Visit http://www.pragmaticprogrammer.com/titles/rgdojo for more book information.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
Following the steps at the DojoBuild 101 video on DojoCampus:
cd util/buildscripts/profiles/
cp layers.profile.js my.profile.js
vi my.profile.js
---> Take out comments
---> Take out dojo.js layer, string discard layer,
---> Remove layer dependencies ono dijit/dijit...
change dijit/dijit.js to dojo/dtklayer.js and dijit.dijit to dojo.dtklayer,
and at the dependencies, change dijit.dijit to "dojox.widget.Dialog",