[Proto-Scripty] [help newbie] need some guidelines

2009-02-20 Thread Erwin
I am trying to have a drop-down menu using Prototype ... right nw it runs well but I don't have yet the 'selected' class implemented ... I believe I need to add a new Event.observe for the click, to fire a function clickDetected , in which I'll have to unselect all menu items but the one

[Proto-Scripty] Re: How to get the currently focused element ?

2009-02-20 Thread kreatik
Yes ! thank you very much from France ! Have a good day, Kreatik On Feb 18, 4:54 pm, Baglan baglan@gmail.com wrote: And sorry for so many typos - I'm not sure what haccome even means :) but the code should work. --~--~-~--~~~---~--~~ You received this

[Proto-Scripty] How to use TAB key with inplaceEditor ? :(

2009-02-20 Thread KreatiK'
Hi all J It's possible to use the TAB and Escape keys with InplaceEditor ? (like extJS) Have a good day ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this

[Proto-Scripty] How to fire 'click' on element ?

2009-02-20 Thread marioosh
hello;) i have code like below. I need to simulate click on #log_in button when i press enter on input fields. My code doesnt work. Why ? What can i do to make this works ? [cut] $(this.elContainer).down('#log_in').observe('click', function() {

[Proto-Scripty] Using Prototype functions on load: Difficulties with IE

2009-02-20 Thread lacco
Hi! I just tried to use prototype for writing Foo into document's body (in fact, I just broke down a little more complex code into this). But the IE doesn't find the document.body.update function (in Firefox, all works perfect): html head script src=/javascripts/prototype-1.6.0.3.js

[Proto-Scripty] Re: Using Prototype functions on load: Difficulties with IE

2009-02-20 Thread T.J. Crowder
Hi, Sounds like you're new to Prototype - welcome! When working with Prototype DOM extensions, you have to use $() to get the element unless you got it from a Prototype method (in which case, Prototype has already done it for you). Here's why: http://prototypejs.org/learn/extensions So just

[Proto-Scripty] Re: How to fire 'click' on element ?

2009-02-20 Thread T.J. Crowder
Hi, If you search this group for things like fire native event, that kind of thing, you should find several threads on it. I think the short answer is that there is no reliable, cross-browser way to do it. But there are some workarounds, particularly if you only want to call handlers

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Jason Frisvold
david wrote: Sorry, I needed some more test, i did not use traditionnal event model: I'm not sure I understood the code you sent. Where does process() get called? I've put together a simple version of what I'm trying to do. Code follows: html head titleEvent Propagation/title

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Alex Mcauley
look at Event.stop(event) ... that will stop it bubbling up the DOM but you need the event passed to the function HTH ALex - Original Message - From: Jason Frisvold xenopha...@gmail.com To: prototype-scriptaculous@googlegroups.com Sent: Friday, February 20, 2009 1:58 PM Subject:

[Proto-Scripty] Re: Inheritance with Class.create()

2009-02-20 Thread dashifen
Thanks. That actually makes a great deal of sense to me. - Dash - On Feb 19, 3:32 pm, kangax kan...@gmail.com wrote: On Feb 19, 12:04 pm, dashifen dashi...@dashifen.com wrote: Hacking around a bit, I have a working solution.  Where I used to say something like this.responders.afterOpen

[Proto-Scripty] extending autocomplete

2009-02-20 Thread rrd
I use Ajax.autocompleter for getting 5 members of a long list. I would like to add a previous link to the top of the list and a next link to the end of the list. So the first li of the server's answer is the previous link, the next 5 li-s are the responses and the last li is the next link. My

[Proto-Scripty] Re: How to use TAB key with inplaceEditor ? :(

2009-02-20 Thread kreatik
Some problem : http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/7e2a93c8346f4e1b/0276b302d2d67975 On Feb 20, 12:47 pm, KreatiK' krea...@gmail.com wrote: Hi all J It's possible to use the TAB and Escape keys with InplaceEditor ? (like extJS) Have a good day !

[Proto-Scripty] Re: extending autocomplete

2009-02-20 Thread Walter Lee Davis
You might want to take a step back and see if it wouldn't be easier to write your own custom version, rather than trying to swim upstream to this degree. Autocompleter is meant to deal with an indeterminate number of possible responses, and to continuously filter the results as you type,

[Proto-Scripty] Re: Selectively prevent onClick action ?

2009-02-20 Thread Jason Frisvold
Alex Mcauley wrote: look at Event.stop(event) ... that will stop it bubbling up the DOM Excellent, thanks. but you need the event passed to the function That was the bit I was having a problem with, but I figured it out. I can pass the event itself via the function call. a href='#'

[Proto-Scripty] JSON form generator demo

2009-02-20 Thread Diodeus
Hello Prototypers, I've been working on a JSON-based form generator that uses Prototype. Basically it allows you provide a form specification using JSON and the engine generates the output dynamically. It's still in the early stages but there is a working demo. I am looking for comments and