window.>
---The you should alwas be able to get mouse cords by using System.Mouse.getX() and System.Mouse.getY().Bst RegardsMichael KrogDen 02/01/2006 kl. 14.14 skrev 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 listRails-spinoffs@lists.rubyonrails.orghttp://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs ___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
great, thanksOn 1/2/06, Michael Zachariassen Krog <[EMAIL PROTECTED]> wrote:
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:--
var System={
Mouse:{
_x=0,
_y=0,
getX:function(){return this._x;},
getY:function(){return this._y;},
refresh:function(e){
if (!e) var e = window.event;
if (e.pageX || e.pageY)
{
System.Mouse._x = e.pageX;
System.Mouse._y = e.pageY;
}
else if (e.clientX || e.clientY)
{
System.Mouse._x = e.clientX + document.body.scrollLeft;
System.Mouse._y = e.clientY + document.body.scrollTop;
}
}
}
}
window.
;
---The you should alwas be able to get mouse cords by using System.Mouse.getX() and System.Mouse.getY().Bst Regards
Michael KrogDen 02/01/2006 kl. 14.14 skrev 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 listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
___Rails-spinoffs mailing listRails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
-- Tarek Ziadé | www.afpy.orgPython - why settle for snake oil when you can have the whole snake? (Mark Jackson)
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hi,
I’ve just had my very first attempt of making a
_javascript_ class, ”prototype” style, so please bare with me, for
any disastrous errors J
Anyway, I’ve made this class, which is called
on an input field on focus: http://pastebin.com/487417
It works fine in FireFox, but causes some problems in
IE. My question is regarding line 69 in the paste. What is the right way of ”re-attaching”
the event to the element? I.e. once it is focused again, the class should fire
again. As I said, it works fine, both in FF, but once I clone the object in IE,
the new object somehow does not include this class. It does in firefox though.
Why is that? I’ve tried alerting the onfocus function, which has a “function
anonymous() {}” around the original function, could this be the problem?
And if so, how could it be solved?
Thanks in advance for your attention to this matter.
Best Regards
Michael.
Jeg beskyttes af den gratis SPAMfighter til privatbrugere.Den har indtil videre sparet mig for at få 320 spam-mailsBetalende brugere får ikke denne besked i deres e-mails.Hent en gratis SPAMfighter her.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
You might want to try:
Event.observe(this.elm, ‘focus’,
this.onFocus.bindAsEventListener(this));
That’s just at a cursory glance. If
it still doesn’t work, I could look into it more.
Greg
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Ladum
Sent: Monday, January 02, 2006
11:42 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] First
time class problems
Hi,
I’ve just had my very first attempt of making a
_javascript_ class, ”prototype” style, so please bare with me, for
any disastrous errors J
Anyway, I’ve made this class, which is called on an
input field on focus: http://pastebin.com/487417
It works fine in FireFox, but causes some problems in IE. My
question is regarding line 69 in the paste. What is the right way of
”re-attaching” the event to the element? I.e. once it is focused again,
the class should fire again. As I said, it works fine, both in FF, but once I
clone the object in IE, the new object somehow does not include this class. It
does in firefox though. Why is that? I’ve tried alerting the onfocus
function, which has a “function anonymous() {}” around the original
function, could this be the problem? And if so, how could it be solved?
Thanks in advance for your attention to this matter.
Best Regards
Michael.
Jeg beskyttes af den gratis SPAMfighter til
privatbrugere.
Den har indtil videre sparet mig for at få 320 spam-mails
Betalende brugere får ikke denne besked i deres e-mails.
Hent en gratis SPAMfighter her.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Oh, and if I’m looking at the right
code, this.onFocus just calls this.elm.onfocus, so it shouldn’t work at
all it seems. Am I missing something?
Greg
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory
Hill
Sent: Monday, January 02, 2006
12:44 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs]
First time class problems
You might want to try:
Event.observe(this.elm, ‘focus’,
this.onFocus.bindAsEventListener(this));
That’s just at a cursory
glance. If it still doesn’t work, I could look into it more.
Greg
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Ladum
Sent: Monday, January 02, 2006
11:42 AM
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Rails-spinoffs] First
time class problems
Hi,
I’ve just had my very first attempt of making a
_javascript_ class, ”prototype” style, so please bare with me, for
any disastrous errors J
Anyway, I’ve made this class, which is called on an
input field on focus: http://pastebin.com/487417
It works fine in FireFox, but causes some problems in IE. My
question is regarding line 69 in the paste. What is the right way of
”re-attaching” the event to the element? I.e. once it is focused
again, the class should fire again. As I said, it works fine, both in FF, but
once I clone the object in IE, the new object somehow does not include this
class. It does in firefox though. Why is that? I’ve tried alerting the
onfocus function, which has a “function anonymous() {}” around the
original function, could this be the problem? And if so, how could it be
solved?
Thanks in advance for your attention to this matter.
Best Regards
Michael.
Jeg beskyttes af den gratis SPAMfighter til
privatbrugere.
Den har indtil videre sparet mig for at få 320 spam-mails
Betalende brugere får ikke denne besked i deres e-mails.
Hent en gratis SPAMfighter her.
___
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
Has anyone been able to make scrollable results for an autocompleter?
Thanks!
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
I did with an Autocompleter.Local, just put it in the css on the div to
scroll.
style="overflow: scroll;"
Greg
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Daniel Elmore
> Sent: Monday, January 02, 2006 3:14 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] Autocompleter with a scroll bar
>
> Has anyone been able to make scrollable results for an autocompleter?
>
> Thanks!
>
> ___
> 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
Thanks Greg, that almost works for me. It's giving me some display
issues. A horizontal scroll bar is displayed even though it's not
needed. Is there a way to flag a scroll-y only?
Thanks!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gregory Hill
Sent: Monday, January 02, 2006 4:21 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Autocompleter with a scroll bar
I did with an Autocompleter.Local, just put it in the css on the div to
scroll.
style="overflow: scroll;"
Greg
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Daniel Elmore
> Sent: Monday, January 02, 2006 3:14 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] Autocompleter with a scroll bar
>
> Has anyone been able to make scrollable results for an autocompleter?
>
> Thanks!
>
> ___
> 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 mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Ooo, got it. Just use "overflow: auto;"
Daniel
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gregory Hill
Sent: Monday, January 02, 2006 4:21 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Autocompleter with a scroll bar
I did with an Autocompleter.Local, just put it in the css on the div to
scroll.
style="overflow: scroll;"
Greg
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Daniel Elmore
> Sent: Monday, January 02, 2006 3:14 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] Autocompleter with a scroll bar
>
> Has anyone been able to make scrollable results for an autocompleter?
>
> Thanks!
>
> ___
> 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 mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Err, As soon as I touch the scroll bar with the mouse, the whole div
fades away. Were you able to get around this Greg???
Daniel
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Gregory Hill
Sent: Monday, January 02, 2006 4:21 PM
To: rails-spinoffs@lists.rubyonrails.org
Subject: RE: [Rails-spinoffs] Autocompleter with a scroll bar
I did with an Autocompleter.Local, just put it in the css on the div to
scroll.
style="overflow: scroll;"
Greg
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:rails-spinoffs-
> [EMAIL PROTECTED] On Behalf Of Daniel Elmore
> Sent: Monday, January 02, 2006 3:14 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: [Rails-spinoffs] Autocompleter with a scroll bar
>
> Has anyone been able to make scrollable results for an autocompleter?
>
> Thanks!
>
> ___
> 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 mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Nice start. I also find the other editors to be too bulky. I also
have a pretty full plate, but if I have some time to add something to
it I will and forward it on.
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
Just upgraded to 1.5.1 and an old bug showed its ugly head in safari:
I'm downloading some content via ajax updater and on success feeding a
div with the content and using Effect.Appear on it.
Works in mozilla flavored browsers and IE 6 but on safari just after
the effect stops the div goes mental and looses its position -
apparently safari sets it to top:0 left:0 but doesn't tell its
renderer to refresh the canvas. There's no position rule in the div to
begin with.
This used to happen prior to 1.5.0, started working on 1.5.0 RC and
now is back on 1.5.1.
You can see the bug in action if you go to my blog on
http://www.spiceee.com/pensaletes/ and click on any of the taxonomy
tags that closes every post.
Spiceee.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
16 matches
Mail list logo