Installation and integration of the DOJO toolkit - dojo

How can I install the DOJO toolkit and use it on my website? Is there a tutorial?

Yes:
http://docs.dojocampus.org/quickstart/gettingstarted
"Dojo's now included on your page, no install, no fuss." - apparently

Related

ExtJS 7.0.0-CE ext-charts package is not in sencha.myget.org repo

I'm using ExtJS community edition + open tooling (npm)
Framework and additional sencha modules are distributed through their npm repo at https://sencha.myget.org/ and so far everything worked as it should.
But if I try to use Ext.chart I found oun that this is a separate package. As stated in sencha's docs ext-charts package should be alongside other pkgs i.e ext-modern-theme-material, which is working just fine, but ext-charts is not there!
I get 404 ERR on npm install #sencha/ext-charts and can't find it on repo's web page.
Could someone point me to package location or some other tips regarding ext-charts installation?
Chart is for Premium users in ExtJS 7.0 modern toolkit. However, it is free in classic toolkit. So you need to build in classic toolkit to get charts.

How to apply Mobile First platform appcenter fix pack

I download the Mobile First Platform fix pack(6.3.0.0), It contain the 6.3.0.0-MFPF-Pattern-IF201503120508.zip, when it unzip this, I found it's for app-center and analytic console fix pack, but I am not able to find the repository.config or diskTrag.inf file to add InstallManager's repository.
Could anybody can tell me how to install this fixpack.
Thanks
Kumaresan
6.3.0.0-MFPF-Pattern-IF201503120508.zip is the Virtual application pattern installer. Here is the link to install MobielFirst Platform Application Pattern Type
But unless you are using the MobileFirst Platform Application Pattern Type, you do not need this.
To install the MobileFirst Platform Studio latest ifix, you need the 6.3.0.0-MFPF-StudioP2-IF201503120508.zip and the instructions are available here.
To install the MobileFirst Platform Server latest ifix, you need the 6.3.0.0-MFPF-Server-IF201503120508.zip and the instructions are available here.
If you want to install the fixpack in a production environment, please see instructions here.

Overriding Dojo version for a particular Xpages database

Apple's iOS 8 breaks certain tap functionality in versions of dojo prior to 1.9.4 (see Xpages mobile controls not working in iOS8
The current version of Dojo in Domino 9.0.1 FP2 is 1.9.2 but that does not fix the issue. You have to use at least 1.9.4.
I have downloaded 1.9.4 and placed it in the correct folder on our test server. But I cannot get things to work. I changed the folder name of dojo 1.9.4 to 1.4.0 as I only want to use this version for 2 dbs that are having the problem.
Question 1:
What line do I put in the xsp.properties file:
xsp.client.script.dojo.version = 1.4.0
xsp.client.script.dojo.path = / domjs / dojo-1.4.0
Question 2:
There are so many things to download when I go to the dojo download page. I downloaded the zip file and used that.
When I run code to test what version of dojo I have I get 1.9.4. But when I try to load my page, I get an error.
dojo._loaders: TypeError: dojo._loaders is undefined
Any help would be GREATLY appreciated.
You probably have the right dojo zip, this one: http://download.dojotoolkit.org/release-1.9.4/dojo-release-1.9.4.zip. As you say, unzip that to the dojo-1.9.4 folder in <server-install>\data\domino\js\, or name the folder 1.4.0 if you want to specify it for only a few apps.
You will indeed need to copy the IBM folder from the <server-install>\osgi\shared\eclipse\plugins\com.ibm.xsp.dojo_9.0.1.<date-stamp>\xsp.dojo.jar into your new 1.9.4 (or 1.4.0) dojo folder. Little chance of anything working without it. Copying the ibm folder from the 1.5.2 folder is a bad idea as that is old code, and you'd certainly have issues with it working with dojo 1.9.4. In Fix Pack 2, the ibm folder from the plugin was tested/designed to work with dojo 1.9.2 (the version in that jar), so it should play fairly nice with 1.9.4.
In your XPages app, in the xsp.properties, you should only need the line:
xsp.client.script.dojo.version = 1.9.4
Rebuild your app, restart the server etc, and you should be good to go.
DISCLAIMER: This is a work-around, not a supported solution by IBM. There may be unexpected issues using this approach. It's used at your own risk.
You commented already on that topic here so I think you tried this one? http://hasselba.ch/blog/?p=323
This is the SO thread: XPages mobile controls not working with iOS 8

Adding Dojo 1.6+ in Lotus Notes database v8.5.3

Lotus Notes 8.5.3 uses dojo 1.5.1. However I want to use dojo 1.6/1.7 library in my NSF database. How can I do it? I tried to use the technique suggested by Keith Strickland in his blog but no luck.
I need to include the dojo library in NSF database and not on server.
The reason I want to do this so as to use the advanced Dojo Mobile libraries (from dojo 1.6/1.7) in my XPages.
UPDATE: I even posted this question on XPages forum some time back but no replies.
The Domino 8.5.3 server uses Dojo 1.6.1 for XPages. You should see this if you view the HTML source of a test application.
As an example, I see this in one of my applications:
"/xsp/.ibmxspres/dojoroot-1.6.1/dojo/dojo.js"
If you are going to create apps using Dojo Mobile then take a look at the Extension Library and the latest Upgrade Pack 1 for Domino 8.5.3. Both includes XPages Mobile controls.
Per's correct that the Dojo plugin that is loaded by default is 1.6.1 (the ".1" is because it includes IBM-specific code and this means it differentiates it from anything a developer has added in).
The files in the js folder on the server / client are 1.5.1 and this is needed for iNotes.
You can change the Dojo version in the xsp.properties by setting xsp.client.script.dojo.version in Package Explorer. Incidentally UP1 offers a nice visual editor for the xsp.properties file.
However, currently if you change this setting you need to uncheck "Use runtime optimized javaScript and CSS resources" or it will still use the plugin. I noticed this too late for anything to be done before the Gold release.
If you add 1.7 files to the server and include the IBM folder from 1.5.1 it may work. AFAIK there's no way to get the IBM folder from the plugin code.
See my blog post for more details: http://www.intec.co.uk/domino-8-5-3-greater-power-over-dojo-thanks-ibm-for-your-work/

Installing Dojo into Aptana

How would I install support for dojo into Aptana?
Basically I want to have auto completion working for dojo. Is there a way to do it?
The process has changed. Instead, you drop a library API file into your project:
http://wiki.appcelerator.org/display/tis/Using+JavaScript+Libraries
You do drop a library API file in your project as described in the link Ingo Muschenetz provided. However, no plugin that I have found currently FULLY supports Dojo content assist or auto completion. As in dojo.byId or dijit.byId are not supported through Aptana.
Here is the updated link to install Dojo support for Aptana:
http://docs.appcelerator.com/titanium/latest/#!/guide/JavaScript_Library_Support
Just follow the instructions under Dojo.