Thanks Theo, I figured out the problem and it was my own fault
(relative urls where absolute were needed).

This certainly OT, but I thought I might mention it if someone's
interested, otherwise just ignore me:
I have a small Python decorator that when applied to a method
registers it as a web method (accessed via mod_python) and wraps the
result as json. Then a small dispatcher and a convenience method that
returns a javascript stream where all the registered methods are
defined as Deferred-returning methods. Essentially I have this in
python:

@web
def someServerMethod(req, x, y):
   return x + y

and then I can call it in js like this in js:
someServerMethod(1,2).addCallback(alert);

It's trivial and small, but has proven itself very useful to me. If
someone's interested I'd be happy to send them a copy.

I mention this now b/c I use this nano-framework to make a json-api
for MPD (http://www.musicpd.org/) which is in turn used by the
Dashboard widget.

Arnar

On 1/2/07, Theo <[EMAIL PROTECTED]> wrote:

I've used MochiKit in a Dashboard widget, and had no problems. I didn't
use loadJSONDoc, however, as I fetched XML documents. However, it
shouldn't be any difference between how MochiKit works in Safari, try
to run the widget code in there and watch for log messages in the
JavaScript log or on the console. There is no reason why it shouldn't
work.


>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to