[Proto-Scripty] Function expected err when doing instanceof in IE

2008-12-01 Thread yoshi
hi all, the fowllowing js is causing err on IE: $('someThing') instanceof Element error: Function expected it is fine on any other objects such as: $('someThing') instanceof Template -- return false $('someThing') instanceof Hase -- return false any idea y Element is diff or how i can get

[Proto-Scripty] Re: Function expected err when doing instanceof in IE

2008-12-01 Thread yoshi
in firefox of course thanks again for the help On Dec 1, 7:29 pm, kangax [EMAIL PROTECTED] wrote: On Dec 1, 7:36 pm, yoshi [EMAIL PROTECTED] wrote: hi all, the fowllowing js is causing err on IE: $('someThing') instanceof Element error: Function expected it is fine on any

[Proto-Scripty] IE eval() question...

2008-12-03 Thread yoshi
heres my js: var stuff7=eval('function() {alert(stuff..);}') when i alert stuff7 it is undefined. now if i do this: eval('var stuff7=function() {alert(stuff..);}') and alert stuff7, it is defined does anybody know y, the jscript eval doc doesnt really help, i suspect it is a scope issue?

[Proto-Scripty] Re: IE eval() question...

2008-12-04 Thread yoshi
3, 9:36 pm, yuval dagan [EMAIL PROTECTED] wrote: try it like this: add  ( and ) var stuff7=eval('(function() {alert(stuff..);})') thats because the interpreter rules of running the script On Thu, Dec 4, 2008 at 3:17 AM, yoshi [EMAIL PROTECTED] wrote: heres my js: var stuff7=eval

[Proto-Scripty] Prototype and Protovis

2009-04-14 Thread yoshi
I'm sure some of you have seen the nice work that is being done on protovis.. http://vis.stanford.edu/protovis/ I would like to implement a test of this graphing capability which returns a chart in response to an ajax.updater call. I have never quite understood how to get javascripts to run

[Proto-Scripty] 1.5.1 Hash to 1.6.1 Hash compatibility

2009-10-07 Thread yoshi
i m trying to upgrade prototype 1.5.1 to 1.6.1, then realized that the $H changed, and not compatible with '[]' anymore. the code base is huge, and $H is used very often. i m wondering if theres a smarter way then 1) writing my own wrapper around $H, so it works with old code, or 2) surgically

[Proto-Scripty] Re: 1.5.1 Hash to 1.6.1 Hash compatibility

2009-10-08 Thread yoshi
(transport.responseJSON.errors) the result is a weird hash (size() == 38!) yoshi, how do you fixed it? what kind of test should I do before the hash creation? On 8 oct, 00:34, yoshi yosh...@hotmail.com wrote: i m trying to upgrade prototype 1.5.1 to 1.6.1, then realized that the $H changed