• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
JSON/ dygraph / Ajax help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JSON/ dygraph / Ajax help


  • Subject: JSON/ dygraph / Ajax help
  • From: James Cicenia <email@hidden>
  • Date: Thu, 18 Feb 2010 21:16:21 -0600

Hello -

I am starting on my first real AJAX WebObject JSON app.

I am testing it with dygraph (http://danvk.org/dygraphs/)

I have created a DirectAction to return all the data. Now
I don't know where to begin. I would like the data to load
upon the window loading. Then I want to do periodic updates.

Anyway, here is there sample:


<html>
<head>
<script type="text/_javascript_"
  src=""></script>
</head>
<body>
<div id="graphdiv2"
  style="width:500px; height:300px;"></div>
<script type="text/_javascript_">
  g2 = new Dygraph(
    document.getElementById("graphdiv2"),
    "temperatures.csv", // path to CSV file
    {}          // options
  );
</script>
</body>
</html>

So my question is, what do I do to replace temperatures.csv with my own direct action?

Thanks
James

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: PK-type
  • Next by Date: Re: Problem re-executing adaptor operations
  • Previous by thread: PK-type
  • Next by thread: Re: JSON/ dygraph / Ajax help
  • Index(es):
    • Date
    • Thread