SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 21-04-11, 03:34 PM   #1
DaveW_42
Member
 
DaveW_42's Avatar
 
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
Default anyone know a simple html rediection for when using browsers?

As per title really, I have my portfolio website written in Flash that I'm very happy with. Problem is, I'd like people to access it using Iphones and ipads, etc. (stupid apple with no flash support).
I'm thinking I could write a simple html only version of the site that when a mobile os is detected just redirects it to the html version.
Unfortunately I don't know Apache so php is difficult and a quick trawl of the interent comes up with all sorts of non-html solutions to the problem! Am I going to have to look at Apache or jsQuerys and the like?

Cheers,
Dave
__________________
K4 trackbike, a black K8 S loaded with my spares and a 1989 CBR 400 TriArm with all the trimmings.

Last edited by DaveW_42; 21-04-11 at 03:36 PM.
DaveW_42 is offline   Reply With Quote
Old 21-04-11, 03:35 PM   #2
DaveW_42
Member
 
DaveW_42's Avatar
 
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
Default Re: anyone know a simple html rediection for when using browsers?

Sorry - just re-read that title! Awful grammar...
__________________
K4 trackbike, a black K8 S loaded with my spares and a 1989 CBR 400 TriArm with all the trimmings.
DaveW_42 is offline   Reply With Quote
Old 21-04-11, 03:49 PM   #3
Stenno
Guest
 
Posts: n/a
Default Re: anyone know a simple html rediection for when using browsers?

http://detectmobilebrowsers.mobi/ free for non profit websites apparently.
  Reply With Quote
Old 21-04-11, 04:00 PM   #4
DaveW_42
Member
 
DaveW_42's Avatar
 
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
Default Re: anyone know a simple html rediection for when using browsers?

Yeah, had a look at that one - it's the Apache one... I'm looking into how hard it is to implement now but would prefer a straight forward html check one...
Basically just an if statement
if (mobile browser detected) redirect to http://...
__________________
K4 trackbike, a black K8 S loaded with my spares and a 1989 CBR 400 TriArm with all the trimmings.
DaveW_42 is offline   Reply With Quote
Old 21-04-11, 04:18 PM   #5
Paul the 6th
Member
Mega Poster
 
Paul the 6th's Avatar
 
Join Date: Mar 2007
Location: Yorkshire
Posts: 4,790
Default Re: anyone know a simple html rediection for when using browsers?

can't help with the browser/os detect script but a simple html redirect would be something like this:

<META HTTP-EQUIV="refresh" CONTENT="0;url=http://www.google.co.uk">

I *think* that should work but it's years since I started learning this sort of stuff (I was still in school!)... the 0; right before the URL is the number of seconds you want the browser to wait before redirecting so with this code in most cases, people wouldn't even see the blank page - it would redirect instantly (wasn't always the case on 56.6!).. Hope this helps in some way

edit: thinking it would be a javascript you'd need? One of them fancy .if fucntions like if.MacOSX url="meh.com" or if.android url="getYourselfan-iPhoneSunshine.com" but it's not something i'd know how to put together from scratch?
__________________
RIP Reeder 20/07/1988 - 21/03/2012 - You were awesome

Cbf600, sv650, sv1000, gsxr 750 srad, KTM adventure 950, gsxr 750 k1, gsxr 750 srad, fazer 1000, zx9r ninja..

Last edited by Paul the 6th; 21-04-11 at 04:19 PM.
Paul the 6th is offline   Reply With Quote
Old 21-04-11, 04:23 PM   #6
DaveW_42
Member
 
DaveW_42's Avatar
 
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
Default Re: anyone know a simple html rediection for when using browsers?

I'm just looking over the jsQuery stuff now... I'm sure it's possible but the problem is going to be with newer versions of OS or browsers that aren't supported by the java script. It has to know exactly what your using or it wont redirect you...
__________________
K4 trackbike, a black K8 S loaded with my spares and a 1989 CBR 400 TriArm with all the trimmings.
DaveW_42 is offline   Reply With Quote
Old 21-04-11, 07:16 PM   #7
JamesMio
Member
Mega Poster
 
Join Date: Jul 2007
Location: Scotland's Deep South
Posts: 1,461
Default Re: anyone know a simple html rediection for when using browsers?

Without trying to sound like a smart-ar5e, would you not be better off having a website built in something that Google etc can read properly? i.e. not Flash?
__________________
"That **** on the push-bike."

Creatomatic
JamesMio is offline   Reply With Quote
Old 21-04-11, 07:52 PM   #8
SoulKiss
Member
Mega Poster
 
SoulKiss's Avatar
 
Join Date: Jul 2006
Location: Sunny Croydonia
Posts: 6,124
Default Re: anyone know a simple html rediection for when using browsers?

Quote:
Originally Posted by JamesMio View Post
Without trying to sound like a smart-ar5e, would you not be better off having a website built in something that Google etc can read properly? i.e. not Flash?
+1 on that
__________________
Sent from my PC NOT using any Tapatalk type rubbish!!

█╬╬╬╬()i¯i▀▀▀▀▀█Ξ███████████████████████████████)
SoulKiss is offline   Reply With Quote
Old 21-04-11, 09:11 PM   #9
christopher
Member
 
christopher's Avatar
 
Join Date: Apr 2009
Location: Chester, UK
Posts: 795
Default Re: anyone know a simple html rediection for when using browsers?

Don't do the check in JavaScript. Too many reasons to list that you most likely won't understand but here's two for starters, firstly a lot of mobile devices won't have JavaScript enabled, and secondly you'll be serving a fully loaded site to the mobile user and then redirecting them to the optimised trimmed down version.

So you're forcing them to download a lot of data for no real reason, expensive on a lot of mobile devices (don't just think about people who have contracts with included data bundles).

By doing it at server level (how depends on your setup; Apache, IIS, etc) you avoid this and serve the low bandwidth version immediately.

What's your portfolio for? How does having it in Flash benefit it? Can HTML/CSS/JS not achieve what you want?

And what percentage of traffic (check server logs) is coming from mobile devices? It's not just Apple's devices which don't support Flash, older versions of Android and those with unsupported processors (< ARMv7) won't have decent, if any, support either. Same goes for a lot of Symbian devices.
christopher is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
simple answers for a simple man (forks yokes wheels) davepreston SV Talk, Tuning & Tweaking 8 28-02-11 04:29 PM
Simple (and I mean simple) Cake to make? krhall Idle Banter 32 14-04-09 01:04 PM
4 simple jobs - 4 simple questions branny SV Talk, Tuning & Tweaking 23 18-02-09 07:36 AM
HTML help! again laMon Idle Banter 13 15-08-07 08:18 AM
Test your website in loads of browsers.... Jabba Idle Banter 0 05-03-07 06:31 PM


All times are GMT. The time now is 06:48 PM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.