[Proto-Scripty] Re: slide effect problem

2008-12-07 Thread Walter Lee Davis

If you're going to use Prototype, you owe it to yourself to read the  
documentation. It's well written, nicely organized, and will pay off  
the hour or so it takes to read through from beginning to end with a  
long career of working smarter.

http://prototypejs.org/api

$$ is a critical part of Prototype. You give it a CSS selector, it  
returns an array of extended elements that are ready to use with all  
the other tricks in the Prototype arsenal. Including invoke()

Read up. It's good for you!

Walter

On Dec 7, 2008, at 5:43 AM, shafir wrote:


 isnt there any other way to do that??
 all the time i get errors
 these $$ what they are for?
 what is .invoke atands for?

 maby i can do something inside the code of the slide function to
 make it more google frindly?

 any ideas???
 help please


 On 4 דצמבר, 14:35, Walter Lee Davis [EMAIL PROTECTED] wrote:
 Then there is something else going on in your page that you aren't
 accounting for. The basic premise works, and very well.

 http://jsbin.com/ivipa

 Walter

 On Dec 4, 2008, at 6:34 AM, shafir wrote:





 yes i saw it
 but as i said...doesnt work :(-הסתר טקסט מצוטט-

 -הראה טקסט מצוטט-
 


--~--~-~--~~~---~--~~
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: slide effect problem

2008-12-04 Thread shafir

yes i saw it
but as i said...doesnt work :(


On Dec 3, 3:20 pm, Walter Lee Davis [EMAIL PROTECTED] wrote:
 Did you see my follow-up message where I corrected my typo? I had a  
 curly brace in there instead of a normal parenthesis. Look through the  
 rest of this thread.

 Walter

 On Dec 3, 2008, at 3:51 AM, shafir mishal wrote:



  sorry but it doesnt work :(

  i implemented your steps:
   document.observe('dom:loaded',function(){
          $$('.hideme).invoke('hide');
   );

  and i got a JS error:
   expected ')' - 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-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: slide effect problem

2008-12-03 Thread Walter Lee Davis

Did you see my follow-up message where I corrected my typo? I had a  
curly brace in there instead of a normal parenthesis. Look through the  
rest of this thread.

Walter

On Dec 3, 2008, at 3:51 AM, shafir mishal wrote:

 sorry but it doesnt work :(

 i implemented your steps:
  document.observe('dom:loaded',function(){
 $$('.hideme).invoke('hide');
  );

 and i got a JS error:
  expected ')' 



--~--~-~--~~~---~--~~
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: slide effect problem

2008-12-02 Thread Walter Lee Davis

As you've found, setting the display property in a CSS sheet will not  
work with the Scripty effects. Try hiding the things you want to hide  
after the DOM loads. Set an empty class on all your to-be-hidden bits,  
and then do this:

document.observe('dom:loaded',function(){
$$('.hideme').invoke('hide');
});

This will have everything hanging out there and visible from Google's  
POV, but will hide it and prepare for your effect from everyone else  
with a pulse and a JavaScript interpreter. Because you are doing it at  
the dom:loaded point rather than the window.load point, there will be  
no flash of unhidden content.

Walter

On Dec 2, 2008, at 2:27 AM, shafir wrote:


 hey,

 im using the slide effect in my website and to do so im using on the
 div i want to slide the style=display:none i know that google do
 not index text that under this style, because of that im using a class
 name that have inside - 'display:none'.

 but then i noticed that the slide effect doesnt work with the
 class :-(

 any suggestions?!?

 thanks, shafir.


 


--~--~-~--~~~---~--~~
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: slide effect problem

2008-12-02 Thread shafir

thanks,

but im not sure i understood

my javascript function looks like that:

function openClose(divId)
{
  new Effect.toggle(divId, 'Slide', {duration: 0.5});
}


my html looks like that:

table border=0 align=center cellpadding=0 cellspacing=0
trtdspan  onclick=openClose('advancedSearchBox')/span/td/
tr
tr
td align=center colspan=3
div style=display:none id=advancedSearchBox
 table border=0 align=center cellpadding=0 cellspacing=0
 trtd height=10/td/tr
 tr
   td valign=top
inside the td comes all the info i want to hid
   /td
 /tr
 /table
/div
/td
/tr
/table


i do not understand how to implement your suggestion

i will appreciate your help with that issue.

shafir m



On Dec 2, 3:37 pm, Walter Lee Davis [EMAIL PROTECTED] wrote:
 As you've found, setting the display property in a CSS sheet will not  
 work with the Scripty effects. Try hiding the things you want to hide  
 after the DOM loads. Set an empty class on all your to-be-hidden bits,  
 and then do this:

 document.observe('dom:loaded',function(){
         $$('.hideme').invoke('hide');

 });

 This will have everything hanging out there and visible from Google's  
 POV, but will hide it and prepare for your effect from everyone else  
 with a pulse and a JavaScript interpreter. Because you are doing it at  
 the dom:loaded point rather than the window.load point, there will be  
 no flash of unhidden content.

 Walter

 On Dec 2, 2008, at 2:27 AM, shafir wrote:





  hey,

  im using theslideeffect in my website and to do so im using on the
  div i want to slide the style=display:none i know that google do
  not index text that under this style, because of that im using a class
  name that have inside - 'display:none'.

  but then i noticed that theslideeffect doesnt work with the
  class :-(

  any suggestions?!?

  thanks, shafir.- 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-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: slide effect problem

2008-12-02 Thread Walter Lee Davis

On Dec 2, 2008, at 12:15 PM, shafir wrote:

 div style=display:none id=advancedSearchBox

Change this to:

div class=hideme id=advancedSearchBox

Don't do anything special to define hideme in your CSS, or at least,  
don't do anything to define the visibility of that class.

Then somewhere in the head of your page after prototype loads, paste  
the following in a script block:

document.observe('dom:loaded',function(){
$$('.hideme}.invoke('hide');
);

That's the simplest way I can think of to do this. Anything that you  
mark on the page with the hideme class will disappear, and before the  
page even gets around to displaying in a browser.

Walter



--~--~-~--~~~---~--~~
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: slide effect problem

2008-12-02 Thread Walter Lee Davis

Sorry, typo below:

On Dec 2, 2008, at 12:32 PM, Walter Lee Davis wrote:


 document.observe('dom:loaded',function(){
   $$('.hideme}.invoke('hide');
 );


document.observe('dom:loaded',function(){
$$('.hideme).invoke('hide');
);

--~--~-~--~~~---~--~~
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: slide effect problem

2008-12-02 Thread shafir mishal
thank u very much'
i'll try it and let u know

thanks again

On Tue, Dec 2, 2008 at 7:32 PM, Walter Lee Davis [EMAIL PROTECTED] wrote:


 On Dec 2, 2008, at 12:15 PM, shafir wrote:

  div style=display:none id=advancedSearchBox

 Change this to:

 div class=hideme id=advancedSearchBox

 Don't do anything special to define hideme in your CSS, or at least,
 don't do anything to define the visibility of that class.

 Then somewhere in the head of your page after prototype loads, paste
 the following in a script block:

 document.observe('dom:loaded',function(){
$$('.hideme}.invoke('hide');
 );

 That's the simplest way I can think of to do this. Anything that you
 mark on the page with the hideme class will disappear, and before the
 page even gets around to displaying in a browser.

 Walter



 



-- 
Shafir M

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---