[Proto-Scripty] Where the 'click' go in Safari?

2009-10-01 Thread ronman
Hi, After a certain sequence of events I lose my 'click' events in Safari. It works normally in Firefox. Here's how: I have some href tags with Event.observe('click' ... attached. I open a child window with javascript window.open. Do some things, then just before closing the child window I

[Proto-Scripty] Re: mixin of function not found

2009-07-14 Thread ronman
); -- http://positionabsolute.net On Jul 13, 2:40 pm, ronman ron.new...@gmail.com wrote: Why doesn't 'getCoordinates' show up in the following code? canvas.getCoordinates() throws an error of getCoordinates is not a function I'm making a newbie error somewhere.     var canvas = new Element

[Proto-Scripty] Re: Objects that return zero length

2009-07-14 Thread ronman
something like... var arr = $H(attr.edges).keys(); arr.each(function(edgeProperty){    this[edgeProperty].set(...); }, attr.edges); On Jul 14, 3:09 pm, ronman ron.new...@gmail.com wrote: Here's what I'm doing now:  $A(attr.edges).each(function(edge) {     edge.set(id, new GraphEdge(cv

[Proto-Scripty] Re: differences between mootools 'each' and Prototype 'Enumerable.each'

2009-07-11 Thread ronman
a look: http://jsbin.com/anefa (view source... ) On Fri, Jul 10, 2009 at 4:57 PM, ronman ron.new...@gmail.com wrote: Hi, I've been puzzling over this for a couple of days and finally admit I need help.  I have a Hash of objects which I iterate over using each:  $H(data.nodes).each

[Proto-Scripty] Re: differences between mootools 'each' and Prototype 'Enumerable.each'

2009-07-11 Thread ronman
the source Rick On Sat, Jul 11, 2009 at 10:54 AM, ronman ron.new...@gmail.com wrote: It works!  Thank you muchly.  Valuable for learning, too. Now the code executes far enough to uncover another similar problem which I think will go to my basic understanding of Javascript.  I'm expecting

[Proto-Scripty] Re: differences between mootools 'each' and Prototype 'Enumerable.each'

2009-07-11 Thread ronman
I just added to the last example, so view the source Rick On Sat, Jul 11, 2009 at 10:54 AM, ronman ron.new...@gmail.com wrote: It works!  Thank you muchly.  Valuable for learning, too. Now the code executes far enough to uncover another similar problem which I think will go to my basic

[Proto-Scripty] differences between mootools 'each' and Prototype 'Enumerable.each'

2009-07-10 Thread ronman
Hi, I've been puzzling over this for a couple of days and finally admit I need help. I have a Hash of objects which I iterate over using each: $H(data.nodes).each(function(mynode,id) { alert(mynode); // do something with mynode },this); What I get back for 'mynode' is

[Proto-Scripty] Updater from within an iframe

2008-11-17 Thread ronman
I've seen postings similar to my problem, but they didn't answer my question. Within an iframe, I've defined a div id='target/div Within the same iframe, I have some javascript: script function ajaxrefresh() { window.document.getElementById('target').innerHTML='...Loading'; new