SitePoint Sponsor |
|
User Tag List
Results 1 to 19 of 19
Thread: Write Users Homepage To Page
-
Mar 24, 2004, 08:13 #1
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Write Users Homepage To Page
Hi, is there any way to write the users homepage (In Internet Explorer) to the page? I know you can use window.location="about:home" to redirect them there, but how do you get what page is actually their home page?
-
Mar 24, 2004, 18:12 #2
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
I don't know if there's a function call or property that can be used, but I figured out a way of doing it.
It requires you to have frames on a page.
2 frames are required, one to load the homepage & other to check it. Using about:home, you load the homepage of the user in a frame. In 2nd frame, you get the location of the 1st frame in a variable & do whatever you want.
Really simple.Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
-
Mar 24, 2004, 18:26 #3
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ya, but don't you get that access denied error since the page might not be on my server?
-
Mar 24, 2004, 18:41 #4
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
that doesn't matter. why would you get access denied? b'coz you are opening another website in a frame hosted on your website? are you crazy?
Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
-
Mar 24, 2004, 18:45 #5
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well that's what I got, 'cause say their hp is google.com (or yahoo.com, or any other site besides mine), then when I try to get the URL of that page, it says access denied
-
Mar 24, 2004, 21:04 #6
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
It displays the site fine, but when I use alert(parent.main.document.location) it gives me an access denied, but if the homepage is on my site it works fine!
-
Mar 25, 2004, 13:42 #7
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
what's the url?
Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
-
Mar 25, 2004, 17:26 #8
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
of my page????
-
Mar 25, 2004, 17:37 #9
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If yes, here it is http://www.kidsgamehouse.com/t.asp
-
Mar 27, 2004, 21:17 #10
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Is there anyone that can help?? If you look at the source of google, you see that it checks if the users homepage is google, and if not, say 'wanna add this as your hp?' (different wording). How can I get it to write the page? I have tried everything! Someone please help!
-
Mar 29, 2004, 08:14 #11
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Anyone? There has got to be a way! If anyone knows of a way please post it here, I have been looking for this code forquite some time now! Thanks to any future posters/helpers!
-
Mar 29, 2004, 08:34 #12
- Join Date
- Mar 2004
- Location
- D-Town
- Posts
- 369
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
If you've looked at googles source and it does what you want then why don't you use a variant of their code?
-
Mar 29, 2004, 12:00 #13
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Google's code doesn't do what he want. what he want is to know the homepage of visitor's browsers.
tough luck there kgh. I dunno what's wrong & why can't you access the url of the frame. I'll look into it if I get time.Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
-
Mar 29, 2004, 16:20 #14
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ok, I posted the page with the frames above so you can look at that page!
-
Mar 30, 2004, 01:01 #15
- Join Date
- Jan 2001
- Location
- Lawrence, Kansas
- Posts
- 2,066
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
This is impossible due to browser security restrictions which exist precisely to stop you from doing what you are trying to do. A user's homepage is their own private business, and should not be discoverable by other sites. The "permission denied" error you are getting is the browser telling you that you are trying to do something that is not permitted.
-
Mar 30, 2004, 07:22 #16
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
yes I am aware of that. I was wondering if there was another way, but I doubted it. If anyone does discover a way, please let me know of it!
-
Mar 30, 2004, 12:17 #17
- Join Date
- Jun 2003
- Location
- ether
- Posts
- 4,497
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Yes, I know of a way.
You can put a form on your website telling users to enter the URL of their browser's homepage. The form when sumitted, eMails you the info or enter it into a database, whatever you want.
Your best bet mate.Our lives teach us who we are.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Me - Photo Blog - Personal Blog - Dev Blog
iG:Syntax Hiliter -- Colourize your code in WordPress!!
-
Mar 30, 2004, 18:47 #18
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
ok, I may put an Iframe, just in case they don't know.
-
Mar 30, 2004, 18:48 #19
- Join Date
- Sep 2003
- Location
- San Diego, CA
- Posts
- 591
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
BTW: the iframe would be about:home so they could see there homepage
Bookmarks