Thanks, Jay.  I thought I was on the right track...just wanted a little sanity check before coding. :)<br><br><div class="gmail_quote">On Tue, Mar 2, 2010 at 4:44 PM, J. Shirley <span dir="ltr">&lt;<a href="mailto:jshirley@gmail.com">jshirley@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">On Tue, Mar 2, 2010 at 12:06 PM, Michael Peck &lt;<a href="mailto:mapeck65@gmail.com">mapeck65@gmail.com</a>&gt; wrote:<br>

&gt; I&#39;m writing a Greasemonkey script that incorporates JQuery, which I want to<br>
&gt; POST JSON data to a catalyst application.  The Catalyst application does not<br>
&gt; exist within the same domain as the page the greasemonkey script is running<br>
&gt; from, so I am assuming I will need to use Greasemonkey&#39;s GM_xmlhttpRequest<br>
&gt; method to post the data.  I am new to all of this, so I&#39;m just trying to<br>
&gt; make sure my thought process is correct.<br>
&gt;<br>
&gt; On the client side, I think I should use JSON.stringify on the Javascript<br>
&gt; object before posting it using GM_xmlhttpRequest to the Catalyst app.<br>
&gt;<br>
&gt; On the Catalyst side, I&#39;m planning to use Catalyst::Controller::REST, which<br>
&gt; should deserialize the JSON data with Catalyst::Action::Deserialize::JSON,<br>
&gt; if I understand it correctly.<br>
&gt;<br>
&gt; If anyone has done anything similar, I could use some pointers, as I&#39;m new<br>
&gt; to Catalyst and haven&#39;t worked with JSON before.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Mike.<br>
&gt;<br>
<br>
</div></div>Assuming you can do the cross-domain xmlhttprequests with greasemonkey<br>
(I don&#39;t use Greasemonkey) then Catalyst::Controller::REST is what you<br>
are after.<br>
<br>
Just make sure that you send the &quot;Content-type: application/json&quot;<br>
header, and everything will work.  I do this a lot with JSON, using<br>
yui3 though.<br>
<br>
-Jay<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</blockquote></div><br>