www.webdeveloper.com
Results 1 to 4 of 4

Thread: Javascript help required!

  1. #1
    Join Date
    Apr 2010
    Posts
    3

    Exclamation Javascript help required!

    Okay, Im hoping people good with Javascript read this because I need help!

    Theres several redirectes required, but if it could be 1 script that I could put one 1 html page, that would be amazing (if it is possible).

    I need the site to:
    1. Upon going to site, determine if it is a mobile browser. If so, send visitors to mobile site automatically. If not then contninue to step 2.
    2. Verify that users can view Flash. If yes check connection speed:
    A. Send above 60kbits/sec to flash site
    B. If less send users to html site.
    3. For those users that are left, (they can't view flash, and are not using a phone), send them to the html site.

    I have bolded the 3 version of the site I have. Please include all code needed, as Im a noob at Javascript programming (explanations on what the lines do would be nice).
    Thanks
    Chris

  2. #2
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    I doubt anyone here will write it for you (then, again, who knows.) If you provided some code, we might be able to help you troubleshoot it.

    You can use a browser detector function to tell if it's a mobile phone, or not.
    http://www.webdeveloper.com/forum/sh...rowser+sniffer

    I know I've seen at least one connection speed detecting function, before.
    http://www.ehow.com/how_5804819_dete...avascript.html

    I have also seen at least one function for determining if FLASH is present, or not.
    http://www.webdeveloper.com/forum/sh...d.php?t=185402

    All that's left is logic: If A, go to mobile site; If B - if B1 go to Flash site, if B2 go to HTML site; default goes to HTML site.

    ^_^
    Last edited by WolfShade; 12-07-2010 at 04:35 PM.

  3. #3
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    A note: IPhone/IPad platforms do not run Flash at all.

  4. #4
    Join Date
    Dec 2002
    Location
    St. Louis, MO, USA
    Posts
    1,582
    Quote Originally Posted by Kor View Post
    A note: IPhone/IPad platforms do not run Flash at all.
    I keep forgetting about that. Jobs said that as long as he's in charge, they never will.

    ^_^

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles