On Wed, Jan 18, 2006 at 11:28:55AM -0500, Michael Peters wrote:
> this simple test HTML/JS works fine for me in Firefox 1.0.7 and I'm pretty 
> sure
> it works with IE (but I don't have one handy to test with).

Finally got back to this -- yes, works great.  Thank you.

Still have a few questions:

I'm returning JSON in my Ajax.Request.  should I return content type
text/javascript; charset=utf-8?

I ask because for Ajax.Updater where I'm passing back a chunk of html
I'm sending text/html content type.


The JSON I'm returning looks like:

 {"city":"Washington","state":"DC"}

Which I eval in my onComplete code.  From the docs it seems that
prototype could eval for me, but I wasn't clear how from the docs.



Are there docs somewhere that explains how to deal with errors?  When
first debugging I noticed that my little "busy" spinner didn't stop
when and error happened server side.


Another likely very basic javascript question:  How do I pass data from
the function that's calling Ajax.Request to the onComplete function?



-- 
Bill Moseley
[EMAIL PROTECTED]

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to