Re: [Rails-spinoffs] Scriptaculous and Prototype based Rich Text Editor

2006-01-02 Thread Nicolas Terray
I've just tested with scriptaculous 1.5.1 and the editor does not
work. Here is the js error :

---8<--
Error: too much recursion
Source File: file:///home/nick/prototype.js
Line: 52
---8<--
Fedora Core 3, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12)
Gecko/20050920 Firefox/1.0.7

Regards,
Nicolas Terray

On 12/22/05, Pelle Braendgaard <[EMAIL PROTECTED]> wrote:
> Hi Guys,
> I'm currently using the Dojo Rich text editor on my site
> https://wideword.net but am not 100% happy with it as I'm a prototype
> kind of guy.
>
> So I started writing this Rich Text Editor the other day on an
> experiment. I used the In Place Editor as a template for it and have
> gotten it to more or less work under IE and Gecko. Unfortunately it
> still isn't working on Safari ( The commands to be specific. I think I
> know why).
>
> It would be real easy to create rails helper functions for this, like
> there already is for the In place editor.
>
> It is missing a clean up by a real prototype/scriptaculous expert and
> as mentioned safari support. I was planning on using the fantastic
> silk icons, which seem to support all the required icons. However I'm
> not quite sure the correct way to package icons with a scriptaculous
> widget.
>
> Anyway while I am planning on moving on with this, it is unfortunately
> low priority on a very full plate and I'm off on Vacation for a week
> or so. I figured that maybe someone would like to play with and work
> on it over christmas.
>
> I've included a simple test html page (Ajax support was left more or
> less as is from the Inplace Editor, but I haven't tested it) and the
> javascript. If brought into scriptaculous it would propably make sense
> to include it in controls.js.
>
> Feel free to do whatever you want with it within the same license as
> scriptaculous. I'll happily let some one else take over it entirely or
> work together with someone as well when I get back in January. You can
> ask me questions, but I might not be able to respond to them before
> January, but then again I might.
>
> Merry christmas
> Pelle
> --
> https://wideword.net + Encrypted Wysiwyg document sharing
> http://stakeventures.com + Bootstrapping blog
> http://neubia.com  +  Geek blog
>
> ___
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
>
>
>
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] Scriptaculous Autocompleter and new values

2006-01-02 Thread Johannes Beigel

Hello.

I'm using the Autocompleter to display suggestions when the user enters 
text in an input field. Sometimes the user wants to add text that is not 
among the suggestions but that is the prefix of one of the suggested 
entries. What's the best way to accomplish this (the problem is, that 
the first matching entry is selected automatically and can't be 
deselected)? Maybe something like Firefox's URL suggestions would be 
fine, where only matching URLs are displayed, but the user still has to 
press DOWN to select one of the suggestions (and when pressing ESC the 
suggestions disappear, but the entered text is not deleted).


There's another thing I'd like to use, but am not sure if it's possible: 
As soon as the input field is active, a list of suggestions is displayed 
even if the user has not yet typed anything and the input field is empty 
(of course the suggestions cannot be based on prefix matching in this 
case, but I display the "best" suggestions for the corresponding item). 
Currently I use a slightly patched version of controls.js that uses a 
value of 0 for minChars, but this looks like a hack to me.


Maybe I am missing something and these things are already possible with 
the current version of Scriptaculous? If it is not, could something of 
this be a feasible enhancement request?


Regards,
jojo.

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


[Rails-spinoffs] mouse position without event

2006-01-02 Thread Tarek Ziadé
Hello,

Is it possible somehow to get mouse coordinates without using the event mechanism ?
I need to get the current mouse position to initialize some div position, but not at page load

Tarek

___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs


Re: [Rails-spinoffs] mouse position without event

2006-01-02 Thread Michael Zachariassen Krog
Hi Tarek.No its not. But theres an easy workaround. The following code may not executeas its not tested in a browser, just written from the back of my head. :-)Here it goes:--