Login Register

CsvStore

Charting off a CsvStore

Sorry if this has been covered, I could not find a search function for the forums, and the site search did not return applicable results.

I am trying to create a couple charts using a single CsvStore. I am not able to produce an array that can be read by the Chart2D addSeries attribute. Here is my attemped example:


makeCharts = function() {
var chart1 = new dojox.charting.Chart2D("simplechart");
chart1.addPlot("default", {type: "StackedLines", tension:2, shadows: {dx: 2, dy: 2, dw: 2}});
chart1.addAxis("x");
chart1.addAxis("y", {vertical: true});

A Simple Cart

I have used dojo 1.1.0 to create a simple shopping cart.

This cart does not rely on a database but uses a csvstore to get product information from a CSV file. I have also made heavy use of dojox.widget.Iterator

The intention was to show how far we can go with just HTML, CSS and Javascript (Dojo of course). I am hoping that designers will find it easy to skin and modify the cart without much knowledge of javascript.

The cart is available at:
http://simplecart.devprog.com/cart/

CsvStore (Client Side, Seperator)

I have to simple questions about CsvStore.

1. Is it possible to read a CSV file from the client machine and load it on the CsvStore without uploading it?
2. Is it possible to read a CSV file which has not a comma "," as a seperator character but something else like this one ";"

Callback onComplete not working for Csv when no item data

I am creating a CSV Store in my code and doing a fetch. However, sometimes the URL only returns the header of CSV. In this scenario I see an exception in the firebug console, but the exception doesn't bubble up to my java script.

Ideally, I would like to capture the error and destroy the grid when I don't get any data. Currently the Grid displays with header and one row(all the cells in the row have '?').

Syndicate content