How To Get Client IP Address?
Jul 23, 2005How can I get the client's IP address from within an HTML page using embedded JS? Code:
View 8 RepliesHow can I get the client's IP address from within an HTML page using embedded JS? Code:
View 8 RepliesI 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.
How can i get client mac address OR hdd id with javascript for internet explorer?
View 6 Replies View RelatedWhat 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 would like to get a web client's IP where the client is behind a firewall.
I googled but hasn't found any solution with javascript that work's. There
seems to be a java applet that can do this, but i would like the applet to
put it into a "hidden" tag or into a textbox on the HTML page, so when the
user clicks "OK" it will be posted to my PHP script.
In my html page i've to show a grid with some data retrieved from an xml file ... i need to this beacuse i've to use online, on a webserver and offline
with all files on a usb key, cd, etc ...
which is the best way to accomplish this?
I suppose a solution it could be via javascript:
-locally open the xml file that contains the data e then render then grid. Now i wornder about the best way to do this ... i've read about xsl transofrmation and so on ... if it's possible i'h to achieve this with a cross-browser solution!
Is it possible to add a js function to a loaded web page on the client side?
E.g. IE is viewing google, can I add a javascript function to that instance
of IE viewing google? I am trying to hook browser events such as button
clicks and get information such as edit field text.
I want to know how can i make javascript that i can use by run into in address bar.. I just need such javascript that run through address bar. My purpose is How can i check all check box in webpage that do not include all check or uncheck button? Best common example for check all or uncheck all is
[Code]....
Is this possible??? I am working on a server which does not have Server Side Includes.
Is there anyway to get a clients IP address using JavaScript without SSI?
Can I rely on the following code to accurately detect a Windows 64-bit client?
var bWin64 = navigator.platform=="win64";
How can I get a server value into client event?
Or is there another way around my problem?
I have a ASP page that need to get the server IP
(Request.ServerVariables("LOCAL_ADDR")) to open a new asp page
this is some of my HTML that I want to work. Code:
Is there an easy way to detect the local language settings of a client
browser or system?
I want to for example determine if the users browser or system is set to
English, French, or Italian and display a message in the appropriate
language.
I know there are restrictions on the client side in this regard, but thought I would ask. Can you determine a files size on the client? I purchased one of those upload to server applications. But I do not want to send large files. Their application only allows me check the side after sending the file to the server (after the fact). I need to know the size before hand. Just like validating text in a textbox before submission, I want to check the file size on the client before submission. Is there any way to do this on the client?
View 1 Replies View RelatedI have tested the thumbnail images that link to a popup detail page and they seem to work fine in Safari and Firefox on a mac and in IE on Windows (not sure which version of IE, I was using the PC at a UPS Store). Why does my client insist that they do not work? Any javascript issues with my code? I know it is a bit old since it was created a few years ago but I even got it to work on my iPhone today.
Here is the link: [URL]
How can I get with JavaScript that the client has closed the window?
View 5 Replies View RelatedMy php script has an input date (example: 2011-09-30) but if I use the server date then it may not match to client's machine.
But how do I get the client's local timezone then pass it to php and convert ?
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head2" runat="server">
<title>Run Executable HTA</title>
[code].....
i have a Trajan Pro font on my site. when i put in the web, the people that donĀ“t have the font installed on computer is unable to see with the font that i choose. how can i load the font on my server? i beliave there is some way to do this
View 4 Replies View RelatedI 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?
I Need to get the URL of the page from the address bar and then retrieve a certain part of the url from that.
[URL]
I need to get the part after the # and only that part. How would I do this?
Instead of using javascript:alert('hi'), suppose I store alert('hi') in x.js and put it on host.com/x.js. Is there a way to execute host.com/x.js directly from the address bar using javascript:?
View 2 Replies View RelatedI'm just coding a pop-up window and do not want the address bar to appear.
Or if it is even possible?!
My code is currently:
[CODE]
window.open('/flash_popup.php','win','height=600,width=695,toolbar=0,scrollbars=0,fullscreen=0,left=150,location=0 ,menubar=0,resizable=0,status=0');
[ICODE]
I have a simple little code script and I'd like either the onClick function (or the entire code itself, whichever is easiest) to only load once every 24 hours for each IP address. So "123.1.22.333" should only get the effect of this code once every 24 hours regardless if they revisit my site 5 times a day let's say.
View 2 Replies View Related