Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-19-2002, 02:41 PM   PM User | #1
KrazyKid
New Coder

 
Join Date: Jun 2002
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
KrazyKid is an unknown quantity at this point
Question Determinining a user's homepage?

Can you determine the value of a user's homepage?
KrazyKid is offline   Reply With Quote
Old 06-19-2002, 03:06 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
You mean, can you determine what page the visitor has as their homepage??
QuackHead is offline   Reply With Quote
Old 06-19-2002, 03:26 PM   PM User | #3
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
if you are looking how to set the users homepage this is a text link that sets it (if someone could tell me how to change that for when the page loads that would be great )

<SPAN onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.wsabstract.com');">Click here to make wsabstract ur home page</SPAN>
whackaxe is offline   Reply With Quote
Old 06-19-2002, 03:53 PM   PM User | #4
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
Quote:
Originally posted by whackaxe
(if someone could tell me how to change that for when the page loads that would be great )
how about this...

<body onLoad="setHomePage('http://www.wsabstract.com');">

~Quack
QuackHead is offline   Reply With Quote
Old 06-19-2002, 04:26 PM   PM User | #5
KrazyKid
New Coder

 
Join Date: Jun 2002
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
KrazyKid is an unknown quantity at this point
I Was Away..

Sorry for not offering a prompt reply..thanks for the suggestions on setting the page..

I want to be able to validate whether or not a user has the correct homepage set incase the page is the same but the URL is different...
KrazyKid is offline   Reply With Quote
Old 06-19-2002, 07:22 PM   PM User | #6
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
To my knowledge, you cannot read what the user's homepage is, unless they are using IE and you use ActiveX and search through their registry, but they'll (hopefully) get big scary alerts saying why they shouldn't allow the script to run.

You can redirect them to their homepage though:

if (!window.home) window.home = function() { location.href = 'about:home' };

window.home();
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-19-2002, 07:36 PM   PM User | #7
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
sorry, my post didn't apply to the original comment, I was replying to whackaxe's post - but even then, the method I gave was wrong

~Quack
QuackHead is offline   Reply With Quote
Old 06-19-2002, 08:32 PM   PM User | #8
KrazyKid
New Coder

 
Join Date: Jun 2002
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
KrazyKid is an unknown quantity at this point
Thanks...

Thanks to all!
I will try to do the registry snoop as it would be in a trusted evironment or an HTA...
KrazyKid is offline   Reply With Quote
Old 06-19-2002, 09:05 PM   PM User | #9
whackaxe
Senior Coder

 
Join Date: Jun 2002
Location: paris, france
Posts: 1,216
Thanks: 0
Thanked 0 Times in 0 Posts
whackaxe is an unknown quantity at this point
is there a shorter way that the way i just showed for setting the homepage. save a couple of lines of code
__________________
photoshop too expensive? use the GIMP! www.gimp.org
whackaxe is offline   Reply With Quote
Old 06-19-2002, 10:01 PM   PM User | #10
JohnKrutsch
Regular Coder

 
Join Date: Jun 2002
Location: The Planet Earth Code Poet: True
Posts: 282
Thanks: 0
Thanked 1 Time in 1 Post
JohnKrutsch is an unknown quantity at this point
You could try somethign like this for onload:

<body onload="hp.style.behavior='url(#default#homepage)';hp.setHomePage('http://www.uvsc.edu');">
<span id="hp"></span>

although it is highly annoying!
JohnKrutsch is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:12 PM.


Advertisement
Log in to turn off these ads.