[Proto-Scripty] how to select all elements by class after a certain point?

2009-10-10 Thread patrick
Hi everyone, I am a bit stuck on this.. So, I have a layout with something like this: div class=blahblah/div div class=blahblah/div div class=other_class/div div class=blahblah/div div class=blahblah/div div class=blahblah/div div class=other_class/div div class=blahblah/div ... I have a

[Proto-Scripty] Re: how to select all elements by class after a certain point?

2009-10-10 Thread Alex McAuley
If you use Event with element you can find the element that was clicked $$('.blah').each(function(e) { $(e).observe('click',function(event){ var element=Event.element(event); // this is the element var nextElements=$(element).descendants();// returns everythign that is a });

[Proto-Scripty] Re: how to select all elements by class after a certain point?

2009-10-10 Thread patrick
Well the way I was trying to do it was proving to be too complicated.. So I changed my html a little bit. Now I am doing: div class=container div class=blahsomething/div /div div class=container div class=blahsomething/div div id=me class=blahsomething/div div class=blahsomething/div

[Proto-Scripty] Loading an XML document into html tree structure..?

2009-10-10 Thread zion
Hello, This might be complex but lets see if someone has an idea how to do this with Prototype. There are two steps but even solvin the first one would be a huge help. Step 1. I need to build an browser application(only javascript) where I can load an xml file and make the browser show the nodes

[Proto-Scripty] Many Ajax requests, after bih sql query there are no responses

2009-10-10 Thread Dusko Sobic
Hi All! In brief - I have a table with 250 rows of data and I am trying to fill in 2 columns with ajax calls. -- var sel_list_queue = new Array(# this is an array with more than 200 IDs#); if(sel_list_queue.length0) { var url =

[Proto-Scripty] Re: Many Ajax requests, after bih sql query there are no responses

2009-10-10 Thread T.J. Crowder
Hi, I really wouldn't recommend queuing up 250 Ajax calls like that. Most browsers (and most servers, for that matter) will only allow two connections between the same two endpoints, and then queue the rest, and it sounds like there might be some bugginess in the queuing (which doesn't surprise

[Proto-Scripty] Re: Many Ajax requests, after bih sql query there are no responses

2009-10-10 Thread Alex McAuley
if you need to flush and show te user thngs are loading look at ob_flush() in php Alex Mcauley http://www.thevacancymarket.com - Original Message - From: T.J. Crowder t...@crowdersoftware.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Saturday,

[Proto-Scripty] Re: Last child selector seems to have stopped working

2009-10-10 Thread wid
I have not made a test yet but I will soon. I did how ever report this to lighthouse and they told me this wasn't a bug? That makes no sense to me but here is some updated information about the issue. CSS selectors for FireFox 3.5, Safari 4, and Chrome 3 seem to not work correctly. I created a

[Proto-Scripty] sortable nonsense...

2009-10-10 Thread patrick
Hi everyone, I hope there is a solution to this problem. I don't quite get why it is happening in the first place. http://collinatorstudios.com/tree_test.html If you go to the 2nd row (the scrollable div) and scroll far to the right, and then attempt to swap the positions of two boxes, when

[Proto-Scripty] Re: sortable nonsense...

2009-10-10 Thread patrick
I tried making a different version of my markup where I did: div -- the overflow element ul libox/li libox/li /ul /div http://collinatorstudios.com/tree_test.html This behavior is even worse. If you click and drag and hold down, the scroller bar goes crazy (in FF 3.5.3)

[Proto-Scripty] major frustration with Effect.Morph

2009-10-10 Thread patrick
Ok, so I can't seem to win... It appears to me that Effect.Morph is full of bugs. I have been trying my hardest to get morph to work with padding-- and it doesn't behave properly... document.observe('dom:loaded', function() { $$('input.sort_children').invoke('observe', 'click',

[Proto-Scripty] Major frustrations with Effect.Morph

2009-10-10 Thread patrick
Ok, so I can't seem to win... It appears to me that Effect.Morph is full of bugs. I have been trying my hardest to get morph to work with padding-- and it doesn't behave properly... document.observe('dom:loaded', function() { $$('input.sort_children').invoke('observe', 'click',