Get Client Mac Address With Javascript
Nov 29, 2005How can i get client mac address OR hdd id with javascript for internet explorer?
View 6 RepliesHow can i get client mac address OR hdd id with javascript for internet explorer?
View 6 RepliesHow can I get the client's IP address from within an HTML page using embedded JS? Code:
View 8 Replies View RelatedI want to create a link that a user can click which will create a popup
telling the user their ip address. I have:
var ip = new java.net.InetAddress.getLocalHost().toString();
alert("Your IP address is: " + ip.substring(ip.indexOf("/")+1))
but this does not seem to work. It says the ip is 127.0.0.1. Strangely,
this piece of code used to work but all of a sudden it doesn't for some
unknown reason. Can anyone tell me what's wrong with the above code?
I want to know about a method for detecting client's IP which is running behind a proxy server.
Is there any possible way in Javascript to get the IP address of the client's machine which is using proxy.
I know you can use javascript in the address bar to display alert
messages and misc. stuff like that. But when I try and control some forms it loadsa a new page for the loaded example...
eg.
javascript: document.forms[1].elements[1].checked=true;
would load a blank page with 'true' written on it, is there a way to make
the checked box checked through this method?
Right now what I have is an .htaccess file which blocks users not on my ip address list. But what I really want is a filter that will gather the ip address of the viewer, compare it against the server's ip address list, and redirect the viewer to a certain other link based on the viewer's ip address.
example:
user types in www.example.com, and according to ip address, is redirected to their own personal subdomain:
192.168.0.1 > mark.example.com
192.168.0.2 > john.example.com
192.168.0.3 > jerry.example.com
192.168.0.4 > tank.example.com
127.0.0.1 > zomgpwned.example.com
...and so on and so forth. Does anyone know how to do that?
Provided an interface to a search engine in which the onchange event in
a select list element generates between 7 and 13 additional elements
depending on the option chosen.
Here's what the customer *now* wants to do:
Generate between 200 and 350 elements. Furthermore, the logic is going
to be more complex.
I would be happy to make that happen, however here's my concern: I'm
already doing this from the server side, using CGI. I wonder what is
going to happen when we put that degree of "work" on the client browser.
I would welcome comments, caveats, or pointers to documentation and
discussions on this subject.
I would like to write a little program to read data in a MySQL database.
What do I need?
Is there a specific "JavaScript Include" to make this work? Do you have examples or site links to help me?
I'm building some client side JavaScript applications, one of these is a missing piece puzzle. There is one bug that I am aware of, where one piece may move over another, but this doesn't happen untill you have been playing for ages.
I'm trying to test the win condition, but haven't yet managed to complete it
Anyone with some spare time, or just some boredom, wanna have a go? Code:
I am using jsCalendar and I would like to know how I can get Client Time Zone related to the TIME that have been selected.
View 1 Replies View RelatedIs it possible to get the Server IP Address from Javascript
ie., when the user types "http://10.0.0.10/main.htm" in the web
browser, i need to retrive the value of the IP Address(10.0.0.10) from
my client side javascript.
I wish to know it is possbile to fetch a file (its textual or graphical content) with a http type address.
Also where I can find the object, keyword, functions reference of JavaScript..
what is the javascript validation for the email address like
php.ycho@gmail.com
i used the simple validation like
"^w{1,}@w{1,}(.w{1,}){1,}$"
which works well for php@gmail.com but doesnot work for php.ycho@gmail.com
can anybody make a modification to above pattern to work for php.ycho@gmail.com
I need a simple js function that will check if the value (an email address) in two text fields match.
If someone enters creole@creole.com in "fieldOne" and creoel@creole.com in field two it would throw an error. If they matched, the form would submit silently.
Can someone help me out? I think it should be easy, and I'm trying to do it myself, I'm just not good enough at js.
I'd like to see and use a javascript to resize an image.
I've creating a site and I'd like that only this image will be resizable automatically based on resolutions (800x600, 1024x768, 1280x1024, ecc...)...
Has anyone got any pros and cons for using Javascript over VBscript or vice-a-versa, Code:
View 7 Replies View RelatedI have a few values and variables that I want to post to a server
(without using a SUBMIT button). Is there a way to post data from
within javascript - do sockets or connections have to be open for this
to work?
I am developing an ASP.NET (C#) application and need some help. I wish
to call a server-side function (in the code-behind "file.aspx.cs") upon
a user clicking on the "X" to close the browser window. Is there a way
to postback and call a server-side function when this happens? I am
aware of the browser's native "onunload" event, but am not certain that
what I'm looking for is actually possible.
I moved over client side javascript code from an asp.net 1.1 project to
an asp.net 2.0 project. When I view the web page, I get all these "is null or is not object" javascript errors.
Is there something that I am missing? Is WebResource.axd the issue?
I'm new to JavaScript. I have relatively large amounts of text (~200 kB) that I need to transfer to my web application every now and then. Using RAR, I get a 5:1 compression ratio on these files, for example one of 180 kB is compressed to 34kB.
Is there some standard way to decompress files in JavaScript?
How can I, for example, retrive data from Profile object (or what so
ever) to some variable declared in javascript tag on client side?
For example, let's say I have this code in Some_Page.aspx:
....
Profile.Name = "Some Name";
....
And I have some variable in java script tag:
var someVariable;
How can I get this "Some Name" from Profile.Name to someVariable?
Is there any way at all I can get a user's login name from within
JavaScript on Unix/Linux with Mozilla browser. If not, how about the
home directory? I know there are *usually* variables accessible via
navigator.preferences() that contain the info, but I have found none
that can *always* be expected to exist.
What is the correct method for passing named values from a client back to the next client screen without sticking the info as an url query string?
View 3 Replies View Relatedi want to add the link address when clicked on the link in web page to the outlook express address book when the outlook window populates. i tried to put
<a href="mailto:enquiry@mydomain.com" > click here </a>
but it only add address to the To section of outlook window, i want it should store the address in the address book.. of outlook express..
I have been looking for a solution for a long time. I have embedded a SWF app in html page using SWFObject. Now I need to give the Flash app the address where it is currently embedded, since the same SWF file is embedded in more than one locations! So the Flash app is supposed to pull the right content according to its current position
View 9 Replies View RelatedI have a Hyperlink within a String like below:
sSql = "SELECT DISTINCT " + "'Action' = '<center><a
href='+char(34)+'ChangeRequest.aspx?ID='+cast(Chan geRequest.ChangeRequest_ID
as nvarchar) +CHAR(34)+'>Open</a></center>',"
I want to invoke a Client side javascript function and pass the value
of the ID. How can I accomplish this such when a user clicks "Open" he
goes to a new window with the same ID.
I tried this but it does not work:
On Server side:
sSql = "SELECT DISTINCT " + "'Action' = '<center><a href= 'javascript:
NewWindow('+cast(ChangeRequest.ChangeRequest_ID as nvarchar)+
CHAR(34)+)'>Open</a></center>',"
On Client side:
function NewWindow(myID)
{
window.open("ChangeRequest.aspx?ID="+myID,"WindowName","width=500,height=600");
}
</script>