An other option are tPrototype's built-in inspect() methods:

 >>> $H({blah:'blech'}).inspect()
"#<Hash:{'blah': 'blech'}>"

best,
Thomas

Am 19.04.2007 um 17:47 schrieb David Dashifen Kees:

> Wow, that is pretty cool.  It might be more than I personally need  
> for a javascript object dumping option, but it is very cool.''
>
>  - Dash
>
> Richard Quadling wrote:
>> To generate such a thing, you could take a look at the cool PHP class
>> dbug at http://dbug.ospinto.com
>>
>> Converting this to JS wouldn't be too onerous.
>>
>> Is this the sort of thing you are looking for?
>>
>> On 19/04/07, David Dashifen Kees <[EMAIL PROTECTED]> wrote:
>>
>>>  True, but this may provide the opportunity for those who don't  
>>> have firebug
>>> or firebuglite (for some unknown reason) and the output is nicer  
>>> if you're
>>> alerting the information rather than using the console functions  
>>> of firebug.
>>>
>>>   - Dash -
>>>
>>>  Richard Quadling wrote:
>>>  Use Firebug and call console.dir(xxx,yyy,zzz)
>>>
>>> You can also use FireBugLite for IE to do the same.
>>>
>>> http://www.getfirebug.com
>>>
>>> On 19/04/07, David Dashifen Kees <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>  I know I'll be using this one from time to time; thought others  
>>> might
>>> like it, too. The dump() function is similar to PHP's print_r() and
>>> will show the contents of an object in a human-readable format. More
>>> information:
>>> http://www.openjs.com/scripts/others/dump_function_php_print_r.php.
>>>
>>>  - Dash -
>>>
>>>
>>>
>>>
>>>
>>>  >
>>>
>>>
>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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