How can we use DOJO from CDN in OpenSocial App? - dojo

How can we use DOJO from CDN in OpenSocial App?

Can it be done in OpenSocial Apps? From Frequently Asked Questions – OpenSocial:
What other JavaScript libraries can I use?
All of them! Dojo, Prototype, JQuery, GWT, etc.
As you can see Dojo is mentioned explicitly.
You can include it using a script tag in your HTML snippet as regular Dojo. The only difference is that modules are loaded asynchronously — it is covered in the docs.

Related

material-components-web for vue js

I have a website based on Vue framework and webpack.
I came across this css framework developed by Google (Material Components Web) where you can directly get started using a cdn or an npm package. It worked extremely well for a simple html/javascript based website. But, I am having issues setting it up for the Vue project.
There are other wrappers available for Vue framework like Veutify and Vue Material. But, it comes with lot of additional stuff like the grid layout which I don't want the developers to follow as we are already using a flex layout. I only want the component library.
So, is there a way use the Material Components Web with the Vue framework?
I didn't get the Material Components Web working with the Vue framework. But I did found another light-weight material design framework i.e. Material Design Lite.
Note: It is not specific to any framework. It lets you add Material Design look to your website developed in any framework
You can easily get started with a wide variety of options like cdn, bower, npm or even by downloading the files.
Material Components Web has modular architecture. Each component or API is distributed as a separate package. It means that you can use them separately, although there are some dependencies.
Also there is "root" package - material-components-web, which just references all other packages.
By default, when you add a package, it will not be included in your app. You'll need to import component's SCSS and optionally JavaScript. Basically like you would use any other component.
Reference this Vue app template as an example. As you can see here, it references only subset of MDC's components/APIs.

Before Start React Native what are the basic language known

I have experience in iOS native develop. I am new to react native. before to start what are language i must be familiar?. like Java Script
I clearly depends on what exactly do you want to do.
Only React Native? Then it is just a mix of JavaScript and Node.JS. You don't specifically use HTML, but CSS helps because it uses the same concept and classes.
Do you want to also have a custom package? You will need some basic knowledge in Android/Java and iOS.
Do you want to add Unit Testing / Automation? Jest, which is basically JavaScript and Appium for example. The latter supports varios languages but you might want to tart with Python because you can run that in Cloud services for automation.
Then, are you going to build the backend too? NodeJS, Java, Net, PHP, Python, etc, etc, etc.

Single Page application with Bootstrap

I am pretty new to SPA. I'd like to known if it is possible to build a SPA with only Bootstrap or I have to use a framework like Jquery mobile or angular ?
Thanks
Bootstrap is CSS, HTML and JavaScript Framework which contains HTML- and CSS-based design templates for typography, forms, buttons, navigation and other interface components, as well as optional JavaScript extensions.
To Build a SPA application you have to use JavaScript libraries or Frameworks.
From http://tutorialzine.com/2015/02/single-page-app-without-a-framework/ you can get an idea of SPA without javascript frameworks.
There are a lot of open source JavaScript frameworks that help with building SPA, such as:
Angular
React
Ember
Aurelia
Vue.js
Cycle.js
Backbone
You have to use JS framework.
Bootstrap is only CSS framework. It makes your application looks better. Ok, you can use custom datepickers, modals etc, but usually this functionalities are implemented in CSS frameworks like Boostrap by jQuery. You can check this page to confirm it. You need JS framework for SPA (or create a new one).

Does Quickblox javascript sdk works in nativescript?

I understand that Quickblox javascript sdk uses jquery and nodejs modules. So does it work with nativescript?
In NativeScript you can use node modules, which don't have platform dependecies.
Quickblox JavaScript sdk depends on jQuery, which uses the DOM. This means that it is not possible to use it. However Quickblox also has also iOS and Android sdk, which you can use. To do that you will have to wrap them in plugins. More information about it could be found in the {N} documentation.
Yes, now QuickBlox supports NativeScript (QuickBlox on-boarding advisor here).
Quoting from our blog post:
Start your integration today – go to QuickBlox Javascript main hub and connect JS SDK 2.8 and above. With this update you do not need to change anything in your code – the same Javascript API is supported under NativeScript, Browser and Node.js
https://github.com/QuickBlox/quickblox-javascript-sdk/releases/tag/2.8.0

include dojo toolkit in appcelerator titanium

I want to use dojoToolkit in my project. But when I include it with Ti.include('dojo/dojo/dojo.js') I have got a error message "defineAlreadyDefined". Titanium has method called define in global namespace and there is method with similar name in dojo. Also there are some other methods with similar names (for example, required). How can I use it?
P.S. I build my project for web
Dojo as is will not work in Titanium. Dojo is a browser toolkit, not a mobile toolkit, it accesses things that are only for the web.
But, this guy ported it over to work with titanium, try it instead.