hi guys, i have a question regarding prototype and the Ajax.Updater. When the requested page contains <style> definitions they are not applied after the update. Seems logic to me because the styles are loaded when the page was rendered. Do you know a way of how to apply the styles again .. thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Justin Perkins
2007-Mar-16 14:50 UTC
Re: prototype: using Ajax.Updater does not apply styles
Have you used an inspector type tool (like Firebug) to verify that your markup is correct and corresponds the CSS you are expecting? -justin On 3/16/07, michal <mgabru-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > hi guys, > i have a question regarding prototype and the Ajax.Updater. > When the requested page contains <style> definitions they are not > applied after the update. Seems logic to me because the styles are > loaded when the page was rendered. > Do you know a way of how to apply the styles again .. > thanks! > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Colin Mollenhour
2007-Mar-16 23:48 UTC
Re: prototype: using Ajax.Updater does not apply styles
Technically, style tags belong in the <head>, I wouldn''t be surprised if they didn''t work when inserted into the body. Colin michal wrote:> hi guys, > i have a question regarding prototype and the Ajax.Updater. > When the requested page contains <style> definitions they are not > applied after the update. Seems logic to me because the styles are > loaded when the page was rendered. > Do you know a way of how to apply the styles again .. > thanks! > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Colin Mollenhour wrote:> Technically, style tags belong in the <head>, I wouldn''t be surprised if > they didn''t work when inserted into the body.That''s how the Rails auto_complete_thingy works; it inserts the same <style> block before each auto-complete field. (No, guys, if Rails just jumped off a cliff I wouldn''t follow. ;-) -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
David Dashifen Kees
2007-Mar-17 17:36 UTC
Re: prototype: using Ajax.Updater does not apply styles
Style tags can be anywhere they need to be, even though they''re supposed to be in the <head> of the document. And as long as they''re available at page load, then things''ll work fine. I''m not sure how to load them via ajax and apply them, though. -- Dash -- Colin Mollenhour wrote:> Technically, style tags belong in the <head>, I wouldn''t be surprised if > they didn''t work when inserted into the body. > > Colin > > michal wrote: > >> hi guys, >> i have a question regarding prototype and the Ajax.Updater. >> When the requested page contains <style> definitions they are not >> applied after the update. Seems logic to me because the styles are >> loaded when the page was rendered. >> Do you know a way of how to apply the styles again .. >> thanks! >> >> >> >> >> > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 guys thanks for your replies. i know i am a little late but i had no time yet. my problem still exists and i wonder if it is somehow possible to apply styles after i bunged in some HTML (incl style-block) with ajax into my page. @justin: the styles are correct and work fine. if I bung them into the calling page then everything works fine... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Check out the following page for more info on how to solve this problem http://dev.rubyonrails.org/ticket/8282 On Mar 28, 7:24 pm, "michal" <mga...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> hey guys thanks for your replies. i know i am a little late but i had > no time yet. > my problem still exists and i wonder if it is somehow possible to > apply styles after i bunged in some HTML (inclstyle-block) with ajax > into my page. > > @justin: the styles are correct and work fine. if I bung them into the > calling page then everything works fine...--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---