Angelo Mcdermott
2007-Jul-23 16:44 UTC
swapping css for browser resolution- reference screen width?
Hello. I''m currently saddened I cant reference the browser width in ruby. I''m trying to use a periodically_call_remote function to trigger a ruby function to change my css based on screen resolutions, but i cant pull the screen resolution into a ruby variable!! How can you do this? I tried a conditional in my periodically_call_remote, so i can trigger a function call for one resolution, but not other! (this is for swapping iphone resolutions) anyone? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---