[Proto-Scripty] Re: -[Accordion]-...

2010-03-31 Thread Eric


On Mar 29, 8:51 pm, Walter Lee Davis wa...@wdstudio.com wrote:
 By the way, has anybody seen the new jsBin?! Really nice, and no more  
 halloween color scheme either.

Yes, it is a lot nicer, but it still is bogus on Firefox when using
scriptaculous:
You cannot use preview tab because it doesn't load scripts in the
correct order (scriptaculous is loaded before prototype.js which screw
things up).

I hope this will be fixed soon.

Eric

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



[Proto-Scripty] Re: hash:zero

2010-03-31 Thread Eric
Something like that should do it:
yourHash = $H();

You're affecting a new empty hash to your old hash, which should be
garbage collected by the browser.

Eric

On Mar 29, 8:47 pm, Walter Lee Davis wa...@wdstudio.com wrote:
 So if you had a hash of N length and you wanted to end up with a hash  
 with no members? You could try setting its length to 0. Not sure if  
 that works, but it would be the first thing I would try.

 Walter

 On Mar 29, 2010, at 2:26 PM, chrysanthe m wrote:

  Hello
  I am sure this is documented somewhere, I have googled and looked at  
  the api
  however it is still unclear.  How can I zero our all the keys/values  
  of a
  prototype hash without iterating over it?  Sorry if it is  
  documented, I
  couldn't find an api faq.  tia.

  --
  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 
  prototype-scriptaculous+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  athttp://groups.google.com/group/prototype-scriptaculous?hl=en
  .



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



[Proto-Scripty] Ghosting

2010-03-31 Thread WLQ
I have to sortable menus, with drag and drop on one other. When I drag
the element from the list with ghosting=true to another element, you
don't see where you gonna drop the item (between which items). How can
ghosting be true but the menu still work like false.

Thanks, Yan

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



[Proto-Scripty] Re: getElementsByClassName

2010-03-31 Thread T.J. Crowder
Hi,

 I now use $A($$('img.IcErrorImage')).invoke('hide'); instead of
 $A(document.getElementsByClassName('IcErrorImage')).invoke('hide');
 Works fine.

There's no need for the $A part of that, $$ returns an array already.

 Do I have to use the element type after $$(  ?

As the docs say, it finds elements according to CSS selectors.
Specifically, $$ supports CSS2 and a fair bit of CSS3, so you type the
same selectors you'd use for CSS. So for instance:

var inputControls = $$('.FokusControls');

Prototype's documentation is a bit messed up right now, but it may be
useful to have a read through the old docs[1] and the new ones[2] (the
old docs still have information that hasn't been migrated to the new
docs yet; people are working on it).

[1] http://prototypejs.org/api
[2] http://api.prototypejs.org

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com

On Mar 30, 4:47 pm, StephanSchipal stephan.schi...@s-itsolutions.at
wrote:
 Dear T.J.,

 thanks for your hint.
 I now use $A($$('img.IcErrorImage')).invoke('hide'); instead of
 $A(document.getElementsByClassName('IcErrorImage')).invoke('hide');
 Works fine.

 But I have an other question, concerning this topic:
 I used: var inputControls =
 $A(document.getElementsByClassName('FokusControls'));
 There I got all input controls (like input, select, checkbox,
 button ...). (use: setting the focus programmatically to the next
 higher tabindex).

 Do I have to use the element type after $$(  ?
 Or is there a generic syntax for all types?

 thanks in advance
 Stephan
 Vienna, Austria

 On Mar 23, 10:02 am, T.J. Crowder t...@crowdersoftware.com wrote:



  Hi,

  It was deprecated a couple of years ago, as of 
  1.6.0:http://www.prototypejs.org/api/element/getElementsByClassName

  ...and finally removed in 1.6.1. Best to switch over to something
  else, like `$$`. However, to ease transition, there is 
  deprecated.js:http://github.com/sstephenson/prototype/blob/master/src/deprecated.js

  HTH,
  --
  T.J. Crowder
  Independent Software Consultant
  tj / crowder software / comwww.crowdersoftware.com

  On Mar 22, 3:40 pm, StephanSchipal stephan.schi...@s-itsolutions.at
  wrote:

   Hi,

   with Version 1.6.1 my statement

   $A(document.getElementsByClassName('IcErrorImage')).invoke('hide');

   does not work any more.

   Any help?
   thanks in advance
   Stephan
   Vienna, Austria- Hide quoted text -

  - Show quoted text -

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



[Proto-Scripty] Re: hash:zero

2010-03-31 Thread T.J. Crowder
@Walter: I don't think Hash has a length member.

@Eric: That will replace *that reference* to the Hash, but any other
references will still refer to the old object. So, for instance, if
the reference has been passed into a function, that will update that
function's reference to point to a new hash, but the caller will still
refer to the old has and its contents.

@Chrysanthe: I'm pretty sure Hash doesn't have any built-in feature
for this. You could add one:

Class.addMethods(Hash, (function() {
function clear() {
this._object = {};
}
return {
clear: clear
};
})());

(That's off-the-cuff, you'll want to double-check it.) Naturally that
means you need to check that that's still compatible each time you
update your copy of Prototype (even dot revs), since it acts on
internals.

FWIW,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Mar 31, 12:58 pm, Eric lefauv...@gmail.com wrote:
 Something like that should do it:
 yourHash = $H();

 You're affecting a new empty hash to your old hash, which should be
 garbage collected by the browser.

 Eric

 On Mar 29, 8:47 pm, Walter Lee Davis wa...@wdstudio.com wrote:



  So if you had a hash of N length and you wanted to end up with a hash  
  with no members? You could try setting its length to 0. Not sure if  
  that works, but it would be the first thing I would try.

  Walter

  On Mar 29, 2010, at 2:26 PM, chrysanthe m wrote:

   Hello
   I am sure this is documented somewhere, I have googled and looked at  
   the api
   however it is still unclear.  How can I zero our all the keys/values  
   of a
   prototype hash without iterating over it?  Sorry if it is  
   documented, I
   couldn't find an api faq.  tia.

   --
   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 
   prototype-scriptaculous+unsubscr...@googlegroups.com
   .
   For more options, visit this group 
   athttp://groups.google.com/group/prototype-scriptaculous?hl=en
   .

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



[Proto-Scripty] Re: getStyle('zIndex') returns exponentiated number in Safari

2010-03-31 Thread Tobie Langel
Use lower z-indexes ?!

On Apr 1, 2:13 am, JoJo tokyot...@gmail.com wrote:
 On all browsers but Safari, getStyle('zIndex') returns a string
 representation of the max integer value 2147483647 for one of my
 elements.  However, on an older version of Safari, it return the
 exponentiated number 2.14748e+9.  After upgrading to the newest
 Safari, it now returns 2.14748e+009, which has 2 extra zeros. Now my
 code has broken because it does an equality check on this value.  How
 do I future-proof my code to work for all versions of Safari? I tried
 to use parseInt(), but this function doesn't understand exponeniated
 numbers.

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