<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 19:18:10 +0000</lastBuildDate>
    <item>
      <title>(Python) JSONP property for cherrypy - ndnichols</title>
      <link>https://snipplr.com/view/15486/jsonp-property-for-cherrypy</link>
      <description>&lt;p&gt;This is a @property to take care of jsonp stuff if you're using CherryPy.&#13;
In your Javascript, (you're using JQuery, right?) you can do&#13;
`&#13;
$.ajax({url:"localhost:8080/MyMethod", data:{'arg1':'foo'}, dataType:"jsonp", success:onMyMethodComplete});&#13;
`&#13;
and you will get back your JS datastructure without having to worry about the jsonp stuff yourself.&lt;/p&gt;</description>
      <pubDate>Wed, 03 Jun 2009 16:45:11 UTC</pubDate>
      <guid>https://snipplr.com/view/15486/jsonp-property-for-cherrypy</guid>
    </item>
  </channel>
</rss>
