[Proto-Scripty] Auto re-size slider scrollbar range based on viewport's width

2009-06-16 Thread Keane
I'm using slider as a scrollbar for a horizontal layout. It works fine, but when I re-size the browser, the scrollbar's range will not resize based on the browser's viewport width. The scrollbar extends to the rigth and the default horizontal scrollbar shows up. Here's the page where you can

[Proto-Scripty] Prototype and forms

2009-06-16 Thread anthony
I have a form that when a user selects something from a drop-down, another element in the form appears. There is another piece of the form, that is never showing up, I need to understand what I am doing wrong and how to fix it: script type=text/javascript language=JavaScript function

[Proto-Scripty] Re: AJAX request - select element

2009-06-16 Thread fufolewe
Hi, thx a lot for your help. @Colin doesn't work means it returns NULL ;) But of course, you are right. I already feared that the A string is not a document/DOM is the main problem. @T.J. Crowder thx! I'll try this soon, it looks promising :) I already created a regEx solution but it's too

[Proto-Scripty] Re: AJAX request - select element

2009-06-16 Thread Alex McAuley
You could always update the response into a hidden iframe and search that - i am pretty sure this works - Original Message - From: fufolewe rentsch.dan...@gmail.com To: Prototype script.aculo.us prototype-scriptaculous@googlegroups.com Sent: Tuesday, June 16, 2009 10:49 AM Subject:

[Proto-Scripty] Doctypes

2009-06-16 Thread Chris Sansom
I'm curious about the recent discussion that's arisen as a sideline from the 'Creating new lines and bypassing them through escapeHTML' thread. I've been using Prototype for a little while now (though not Scriptaculous - yet!). I'm not by any stretch of the imagination an expert and I'm sure

[Proto-Scripty] Re: AJAX request - select element

2009-06-16 Thread ColinFine
On Jun 15, 1:41 pm, T.J. Crowder t...@crowdersoftware.com wrote: 2. Alternately, use a document fragment[1][2].  This is to a large extent what document fragments are for -- holding copies of things and mucking about with them off-to-the-side.  I was surprised not to have an example lying

[Proto-Scripty] Re: Doctypes

2009-06-16 Thread Szymon Wilkołazki
Chris Sansom wrote: I'm curious about the recent discussion that's arisen as a sideline from the 'Creating new lines and bypassing them through escapeHTML' thread. I've been using Prototype for a little while now (though not Scriptaculous - yet!). I'm not by any stretch of the

[Proto-Scripty] Event.stop with two observers on same object

2009-06-16 Thread steffenb
Hi, as it isn't documented, I was wondering if this is the intended behavior: when registering two separate event observers on one object, Event.stop doesn't prevent the second one from firing. Test case: http://pastie.org/513548 Steffen --~--~-~--~~~---~--~~

[Proto-Scripty] Re: Event.stop with two observers on same object

2009-06-16 Thread T.J. Crowder
Hi, Interesting question. It's the expected behavior. The documentation [1] says that Event#stop will: * Prevent further bubbling of the event * Prevent the default behavior of the event (where the browser allows it) Not triggering other observers doesn't fall under either of those

[Proto-Scripty] Re: Problems with pollDoScroll and IE family (1.6.1 rc)

2009-06-16 Thread gnaegi
Hi David Thanks for the link, but this does not help me. I know what pollDoScroll() does. My problem is that when I use prototype in my webapp, I get Out of stack space error messages in IE because the pollDoScroll() method is executed over 600 times in a recursion and the expression

[Proto-Scripty] Effect.Morph syntax question

2009-06-16 Thread Walter Lee Davis
There's the simple method (these names are from the documentation in the Wiki): $('foo').morph('top:12px;') and the complex method: new Effect.Morph(foo,{style:'top:12px;',duration:0.5}); They work fine. Yet, from reading the code, I can't tell why I can't seem to use any parameters

[Proto-Scripty] Re: Prototype and forms

2009-06-16 Thread Rick Waldron
A few things... var params = Form.serialize($('createAdjForm')); You can clean this up as: var params = $('createAdjForm').serialize(); There are other points that you could optimize, but thats not your question... And at whatever point you want adjForm to appear, you need to add:

[Proto-Scripty] Re: Draggables/Droppables grid problem

2009-06-16 Thread adamski
OK problem solved - I realised I needed large droppables - so I made each column in the grid a droppable area, and worked out the target from the mouse event coordinates. Works now! On Jun 15, 10:44 am, adamski adam.elemen...@gmail.com wrote: I'm working on a 3 column grid of draggable objects.

[Proto-Scripty] element is null error on Draggable - element exists!

2009-06-16 Thread adamski
I'm having some trouble getting a Draggable to dorp onto a Droppable. I get the old element is null error from prototype (its trying to show an non-existent element). However, the element being dragged most definitely exists, as does the droppable. JS generated form Rails helpers. Any help much

[Proto-Scripty] Re: element is null error on Draggable - element exists!

2009-06-16 Thread Rick Waldron
Could you set this up on http://jsbin.com/? On Tue, Jun 16, 2009 at 2:06 PM, adamski adam.elemen...@gmail.com wrote: I'm having some trouble getting a Draggable to dorp onto a Droppable. I get the old element is null error from prototype (its trying to show an non-existent element).

[Proto-Scripty] Re: z-index sortable list

2009-06-16 Thread Maya
Thanks so much for your help! I'll give it a go and see what happens. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] Re: z-index sortable list

2009-06-16 Thread Maya
Thanks so much for your help! I'll give it a go and see what happens. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] Re: Creating new lines and bypassing them through escapeHTML

2009-06-16 Thread kangax
On Jun 16, 4:57 am, T.J. Crowder t...@crowdersoftware.com wrote: Heya, If XHTML isn't necessary for Prototype, I'd suggest we change the doctype of the examples and unit tests. Good idea. Exclusively using XHTML doctype either shows our ignorance on the subject or the fact that we prefer

[Proto-Scripty] Re: Doctypes

2009-06-16 Thread kangax
On Jun 16, 5:52 am, Chris Sansom ch...@highway57.co.uk wrote: I'm curious about the recent discussion that's arisen as a sideline from the 'Creating new lines and bypassing them through escapeHTML' thread. I've been using Prototype for a little while now (though not Scriptaculous - yet!).