SitePoint Sponsor

User Tag List

Results 1 to 13 of 13
  1. #1
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Will PDAs & Cell Phones Ignore JS?

    The subject pretty much says it all. I'm working on a lite version of a website for viewing on web enabled PDAs and cell phones. Neat trick since I don't have a web enabled device to check it.

    Any way... It's very simple html, but I would like to add Google Adsense ads for those viewing from a PC. Will PDAs & cell phones simply ignore the javascript or will their little browsers crash?

    tia

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Most mobile browsers ignore Javascript. The reason is simple: memory is so limited on these devices that Javascript support isn't feasible in most cases. Pocket IE may support some JS, but I'm not 100% sure on that.

  3. #3
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The operative word is "ignore". If they ignore JS, that is fine.

    Thanks Vinnie.

  4. #4
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some mobiles will be able to execute the JS (mine can - an SEP800 - since it runs Opera 6), but as good programming practice you should always ensure that a site will remain accessible WITHOUT JavaScript anyway.
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!

  5. #5
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The javascript is only for the Adsense ads. The rest of the site is extremely bare bones html.

    Have you ever seen Adsense ads on your SEP800? Do they run off the screen or have other undersired consequences?

  6. #6
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The P800 opera breaks down a site completely into flowing text. Tables and such are removed, ads or not, so everything fits on screen, so the adsense ads are technically there.

    About 10% of visitors have javascript disabled last time I looked.
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  7. #7
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sadly, I don't browse the 'net much on my mobile because GPRS data is so damn expensive! So I don't recall having seen AdSense ads anywhere. However, as M.J says, Opera dynamically reformats the page to fit the screen (if you have that feature enabled, which it is by default) so it should be fine.

    To find out for yourself, fire up Opera 7 and press SHIFT+11 to switch to smallscreen rendering mode. More on that here:
    http://www.opera.com/products/smartphone/smallscreen/
    (see the developer link at the bottom too)

    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!

  8. #8
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Mattias and Marcus. Yet another reason to dl Opera, but 50+ meg is daunting on dialup...

  9. #9
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Herbster
    Thanks Mattias and Marcus. Yet another reason to dl Opera, but 50+ meg is daunting on dialup...
    Opera 7 is only 3 or 4MB without Java support, and 12MB with Java support. If it's still that much of an issue, download the version without Java support.

  10. #10
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    Where did the figure of 50MB come from?
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!

  11. #11
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M@rco


    Where did the figure of 50MB come from?
    My imagination?

    It's 15.7 MB w/ js.

    Maybe I'll follow Vinnie's suggestion and dl w/o js for now.

  12. #12
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Herbster
    My imagination?

    It's 15.7 MB w/ js.

    Maybe I'll follow Vinnie's suggestion and dl w/o js for now.
    It's not without JavaScript, it's the version without Java. Basically, if you don't care about applets you'll be just fine with that version. It still supports javascript though.

  13. #13
    The short answer is yes... Herbster's Avatar
    Join Date
    Oct 2001
    Location
    Bay City, Oregon
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    It's not without JavaScript, it's the version without Java. Basically, if you don't care about applets you'll be just fine with that version. It still supports javascript though.
    My attention is spread soooo thin....

    Thanks Vinnie. Think I'll dl this pm just before I fall out of my chair.


Bookmarks

Posting Permissions

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