Results 1 to 5 of 5

Thread: Detecting browser settings

  1. #1
    Join Date
    Aug 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Detecting browser settings

    Hi All,

    Is there any way to detect certain browser settings such as "user datapersistence", "disable script debugging", found under Tools -> Internet Options -> Advanced Tab on IE in Javascript.

    Thanks in Advance.

    Regards,
    Ars

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    "No."
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Aug 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok,

    But in Java, Can we do that?

    I found one from the web BrowserHawk.
    http://www.cyscape.com Go for details.

    But the above said properties that is "user datapersistence", "disable script debugging" cannot be detected by this.

    So, Any one have any idea how to detect the above properties.

    I am also putting this topic in Java thread.

    Thanks,

    Regards,
    Ars

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    There is no straightforward method of detecting these things using javascript, at least none that I know of. However, it might be better to approach the situation on the basis of why you would want to. What is it that you can or cannot do in your script if these things are enabled/disabled? There is almost always a way to get around limitations, or at the very least, you can post a notice that your page works better with such and such turned on or off.

    For example, if your code depends on something being on, you can do a:

    Code:
    try {
    dependant code here
    }
    catch(e){
    alternative code here
    }
    This will usually have the effect of disabling debugging for the code in the try section, even if it is enabled in the browser, and it is also a method to try something out and take another path if things won't work. If you want your code to degrade well in browsers that do not support try/catch, this is an oversimplification, but it gives you an idea of what can be done. Also, all modern browsers do support try/catch.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •