home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
ib
/
setups
/
intrabld
/
data.z
/
NETINFO.JFM
< prev
next >
Wrap
Text File
|
1996-12-11
|
3KB
|
148 lines
// {End Header} Do not remove this comment//
// Generated on 11/13/96
//
var f = new netinfoForm();
f.open();
class netinfoForm extends Form {
with (this) {
onServerLoad = class::Form_onServerLoad;
height = 10;
left = 0;
top = 0;
width = 60;
title = "NetInfo Object Information";
}
with (this.html1 = new HTML(this)){
height = 1;
top = 2;
width = 14;
color = "black";
text = "IP Address";
}
with (this.html2 = new HTML(this)){
height = 1;
left = 14;
top = 2;
width = 40;
color = "black";
text = "Text2";
}
with (this.html3 = new HTML(this)){
height = 1;
top = 3;
width = 14;
color = "black";
text = "Referrer";
}
with (this.html4 = new HTML(this)){
height = 1;
left = 14;
top = 3;
width = 40;
color = "black";
text = "Text4";
}
with (this.html5 = new HTML(this)){
height = 1;
top = 4;
width = 14;
color = "black";
text = "Remote Host";
}
with (this.html6 = new HTML(this)){
height = 1;
left = 14;
top = 4;
width = 40;
color = "black";
text = "Text6";
}
with (this.html7 = new HTML(this)){
height = 1;
top = 5;
width = 14;
color = "black";
text = "Session ID";
}
with (this.html8 = new HTML(this)){
height = 1;
left = 14;
top = 5;
width = 40;
color = "black";
text = "Text8";
}
with (this.html9 = new HTML(this)){
height = 1;
top = 6;
width = 14;
color = "black";
text = "User Agent";
}
with (this.html10 = new HTML(this)){
height = 1;
left = 14;
top = 6;
width = 40;
color = "black";
text = "Text10";
}
with (this.backButton = new Button(this)){
onClick = class::backButton_onClick;
top = 8;
width = 10.5;
text = "Back";
}
with (this.html11 = new HTML(this)){
height = 2;
width = 54;
color = "black";
text = "<h1>Browser Information<h1>";
}
function Form_onServerLoad()
{
var n = new NetInfo();
var ip = (n.IPAddress & 255) + "." +
((n.IPAddress >> 8) & 255) + "." +
((n.IPAddress >> 16) & 255) + "." +
((n.IPAddress >> 24) & 255);
this.html2.text = n.IPAddress < 0 ? "(not available)" : ip;
this.html4.text = n.referrer.length == 0 ? "(not available)" : n.referrer;
this.html6.text = n.remoteHost.length == 0 ? "(not available)" : n.remoteHost;
this.html8.text = n.sessionID < 0 ? "(not available)" : n.sessionID;
this.html10.text = n.userAgent.length == 0 ? "(not available)" : n.userAgent;
}
function backButton_onClick()
{
history.back();
}
}