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).![]() |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
|
![]()
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. |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
|
![]()
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. |
![]() |
![]() |
![]() |
#3 |
Guest
Posts: n/a
|
![]()
http://detectmobilebrowsers.mobi/ free for non profit websites apparently.
|
![]() |
![]() |
#4 |
Member
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
|
![]()
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. |
![]() |
![]() |
![]() |
#5 |
Member
Mega Poster
Join Date: Mar 2007
Location: Yorkshire
Posts: 4,790
|
![]()
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. |
![]() |
![]() |
![]() |
#6 |
Member
Join Date: May 2006
Location: Biggleswade, Beds
Posts: 301
|
![]()
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. |
![]() |
![]() |
![]() |
#7 |
Member
Mega Poster
Join Date: Jul 2007
Location: Scotland's Deep South
Posts: 1,461
|
![]()
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?
|
![]() |
![]() |
![]() |
#8 |
Member
Mega Poster
Join Date: Jul 2006
Location: Sunny Croydonia
Posts: 6,124
|
![]()
+1 on that
__________________
Sent from my PC NOT using any Tapatalk type rubbish!! █╬╬╬╬(•)i¯i▀▀▀▀▀█Ξ███████████████████████████████) |
![]() |
![]() |
![]() |
#9 |
Member
Join Date: Apr 2009
Location: Chester, UK
Posts: 795
|
![]()
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. |
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |