www.webdeveloper.com
Results 1 to 4 of 4

Thread: What Java-classes are available (or can be made available) in JavaScript?

  1. #1
    Join Date
    Oct 2003
    Posts
    2

    What Java-classes are available (or can be made available) in JavaScript?

    I'm asking because i found a little script for
    getting the client's IP printed.

    But it didnt work because it used a Java class.

    ( i think )

    But if I'm totally wrong.. How do I get JavaScript to find
    the clients IP?

    Val

  2. #2
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    Javascript cannot, AFAIK, get the client IP address on its own. You need to use Java or a server-side language such as SSI/PHP for that.

    Adam
    "If youíre not using valid HTML, then you havenít created a Web page. You may have created something else, but it isnít a Web page." - Joe Clark

    Do something amazing (USA) | Make Poverty History

  3. #3
    Join Date
    Oct 2003
    Posts
    2
    How do I do it in php then?

    Didnt find a nice function at www.php.net...

    Help me out?

  4. #4
    Join Date
    Nov 2002
    Location
    Dartmoor [Holiday]
    Posts
    2,382
    It's a predefined variable, actually:

    <? echo $_SERVER['REMOTE_ADDR'] ?>

    (See the manual)

    Adam
    "If youíre not using valid HTML, then you havenít created a Web page. You may have created something else, but it isnít a Web page." - Joe Clark

    Do something amazing (USA) | Make Poverty History

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