Using Dashboard APIs or Frameworks using Javascript/JQuery - javascript

I heard about Dashboard APIs using JavaScript/Jquery, particularly Geckoboard and many others also.
But I don't know how to use it.
I have a Java web application. It is used to collect some data from users and save to database. After that some analysis will be done and display as graphs or some other graphical representations.
The problem is I don't know how to use that for my application.
Do I need to add some Action classes or JQuery/JavaScript.
I tried to add a widget there but it needs a url to the application. Is it with action class URL and does that need to return any JSON data?
Anyone has some idea?

Why don't you try Dashy is a simple angularJs script that let you add custom datasource?
Please note: I'm the developer of Dashy.

Related

JS/HTML: adding comments to a website w/out a database and backend

Is there a way to add a commenting feature to a website w/ HTML or JS only, i.e. w/out using a database or a backend?
No, you will need a database/store for your data, without this how will other people be able to read other messages? It would be client-side only.
You could just use a different website.
Is there a way to add a commenting feature to a website w/ HTML or JS only, i.e. w/out using a database or a backend?
This fails to answer the question correctly.

Auto generating graph for website

I'm using java spring for backend of my website. I need to add some auto generating graphs to it. But I'm not sure for what I should look for. Should I use a Javascript library or can I do it in java as a backend function? This is my first time using this functionality.
P.S.
I have to deal with a often updating database to fetch data for those graphs.
Check this answer, I would suggest to go with option 2 and use a javascript library like highcharts.
Plot Graph In web application

Export html tables to Excel using (or not) javascript

I made an statistics application which only permits actually to display various informations, using angular. Now i want to improve it.
On a page i have 3 big html tables containing the statistics and i'd like to let the users download them to use them on excel.
I've seen many ways to do it only in javascript but it's a bit too basic and for example, we can ony create one sheet by excel file. I used for a previous project a php Class to create my excel files which was really better.
Can you advise me about a way to create a more complex excel file, on my angular application, by calling maybe an external script or something?
Thank you very much
There are a plenty of solutions for your problem. All depends of your application, backend capabilities, frameworks used and so on...
A solution could be to create a webservice that uses the Apache POI apis.

Generate a PDF from a site running javascript

I need a way to generate a pdf-file of a site that runs alot of javascript.. any ideas of how to do it..or is there any package that I can use or something?
Thanks in advance!
EDIT
Should add that I need to generate this server-side using asp.net.
Doing it server-side I would recommend iTextSharp or Docmosis, and the Docmosis cloud services could also let you create it by a http post from Javascript). They both allow your application to create PDF documents with a rich set of features for layout and content. If you say more about what is in the PDFs you need to create then it might be clearer which you would choose. Please note I work for the company that created Docmosis.

Can a Backbone.js app be progressively enhanced, and crawlable by search engines?

I need to implement an MVC JavaScript framework for my next project, but it's as much as a website as it is a web app. Is it possible to expose the data server-side, then parse the URL to show the 'JS version'?
(I plan on using Rails for server-side code)
I wrote a small blog series on exactly this subject...
The first part introduces the problem and the previous solutions, as well as the current solution: HTML5's PushState (history API)
http://lostechies.com/derickbailey/2011/09/26/seo-and-accessibility-with-html5-pushstate-part-1-introducing-pushstate/
Part 2 shows how to use progressive enhancement with Backbone, so that when you have your server render HTML you can then have your Backbone code take over the existing HTML content instead of rendering new content:
http://lostechies.com/derickbailey/2011/09/26/seo-and-accessibility-with-html5-pushstate-part-2-progressive-enhancement-with-backbone-js/
Part 3 is a (slightly blurry) video of a presentation I gave on this subject, at a conference:
http://lostechies.com/derickbailey/2011/10/06/seo-and-accessibility-with-html5-pushstate-part-3-the-video/
And while it's not directly a part of this little series, I also wrote a blog post about using Routers with PushState. The gist of that post is: you don't need a router:
http://lostechies.com/derickbailey/2011/10/17/tips-for-using-backbone-js-routers-with-html5-pushstate/
Hope that helps
Im not really sure if I understand your question the right way. I think you have some data and you want to work with it on the server side using rails and then provide it to your javascript and proceed working with the data? Thats right?
Then yes thats possible. Lets say you have a model called article and you access one article by the following url:
http://site.com/articles/1
then you can add an .xml
http://site.com/articles/1.xml
and you will get xml and of cause Javascript can parse xml. This is the default setting of rails.

Categories