background preloader

Web development

Facebook Twitter

Mobile-friendliness - Web Development. What is Mobile Friendliness?

Mobile-friendliness - Web Development

Mobile friendliness can mean a multitude of things, depending on who you’re talking to. It can be helpful to think of it in terms of three goals for improving your site’s user experience: Presentation, Content, and Performance. Goal #1 (Presentation) “Make websites that work well on a variety of screen sizes.” These days, users can access the web on devices in a wide range of form factors, including phones, tablets, and eReaders. Goal #2 (Content) “Adjust your content for mobile users.” Think about what your users want to do at your site if they are on a phone.

Goal #3 (Performance) “Give your users a smooth experience, even on a slow connection.” Though things have been getting better in recent years, browsing the Internet over a wireless data connection can still be pretty painful. Know your audience While not strictly a part of the definition of being mobile friendly, defining who your target audience is makes these goals much more concrete. Opauth – Multi-provider authentication framework for PHP.

To geolocate your visitors. GeoPlugin is a free and easy webmaster resource to provide geolocation technology to your pages.

to geolocate your visitors

Geolocation and geocoding technology on the web is locating your visitor in the world, down to the city they are in, based on their IP address, also known as IP Location. geoPlugin is the easiest way for you to know where your visitors are from so that you can provide them with content more relevant to their geographical location. geoPlugin is unique in that it allows you to do this in a hassle-free way, and in multiple different programming languages. There is no software installation required, and whether your programming language of choice be javascript, php, xml or whatever, geoPlugin has a way to simply and efficiently geo-localize your visitors.

Please keep geoPlugin a free and valuable webmaster resource by linking back to us on your pages that use geoPlugin: How to set third-party cookies with. IE Blocking iFrame Cookies. I got a call today about one of my applications not running correctly from inside an iFrame.

IE Blocking iFrame Cookies

I tried it out and it looked like everything worked great in Safari and Firefox but not IE6 or IE7. It took me a few failed attempts to fix it before I decided it must be a session problem. After firing up a packet sniffer it became obvious the cookie with the session ID was not being passed. The problem lies with a W3C standard called Platform for Privacy Preferences or P3P for short. You can read all about the boring stuff via the link or else just install the P3P Compact Policy header below. Header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'); HttpContext.Current.Response.AddHeader("p3p","CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""); Django: response = render_to_response('mytemplate.html') response["P3P"] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"' An In Depth Guide to mod_rewrite for Apache.

Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+.

An In Depth Guide to mod_rewrite for Apache

This tutorial was first published last September. When people think of .htaccess configuration, the first thing that might pop into their minds is URL manipulation with mod_rewrite. But they're often frustrated by mod_rewrite's complexity. This tutorial will walk you through everything you need to know for the most common mod_rewrite tasks. Mod_rewrite Rants Thoughts on mod_rewrite vary quite a bit. Mldk: Aargh! Bsterzenbach: Man do I love mod_rewrite. Mikemackay: Still loving the total flexibility of mod_rewrite - coming to the rescue again.

Hostpc: I hate mod_rewrite. Awanderingmind: Oh Wordpress and Apache, how thou dost vex me. Danielishiding: Why won’t mod_rewrite work! A few things I noticed are that people clearly recognize the power of mod_rewrite, but are often frustrated by the syntax. Despite the tons of examples and docs, mod_rewrite is voodoo.

What a turn off! URL vs. Syntax. Downloading. Mod_rewrite Cheat Sheet by DaveChild.