[Proto-Scripty] Re: having a default of no selection in drop down list

2009-03-30 Thread claus.k...@googlemail.com
On 27 Mrz., 14:18, Jay hooligan...@gmail.com wrote: hi, I've seen this question asked a couple of times with no response so I thought I'd ask. When I am using the Autocompleter and I don't want the listbox to have a default selection... should I be writing my own updateElement method and

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-03-30 Thread claus.k...@googlemail.com
On 30 Mrz., 11:24, claus.k...@googlemail.com claus.k...@googlemail.com wrote: On 27 Mrz., 14:18, Jay hooligan...@gmail.com wrote: hi, I've seen this question asked a couple of times with no response so I thought I'd ask. When I am using the Autocompleter and I don't want the listbox

[Proto-Scripty] Re: Loosing Scope while AJAX-Request

2009-03-30 Thread T.J. Crowder
Hi, (Your non-native English is pretty good.) This is a common problem with (you'll be glad to know) a fairly simple solution; both covered on a page[1] on the unofficial wiki. [1] http://proto-scripty.wikidot.com/prototype:tip-using-an-instance-method-as-a-callback-or-event-handler HTH, --

[Proto-Scripty] Re: observe any change in the window

2009-03-30 Thread Walter Lee Davis
Take a look at Form.Observer -- it's ideal for this sort of thing. It watches the form in a tight loop (at your specified interval) and if there are any changes to the form from the last time, it fires a function. http://prototypejs.org/api/timedObserver Walter On Mar 29, 2009, at 8:55

[Proto-Scripty] Re: Trying to develop something new

2009-03-30 Thread T.J. Crowder
Hi, All tests pass here in Chrome with RC1. Chrome 1 or Chrome 2? -- T.J. :-) On Mar 29, 8:18 pm, kangax kan...@gmail.com wrote: On Mar 29, 4:38 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi Richard, FYI, I happen to know that kangax was working on Chrome support and I believe

[Proto-Scripty] Ajax.InPlaceEditor close/disable on lost focus

2009-03-30 Thread Stucture_Ulf
Is there a way to shut down the in-place-editor when you click the mouse outside the input-field? Looking for a simple solution...should I use document.observe..any tips appreciated --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Proto-Scripty] Re: Effect.Notify

2009-03-30 Thread Mitchell McCulloch
Hi, Thanks for posting this, implementing exactly what you have designed here was next on my research list. Very quick and easy to set up and modify, I like it. This newbie js developer appreciates it! Mitchell -Original Message- From: prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread Walter Lee Davis
Radio buttons are very hard to code this way. A cluster of buttons has a single name, but each button is a separate input element in the DOM, and no two elements may have the same ID, so there's no way to have a 1:1 mapping like this. My usual pattern looks like this: label

[Proto-Scripty] Re: Problem with responseText

2009-03-30 Thread Richard Quadling
The problem is that your editor has added this to the PHP script. So, whereas ... html head title?php echo $someTitleInPHP; ?/title ... will echo the HTML tags with the title embedded, the BOM arrives also. PHP5 and lower will NOT treat the BOM any different to any other content. You will

[Proto-Scripty] Re: Problem with responseText

2009-03-30 Thread Richard Quadling
Alternatively, you could just skip the first 3 characters of the response... response.substring(3); http://www.w3schools.com/jsref/jsref_substring.asp 2009/3/30 Richard Quadling rquadl...@googlemail.com: The problem is that your editor has added this to the PHP script. So, whereas ...

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread simon.murgatr...@googlemail.com
That’s the only way I’ve been able to make it work too, but then it leaves me the problem of unselecting the radio boxes manually, a task made harder because it’s no longer an array. The only way I’ve been able to make this work the way I wanted was to use an old style onclick event which doesn’t

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread Chris Sansom
At 04:20 -0700 30/3/09, simon.murgatr...@googlemail.com wrote: The problem is it only registers the call back on the first of the radio boxes. If I change the id on each input statement so each uses a differenet name, I can register three callbacks. But I want the radio boxes to operate as a set,

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread simon.murgatr...@googlemail.com
I didn’t dismiss what you said, but isn’t the problem with that pattern that if I have other radio button sets on the same page it’s going to pull those back at the same time? And that means I'm going to have to look at the name of each item and decide if it’s part of this set of radio buttons or

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread simon.murgatr...@googlemail.com
Thats an idea - use a class as the selector. Maybe I can get that working generically, I will give it a try. On Mar 30, 2:34 pm, Chris Sansom ch...@highway57.co.uk wrote: At 04:20 -0700 30/3/09, simon.murgatr...@googlemail.com wrote: The problem is it only registers the call back on the

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread Walter Lee Davis
It's all down to the parent Element you choose to wrap these form elements with. It doesn't have to be a span as I had it, you could just give the enclosing paragraph or LI an id and away you go. What you could not do -- what you are correct to assume here -- is use this vague syntax with

[Proto-Scripty] Find position afer DND

2009-03-30 Thread stani
Is there any cross browser (working also in IE) way to find the position of a draggable relative to droppable, after the drop occured? we try to do this, it works okay, except in ie: drag an image1 (draggable) contained in a div1 on the image2 (droppable) contained in the div2. When onDrop

[Proto-Scripty] Re: Image magnifier script written in scriptaculous

2009-03-30 Thread Diodeus
Hi Farhan, I wrote one here: http://www.mintomidtown.com/Penthouse/floorplans.asp?p=1 You can grab the code by viewing the source of the page. On Mar 26, 9:53 am, farhan mmfar...@gmail.com wrote: Hi, I am trying to find an image zoom script like: http://www.magictoolbox.com/magiczoom/

[Proto-Scripty] Re: Prototype Radio Box Question

2009-03-30 Thread simon.murgatr...@googlemail.com
Ah, I didnt get the relevenace of the span. Yes, I can do that, easily. Thanks everyone of the excellent help. On Mar 30, 3:14 pm, Walter Lee Davis wa...@wdstudio.com wrote: It's all down to the parent Element you choose to wrap these form   elements with. It doesn't have to be a span as I

[Proto-Scripty] bug in Position.within() ???

2009-03-30 Thread bboesenb...@googlemail.com
Hi Everyone! I know there is a bug tracking system for Prototype but because I'm not too sure I thought I ask here first. The Position.within() methods is buggy in my opinion: within: function(element, x, y) { if (this.includeScrollOffsets) return

[Proto-Scripty] Re: observe any change in the window

2009-03-30 Thread RobG
On Mar 30, 9:36 pm, Walter Lee Davis wa...@wdstudio.com wrote: Take a look at Form.Observer I think you meant to reply to the OP. -- it's ideal for this sort of thing. I don't think it is. It   watches the form in a tight loop (at your specified interval) and if   there are any changes