<div dir="ltr">Hi guys, <div><br></div><div>I know how to use AJAX but always everything inside Seaside. I know need a way to provide JSON responses to AJAX calls made by a 3er party lib. For example, in Highstocks [1], there is an example like this:</div><div><br></div><div><br></div><div><div>  /**</div><div>     * Load new data depending on the selected min and max</div><div>     */</div><div>    function afterSetExtremes(e) {</div><div><br></div><div>        var chart = Highcharts.charts[0];</div><div><br></div><div>        chart.showLoading('Loading data from server...');</div><div>      <b>  $.getJSON('<a href="https://www.highcharts.com/samples/data/from-sql.php?start=">https://www.highcharts.com/samples/data/from-sql.php?start=</a>' + Math.round(e.min) +</b></div><div><b>                '&end=' + Math.round(e.max) + '&callback=?', function (data) {</b></div><div><br></div><div>            chart.series[0].setData(data);</div><div>            chart.hideLoading();</div><div>      <b>  });</b></div><div>    }</div></div><div><br></div><div><br></div><div><div><br class="gmail-Apple-interchange-newline">So... how could I provide that at my server side? </div></div><div><br></div><div><br></div><div>Above JS would be code that I write in Seaside and it is passed to the client. Therefore, I THINK I am able to write that JS generating a URL with the correct _s and _k or whatever..</div><div><br></div><div>Thanks in advance for any lead you can give me here.<br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div></div>