Champs, Need help .. Not related to rails or ruby .. :) Scenario is dat i had developed my application at a 17inch monitor .. so used big size images as well.. i mean according to big screen monitor .. Now if run this application at a 14inch monitor .. application is not looking good .. So want to change this scenario .. I mean can we know dynamically dat if monitor size is small that make everything small on monitor.. :) Hope u peopl got it right .. want to know every possible way .. -- Posted via http://www.ruby-forum.com/.
Make sure you understand that this is not actually related to the size of the screen, but to the resolution the system uses. You could get the window size using javascript and even dynamically change your application as the window is resized. I wouldn''t know of any way Rails can determine the system resolution or something like that. It would be better though if you would spend some time on your HTML and CSS and make sure it will show the way you want it to show on any resolution. People don''t care about horizontal scrollbars in 640x480: they''re probably used to that. So using a fixed layout will probably be fine. Hope this helps! Kind regards, Jaap Haagmans w. http://www.relywebsolutions.nl On 17 aug, 12:05, Hemant Bhargava <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Champs, > > Need help .. Not related to rails or ruby .. :) > Scenario is dat i had developed my application at a 17inch monitor .. so > used big size images as well.. i mean according to big screen monitor .. > Now if run this application at a 14inch monitor .. application is not > looking good .. So want to change this scenario .. I mean can we know > dynamically dat if monitor size is small that make everything small on > monitor.. :) > > Hope u peopl got it right .. want to know every possible way .. > -- > Posted viahttp://www.ruby-forum.com/.
Hemant Bhargava wrote:> Champs, > > Need help .. Not related to rails or ruby .. :) > Scenario is dat i had developed my application at a 17inch monitor .. so > used big size images as well.. i mean according to big screen monitor .. > Now if run this application at a 14inch monitor .. application is not > looking good .. So want to change this scenario .. I mean can we know > dynamically dat if monitor size is small that make everything small on > monitor.. :) > > Hope u peopl got it right .. want to know every possible way ..Using javascript you can get the height and width of the client machine. Use it to render various versions of your page. -- Posted via http://www.ruby-forum.com/.
yeah, I know abt it. we can know height and width from clientHeight and clientWidth .. correct .. Bt d''nt know how to go further.. Newayz .. Thanks for ur reply .. Rails List wrote:> Using javascript you can get the height and width of the client machine. > Use it to render various versions of your page.-- Posted via http://www.ruby-forum.com/.
Are your vowels really so precious that you cannot post complete words? It would make it much easier to read your posts in general. When posting to forums that are international in their audience, clarity is preferred over brevity. Just a suggestion. -- Posted via http://www.ruby-forum.com/.
On Monday 17 August 2009, Hemant Bhargava wrote:> yeah, I know abt it. > we can know height and width from clientHeight and clientWidth .. > correct .. > > Bt d''nt know how to go further.. Newayz .. Thanks for ur reply .. > > Rails List wrote: > > Using javascript you can get the height and width of the client > > machine. Use it to render various versions of your page.Here''s how I''ve done a thing like that in the past http://www.schuerig.de/michael/blog/index.php/2007/02/22/size-dependent- layout/ HTH, Michael -- Michael Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/