• 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
Accessing a Javascript datasource object via Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing a Javascript datasource object via Cocoa


  • Subject: Accessing a Javascript datasource object via Cocoa
  • From: Tito Ciuro <email@hidden>
  • Date: Sun, 11 Sep 2011 11:49:25 -0700

Hello,

Is there a way to manipulate a Javascript datasource object via Cocoa? For example, given the following snippet (edited for brevity):

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Highcharts Example</title>
		<script type="text/javascript">
			var chart;
			$(document).ready(function() {
				chart = new Highcharts.Chart({
					chart: {
						renderTo: 'container',
						defaultSeriesType: 'bar',
					},
					xAxis: {
						categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
						title: {
							text: null
						}
					},
					series: [{
        				data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]}]
				});
			});
		</script>
	</head>
	<body>
		<!-- 3. Add the container -->
		<div id="container" style="width: 800px; height: 400px; margin: 0 auto"></div>
</body>
</html>

Is there a way to access the chart.series[0].data element in order to manipulate it? I'm not sure if it's OK to post this question here... it's about Cocoa, but probably involves WebKit, so I don't know if this is the right place.

Thanks in advance,

-- Tito
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • [Solved] Re: Accessing a Javascript datasource object via Cocoa
      • From: Tito Ciuro <email@hidden>
  • Prev by Date: Re: SecKeyRef object without KeyChain [issues with kSecPkcs1Padding]
  • Next by Date: Internal warning/failure appears not to be my code after all.
  • Previous by thread: Re: SecKeyRef object without KeyChain [issues with kSecPkcs1Padding]
  • Next by thread: [Solved] Re: Accessing a Javascript datasource object via Cocoa
  • Index(es):
    • Date
    • Thread