SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: navigator info

  1. #1
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    navigator info

    i can get upto a certain amount of information but the rest becomes undefined how can i get info from them.

    PHP Code:

    <script language="javascript">

    var 
    = new Array();
    n[0]  = 'appName';
    n[1]  = 'appVersion';
    n[2]  = 'appCodeName';
    n[3]  = 'userAgent';
    n[4]  = 'appMinorVersion';

    //from here i get undefined

    n[5]  = 'BrowserLanguage';
    n[6]  = 'ConnectionSpeed';
    n[7]  = 'CookieEnabled';
    n[8]  = 'CpuClass';
    n[9]  = 'Online';
    n[10]  = 'Language';
    n[11]  = 'MimeTypes';
    n[12]  = 'Platform';
    n[13]  = 'Plugins';
    n[14]  = 'SystemLanaguage';
    n[15]  = 'UserAgent';
    n[16]  = 'UserLanguage';
    n[17]  = 'UserProfile';

    for (
    a=0;a<n.length;a++)
    {
        
    document.write(n[a] + ' = ' + eval('navigator.' n[a]) + '<br>')
    }

    </script> 

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check the properties in msdn.microsoft.com/library to see they have the same calling methods, etc.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---

  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your right i guess i was being lazy checking it out

    eg

    window.clientInformation.javaEnabled() == true

  4. #4
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also

    what is data tainting

    bEnabled = object.taintEnabled()

    it doesn't explain what it is or the function of it

  5. #5
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Tainting prevents other scripts from passing information that should be secure and private, such as directory structures or user session history. JavaScript cannot pass tainted values on to any server without the end user's permission.
    Use taint to mark data that otherwise is not tainted.

    In some cases, control flow rather than data flow carries tainted information. In these cases, taint is added to the script's window. You can add taint to the script's window by calling taint with no arguments.

    taint does not modify its argument; instead, it returns a marked copy of the value, or, for objects, an unmarked reference to the value.


    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


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
  •