Hi all, and sorry for my english. So, now this is my problem: i have some "display:none" div. When I click on a link I need to open one of this. No problem with .setStyle({display:''block''}), but I want to use the effect Effect.scrollTo(), too. So I have write: $(divOpen).setStyle({display:''block''}); new Effect.ScrollTo(divOpen); It works but the "position 0,0" of divOpen is not set to the upper margin of the page. Say, half page. Why this ? Where is my error ? The html-page does not end after "divOpen" but after more and more line. Tnx in advance. -- Michel ''ZioBudda'' Morelli michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org http://www.ziobudda.net ICQ: 58351764 http://www.phpbook.it FAX: 0291390660 http://www.ajaxblog.it TEL: 3939890025 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey there, zio budda a écrit :> $(divOpen).setStyle({display:''block''});$(divOpen).show() is nicer :-)> It works but the "position 0,0" of divOpen is not set to the upper > margin of the page. Say, half page. Why this ? Where is my error ? > > The html-page does not end after "divOpen" but after more and more line.Why should it be on top? scrollTo only makes sure your element is visible, AFAIK. Just in case I''m wrong, did you check that there was stuff enough in your document to let it scroll so far down? The doc won''t scroll past the point where its content''s bottom is at window bottom. -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
2007/3/26, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org>:> > Hey there, > > zio budda a écrit : > > $(divOpen).setStyle({display:''block''}); > > $(divOpen).show() is nicer :-)uhhh... suggest for a good book ??? :)> Why should it be on top? scrollTo only makes sure your element is > visible, AFAIK.Strange because the same code with another "div" works.> Just in case I''m wrong, did you check that there was > stuff enough in your document to let it scroll so far down? The doc > won''t scroll past the point where its content''s bottom is at window bottom.yes, more and more line (visible on the screen, not html code line). I can say... hmm... 5 page scroll. Tnx M. -- Michel ''ZioBudda'' Morelli michel-0oFb7YEmpcLk1uMJSBkQmQ@public.gmane.org http://www.ziobudda.net ICQ: 58351764 http://www.phpbook.it FAX: 0291390660 http://www.ajaxblog.it TEL: 3939890025 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hey there, zio budda a écrit :> 2007/3/26, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org>: >> zio budda a écrit : >>> $(divOpen).setStyle({display:''block''}); >> $(divOpen).show() is nicer :-) > > uhhh... > suggest for a good book ??? :)So far, use http://prototypejs.org :-) It''s pretty good. If you speak French, see "Bien développer pour le Web 2.0." And if you don''t... you''ll have to wait a few more months for my "Prototype and script.aculo.us" to be released by Pragmatic Programmers. -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Tuesday 27 March 2007 14:03, Christophe Porteneuve wrote:> Hey there, > > zio budda a écrit : > > 2007/3/26, Christophe Porteneuve <tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org>: > >> zio budda a écrit : > >>> $(divOpen).setStyle({display:''block''}); > >> > >> $(divOpen).show() is nicer :-) > > > > uhhh... > > suggest for a good book ??? :) > > So far, use http://prototypejs.org :-) It''s pretty good. > > If you speak French, see "Bien développer pour le Web 2.0." > > And if you don''t... you''ll have to wait a few more months for my > "Prototype and script.aculo.us" to be released by Pragmatic Programmers.+1 for the Prototype online docs. And, if you want two good books, ''Prototype & Scriptaculous in Action'' is available now. :-) -- ---------------------- Author Ajax in Action http://manning.com/crane Ajax in Practice http://manning.com/crane2 Prototype & Scriptaculous in Action http://manning.com/crane3 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---