Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How can I prevent a page from resizing when accessed by a mobile device?

Posted on 2013-05-15
5
Medium Priority
?
366 Views
Last Modified: 2013-05-30
Head out to http://www.countryshowdown.com/sir.php. If you click on the Internet Radio graphic, you'll get the player in a pop up window that's been resized.

I want to include in the header of that page some code that would prevent a browser from attempting to resize that page and reduce it to a tiny little thumbnail in the upper left hand corner of one's mobile device.

How do I do that?
0
Comment
Question by:brucegust
5 Comments
 
LVL 53

Assisted Solution

by:COBOLdinosaur
COBOLdinosaur earned 500 total points
ID: 39169468
Yet another "I'm going to control the user" question.  You can screw around with scripting to disrupt user controls, but in the end for most users; if they don't have control they will just close it or the popup will just be blocked because users have just about zero tolerance for this kind of nonsense.

Cd&
0
 
LVL 6

Assisted Solution

by:nickinthooz
nickinthooz earned 500 total points
ID: 39169518
My answer to you would be to open the player in a shadowbox
0
 
LVL 17

Accepted Solution

by:
Chris Harte earned 500 total points
ID: 39169901
To expand on the answer given by  COBOLdinosaur, it is MY device I will tell YOU how it is going to display. Any arguments to the contrary and I will take my browsing elsewhere. Keep your nasty Microsoft habits to yourself.
0
 
LVL 111

Assisted Solution

by:Ray Paseur
Ray Paseur earned 500 total points
ID: 39170141
+1 for the answers from COBOLdinosaur and MunterMan.  Don't even think in these terms.  Instead go with the idea of "what does the client want?"
0
 

Author Comment

by:brucegust
ID: 39209431
I guess I didn't ask the question correctly. I was able to accomplish what needed to be done as far as routing my user to a mobile friendly dynamic with another site and I'll just use that approach.

Basically, I'm routing my mobile device user to a different directory where my stylesheet is making the necessary adjustments so they're not looking at links that appear microscopic. The site that I'm referring to is http://brucegust.com/lavergnesmiles/. It will render differently on a smart phone than it will on a desktop based on a php script that's situated in the header.

Apparently it's a very common and effective practice and given the passion that accompanied the responses to this question, I apologize if I framed it incorrectly.

Thanks!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question