[Proto-Scripty] Re: New Script.aculo.us combination effect: Fisheye (beta), I need help with callback

2008-12-02 Thread julien Devouassoud
i was not being sarcastic... your version was quite nice, just needed a lil
smoothing.

for a scripta version i'll check it out

On Mon, Dec 1, 2008 at 8:12 PM, Diodeus [EMAIL PROTECTED] wrote:


 It was more about solving the problem of how to do it, and getting a
 little more practice in OO programming, than being the first to do it.
 Regardless, there isn't a scriptaculous version floating around yet.

 Based on the links you posted I have discovered room for improvement.
 It's turning out to be a good exercise for a slow day.

 On Dec 1, 12:29 pm, julien Devouassoud [EMAIL PROTECTED] wrote:
  yeah much, but good effort man.. reinventing the wheel is cool, i love to
 do
  it.. and then realize thing existed all along :)
 
  On Mon, Dec 1, 2008 at 6:11 PM, Diodeus [EMAIL PROTECTED] wrote:
 
   That's very nice. Smoother than the one I've put together.
 
   On Dec 1, 9:49 am, julien Devouassoud [EMAIL PROTECTED] wrote:
check this out :
 
  http://www.ndesign-studio.com/blog/design/css-dock-menu/http://www.ja.
 ..
 
