I'm getting into Zurb's Foundation for a client, and I'm wondering if it has any concept of routing JavaScript to specific pages. I've semi- built my own framework that routes JavaScript for specific pages, only loading what's needed for the current page.
I'm seeing Angular mentioned often; would this be addressed by that? Any help is appreciated! Feel free to tell me if this needs more clarification; again I'm just getting into Foundation, and can't seem to find if this is addressed or not.
Zurb Foundation is a responsive front-end framework. You load what is needed depending on your plugins or not usage.
If you have developed your own system of including js' that you need based on the page you could certainly use it with foundation.
Your second question could be answered by visiting the angularjs.org site and reading about the framework. It is more of a MVC emulation system to support a dynamic html approach.
Related
We need to create a PWA with angular which will wrap the ember application and communicate through some navigation and events.
PWa will be just as a container which hosts the ember so that the application can be used as native and as webapps through every devices.
We need some approaches to get some solution regarding the above requirement.
Will it be possible for everyone to give some light one that.
Planning to host the application using iframe under PWA and communicate.Not sure whether it will be helpful or not.
It's not the best idea to use Angular to create a PWA for an Ember app, you should be doing this in Ember.
One reason that it might not be the greatest idea is that if you're adding Angular to your setup you are adding a minimum of 130KB of compressed JS before taking into account any features that you might be using. Assuming a baseline Ember app size you're talking about adding a roughly 60% extra JS to achieve something that can also be achieved by Ember.
It sounds like you might be following a tutorial on how to turn an app into a PWA that is based on Angular. If you are you having specific issues that you don't know how to solve with Ember I would recommend joining the Ember Community Discord and asking for some help there and maybe someone will point you in the right direction.
Zurb broke their documentation site for V4.3.2 of Foundation. Unfortunately, I have a site using that version that can't be upgraded. I need ongoing, reliable access to see the docs and examples/demos for that version. Is there a way to install those on my own system, like Telerik allows you to do that with their controls?
That way I wouldn't have to depend on Zurb keeping the docs working for old versions of Foundation.
https://foundation.zurb.com/sites/docs/v/4.3.2/
For a short term fix I used the web archive:
https://web.archive.org/web/20161120155204/http://foundation.zurb.com:80/sites/docs/v/4.3.2/
to access the site.
Once Zurb gets their site back up, I'll update this answer if I figure out how to duplicate their doc site locally.
I am developing mobile apps using phonegap.
My mobile app will have same functionality as like my joomla-jomsocial website.
I have to access web services using jQuery.ajax as I am using javascript and html only.
Are there any ready web services or APIs in joomla-jomsocial?
Joomla! only recently formed a working group for "Web Services" and I think you won't see any outcomes from that for a while.
As #Riccardo Zom, say your best bet will be to access the barest formats you can from each component type using the format/tmpl parameters.
If you're motivated enough you could extend existing components (core and otherwise) to return the desired format (e.g. json), in that case you should read Louis Landry's note on the changes from 1.5 era XML-RPC feature set to the 1.6/2.5 mechanism.
If you're still looking after that you may be interested in the "Joomla! API - Generic RESTful API framework for Joomla! 2.5" by Rafael Corral, it's a component (com_api) that provides a framework for creating a RESTful API for a Joomla! 2.5 site.
Unless you want to rewrite the whole component logic in your html app, you might be happy with grabbing the component output without all the extra page markup i.e. get the bare html returned from the component: just add &format=raw to the query; if you want libraries and css to be returned as well, instead add &tmpl=component
There is also (limited) support for &format=json in some core components.
Are there any solutions that my app could consume forums/friends/groups etc features using joomla through RESTful urls.
I found 2 links so far,
Plexicloud-JWS :- This seems to supports only core features and not what Am looking out for
https://github.com/techjoomla/Joomla-REST-API
This seems to support jomsocial which looks a paid one
If I am not wrong, joomla and jomsocial seem different, is that kind of social wrapper over joomla?
If such solutions are not available with joomla, then with any other open source GPL/MIT in php/rails/java..?
Could any body provide me any pointers please?
thanks
Amol
I am looking for a web app framework which can automatically generate an HTML5 offline storage based app, so while the users become disconnected they still can view the data which normally is stored on a server
Also currently I am using Django and it would be great if there was a framework which could pull data from Django and present that as an offline app.
From the related questions suggested by stackoverflow, while writing this question, I found one interesting link mentioning that GWT has such functionality, I would like to know more about that if possible and if it can generate an HTML5 offline app
Thanks in Advance
Rather than server-side frameworks, you should be taking a look at JavaScript frameworks.
Dojo Storage will transparently select between providers such as Google Gears, Adobe AIR or plain old HTML 5 local storage. Dojo 1.5 - dojox.storage: http://dojotoolkit.org/api/1.5/dojox/storage
There's also jQuery local storage: http://plugins.jquery.com/project/saveit
... or jStorage, which can act as a storage plugin for jQuery, Prototype or MooTools: http://www.jstorage.info/
With any of these, you should be able to use a quick little AJAX call to pull (JSON perhaps) data from your server and use one of these tools to help minimise your storage code.
You're talking about a standalone app, not a django app.
This can be done with javascript (jQuery, Sproutcore, JavascriptMVC, Pyjamas ...) or Adobe AIR, or...
Pulling data from Django is just a matter of setting up a syncing method, most probably using JSON, to fill up the browser local storage. So this is not django-specific at all.
If you want a standalone django app, this can be done if you bundle in a python desktop app django with a built-in server, that's another question
You could suggest the users to create web apps or use google gears instead... I don't know if this will fill the question, but, i'm in the same way. However, I'm developing an governamental solution who will run only for some kind of people, so, I can have a few control about the user's environment... All you need to do is to use jquery to detect if user has a live connection, or offer to the users a 'preferences' page where you define the behavior of the page itself...
Some info about offline cache: http://diveintohtml5.ep.io/offline.html
PS.: In another post in stackoverflow, I 've found another question: html5 offline caching with php driven sites... The last Post said:
HTML5 offline caching does not work to make your pages interact; it works only to make a
particular page available offline. Basically, it works on a URL-by-URL basis. If you
absolutely need offline functionality, you will be forced to make it work in JS.
Also, make sure your manifest includes all resources used by all pages.
Hope this helps!
Hope it helps!!