This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Change of domain  RSS feed

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

First of all sorry for the multiple posts , but all of a sudden no one is responding to my question thus these multiple posts in various categories.

Is there a way to find out in java , when a user leaves the current domain and goes to another domain by typing another URL in address field of browser.
e.g.
if i am at www.yahoo.com and if i type www.hotmail.com in the address bar.
Can I track the domain of the newer site i.e. www.hotmail.com this is only needed if the user is changing the domain through the Address bar in Internet Explorer or Location bar in Netscape.
I have tried location.hostname in javascript and it is giving me www.yahoo.com i.e. the current hostname but i could not access the www.hotmail.com ie. the new URL.
Is there a java solution for this either through invisible applets or invisible servlets, or any java function I use in a JSP , servlet etc.
Any solution in any software is ok.
Thanks for your time and help
Thanks
Srini Renga
(edited by Cindy to remove the obnoxious yelling)

[This message has been edited by Cindy Glass (edited June 22, 2001).]
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if i am at www.yahoo.com


What does that MEAN??? You ARE the browser? You are in an applet on a page in yahoo? You are in an application that invoked the browser? You are trying to be a system monitoring device?
I would expect that the reason that you have not gotten any answers is that nobody else has a CLUE what you are talking about.
Please don't yell at me. I don't need the stress.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here are my thoughts:
The address bar belongs to the browser and not to the frame in which you are running javascript (or java applet) code. The best you have is the HTTP_REFERER CGI field, but that just gives you the last URL the user was at, and only if that page linked to yours.
While I don't think like a hacker, I suppose that browser developers anticipated a security (or privacy) problem with me knowing where people surf (other than pages on my own site). Why do I want yahoo knowing what site I go to after I am done there? Not that I mind, but it is none of yahoo's business.
Just a thought.

------------------
Tom McComb
 
Police line, do not cross. Well, this tiny ad can go through:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!