As Justin pointed out, if you are debugging, firebug (and firebug lite
in non-firefox browsers) and it's console.log method work fine. If you
want to update the page, you can use Element#update or Element#insert,
provided by Prototype.

http://prototypejs.org/api/element/update
http://prototypejs.org/api/element/insert

One other thing, Prototype provides an "extended" response object,
that has a 'responseJSON' property. So instead of
transport.responseText.evalJSON() you can just call
transport.responseJSON.

http://prototypejs.org/api/ajax/response

Best,
-Nicolas

On Feb 10, 2008 9:51 PM, Burst Web Solutions <[EMAIL PROTECTED]> wrote:
>
> >
> > > Its writing the value to the screen
> >
> > That's what happens when you use document.write like that. If you're
> > just debugging, and you use Firefox/Firebug, use console.log instead.
> >
> > -justin
>
> So what would be the best way to print the values to the browser
> without using document.write?
>
> thanks,
> david
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to