| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| Javascript? | |
|---|---|
| Tweet Topic Started: Jan 28 2005, 12:51 AM (876 Views) | |
| Das | Jan 28 2005, 12:51 AM Post #1 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Anyone know if there is a way for Javascript to find and act on a persons IP adress? I am trying to make a pop-up that only works with certain peoples IP so the code would be
|
![]() |
|
| Captain Kam | Jan 28 2005, 02:04 AM Post #2 |
|
Custom member title
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
dunno if that would be in Javascript. It WOULD be in PHP or Perl or something though o.o' |
![]() |
|
| Stefan | Jan 28 2005, 06:40 AM Post #3 |
![]()
Mew?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That bit of code assigns the user's IP address to the ip variable. Don't know if it will work with all browsers, but it does with Firefox (so Mozilla and Netscape too) and IE. |
![]() |
|
| kingy | Jan 28 2005, 12:18 PM Post #4 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
it should include in all browsers, its general ssi |
![]() |
|
| Stefan | Jan 28 2005, 12:34 PM Post #5 |
![]()
Mew?
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You can't say it should work in all browsers because it's ssi. It's used in client context. |
![]() |
|
| Seth | Jan 28 2005, 12:41 PM Post #6 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
![]() SSI = Server-side Include? :unsure: |
![]() |
|
| kingy | Jan 28 2005, 01:11 PM Post #7 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
thats what i thought Seth, i didn't think it mattered on the user end |
![]() |
|
| FearKiller | Jan 28 2005, 01:46 PM Post #8 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Javascript, VBScript, etc. = Client Side PHP, Perl, ASP, etc. = Server Side Java = Client Side and/or Server Side Client side - executed by the client; can be disabled by the user Server side - executed by the server; can not be disabled by the user |
![]() |
|
| Rory | Jan 28 2005, 01:52 PM Post #9 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Yay for you, you managed to say something totally random, which didn;t really have anything to do with what was being discussed
|
![]() |
|
| FearKiller | Jan 28 2005, 03:00 PM Post #10 |
|
www.drewscripts.com
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Match the colors. I see alot of relation or maybe I just have no idea what the hell is going on. |
![]() |
|
| Rory | Jan 28 2005, 03:02 PM Post #11 |
|
i;m a mess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
No, you seem to have mistaken slightly. The topic moved to talk about SSI. Which you happened not to mention in the slightest
|
![]() |
|
| Das | Jan 28 2005, 03:21 PM Post #12 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
When it assigns the Ip adress to ip could I use a function then likeso the function would only run for certain ip's? |
![]() |
|
| Seth | Jan 28 2005, 03:31 PM Post #13 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That's not how you use functions. But, er, your concept is correct. |
![]() |
|
| Das | Jan 28 2005, 03:35 PM Post #14 |
![]()
Smells of rich mahogany
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Then how would you do it? |
![]() |
|
| kingy | Jan 29 2005, 08:07 AM Post #15 |
|
1 in 10 people understands binary, the other 1 doesn't
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
ok that was really quick, and basically shows you how this would work (i think). you could chnage allowed to whatever IP you want to see whatever the content is. For the benifit of this i just made it display alert messages |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
5:19 AM Jul 11
|




![]](../../../../0/1/0/p601690/pipright.png)





5:19 AM Jul 11