On Mon, Dec 1, 2008 at 2:42 PM, Diodeus [EMAIL PROTECTED] wrote:
 
 options.mouseClick(evt);
 
 That's the piece I needed. Thank you.
 
 On Nov 28, 9:35 pm, Jerod Venema [EMAIL PROTECTED] wrote:
  You probably want to do something like:
 
  mouseClick:. arguments[1].onClick || function(){}
 
  and then, in your code, you hook up the click like so:
 
  myelement.on(click, options.mouseClick);
 
  which hooks the click event to the passed in function. If you
 need to
   do
  other processing first, try:
 
  myelement.on(click, function(evt){
dostuff();
options.mouseClick(evt);
 
  });
 
  Jerod Venema
  Frozen Mountain Softwarehttp://www.frozenmountain.com/
  919-368-5105
 
  On Fri, Nov 28, 2008 at 4:32 PM, Diodeus [EMAIL PROTECTED]
 wrote:
 
   I am building a Scriptaculous-based fisheye menu, which is
 coming
   along well. The thing I can't figure out is how to fire what is
 in
   the
   onClick callback I created.
 
   new Effect.FishEye('demo',{onClick:function(){alert(##)}})
 
   In the initialization I have:
 
   options = Object.extend({
  mouseClick: arguments[1].onClick || '' ...
   })
 
   ...which then goes to this method:
 
   mouseClick: function(event) {
  alert(u...I dunno)
   },
 
   I've been looking at other effects code to try and figure it
 out,
   but
   I'm not getting anywhere.
 
   Here's the demo: jameslab.moveable.com/fisheye
 
   Thank you.
 
   - James.
 
  --
  Jerod Venema
 


--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: New Script.aculo.us combination effect: Fisheye (beta), I need help with callback

2008-12-01 Thread Diodeus

That's very nice. Smoother than the one I've put together.

On Dec 1, 9:49 am, julien Devouassoud [EMAIL PROTECTED] wrote:
 check this out :

 http://www.ndesign-studio.com/blog/design/css-dock-menu/http://www.javascriptfr.com/telecharger.aspx?ID=26334

 On Mon, Dec 1, 2008 at 2:42 PM, Diodeus [EMAIL PROTECTED] wrote:

  options.mouseClick(evt);

  That's the piece I needed. Thank you.

  On Nov 28, 9:35 pm, Jerod Venema [EMAIL PROTECTED] wrote:
   You probably want to do something like:

   mouseClick:. arguments[1].onClick || function(){}

   and then, in your code, you hook up the click like so:

   myelement.on(click, options.mouseClick);

   which hooks the click event to the passed in function. If you need to do
   other processing first, try:

   myelement.on(click, function(evt){
 dostuff();
 options.mouseClick(evt);

   });

   Jerod Venema
   Frozen Mountain Softwarehttp://www.frozenmountain.com/
   919-368-5105

   On Fri, Nov 28, 2008 at 4:32 PM, Diodeus [EMAIL PROTECTED] wrote:

I am building a Scriptaculous-based fisheye menu, which is coming
along well. The thing I can't figure out is how to fire what is in the
onClick callback I created.

new Effect.FishEye('demo',{onClick:function(){alert(##)}})

In the initialization I have:

options = Object.extend({
   mouseClick: arguments[1].onClick || '' ...
})

...which then goes to this method:

mouseClick: function(event) {
   alert(u...I dunno)
},

I've been looking at other effects code to try and figure it out, but
I'm not getting anywhere.

Here's the demo: jameslab.moveable.com/fisheye

Thank you.

- James.

   --
   Jerod Venema
--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: New Script.aculo.us combination effect: Fisheye (beta), I need help with callback

2008-12-01 Thread Diodeus

It was more about solving the problem of how to do it, and getting a
little more practice in OO programming, than being the first to do it.
Regardless, there isn't a scriptaculous version floating around yet.

Based on the links you posted I have discovered room for improvement.
It's turning out to be a good exercise for a slow day.

On Dec 1, 12:29 pm, julien Devouassoud [EMAIL PROTECTED] wrote:
 yeah much, but good effort man.. reinventing the wheel is cool, i love to do
 it.. and then realize thing existed all along :)

 On Mon, Dec 1, 2008 at 6:11 PM, Diodeus [EMAIL PROTECTED] wrote:

  That's very nice. Smoother than the one I've put together.

  On Dec 1, 9:49 am, julien Devouassoud [EMAIL PROTECTED] wrote:
   check this out :

 http://www.ndesign-studio.com/blog/design/css-dock-menu/http://www.ja...

   On Mon, Dec 1, 2008 at 2:42 PM, Diodeus [EMAIL PROTECTED] wrote:

options.mouseClick(evt);

That's the piece I needed. Thank you.

On Nov 28, 9:35 pm, Jerod Venema [EMAIL PROTECTED] wrote:
 You probably want to do something like:

 mouseClick:. arguments[1].onClick || function(){}

 and then, in your code, you hook up the click like so:

 myelement.on(click, options.mouseClick);

 which hooks the click event to the passed in function. If you need to
  do
 other processing first, try:

 myelement.on(click, function(evt){
   dostuff();
   options.mouseClick(evt);

 });

 Jerod Venema
 Frozen Mountain Softwarehttp://www.frozenmountain.com/
 919-368-5105

 On Fri, Nov 28, 2008 at 4:32 PM, Diodeus [EMAIL PROTECTED] wrote:

  I am building a Scriptaculous-based fisheye menu, which is coming
  along well. The thing I can't figure out is how to fire what is in
  the
  onClick callback I created.

  new Effect.FishEye('demo',{onClick:function(){alert(##)}})

  In the initialization I have:

  options = Object.extend({
 mouseClick: arguments[1].onClick || '' ...
  })

  ...which then goes to this method:

  mouseClick: function(event) {
 alert(u...I dunno)
  },

  I've been looking at other effects code to try and figure it out,
  but
  I'm not getting anywhere.

  Here's the demo: jameslab.moveable.com/fisheye

  Thank you.

  - James.

 --
 Jerod Venema
--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: New Script.aculo.us combination effect: Fisheye (beta), I need help with callback

2008-11-28 Thread Jerod Venema
You probably want to do something like:

mouseClick:. arguments[1].onClick || function(){}

and then, in your code, you hook up the click like so:

myelement.on(click, options.mouseClick);

which hooks the click event to the passed in function. If you need to do
other processing first, try:

myelement.on(click, function(evt){
  dostuff();
  options.mouseClick(evt);
});

Jerod Venema
Frozen Mountain Software
http://www.frozenmountain.com/
919-368-5105

On Fri, Nov 28, 2008 at 4:32 PM, Diodeus [EMAIL PROTECTED] wrote:


 I am building a Scriptaculous-based fisheye menu, which is coming
 along well. The thing I can't figure out is how to fire what is in the
 onClick callback I created.

 new Effect.FishEye('demo',{onClick:function(){alert(##)}})

 In the initialization I have:

 options = Object.extend({
mouseClick: arguments[1].onClick || '' ...
 })

 ...which then goes to this method:

 mouseClick: function(event) {
alert(u...I dunno)
 },

 I've been looking at other effects code to try and figure it out, but
 I'm not getting anywhere.

 Here's the demo: jameslab.moveable.com/fisheye

 Thank you.

 - James.


 



-- 
Jerod Venema

--~--~-~--~~~---~--~~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---