Click to See Complete Forum and Search --> : frames and javascript


Sharkus
11-22-2002, 06:01 AM
Am sorry, am braindead newbie! :D And I need help!

My site does not currently have frames, though I want to use frames. OK, no problem there, I can create framesets, thats easy.

The problem is this.

I give out a url to a specific page, say;

www.mywebsite.com/pages/cars/mycar.html

This will not load into a frame, which is not what I want.

What I want is, via JS, to be able to detect that the window is not currently framed, then create the frames (v simpy, 2 col frame setup, left one with links in it, main one with the page in it) then load the links (my navigation) into the left frame and then load the page the user actaully entered the url for, in the main frame.

I know it's very easy to just do something like:

if (top == self) self.location.href = "INSERT HOMEPAGE HERE";

and get it to go to my main index.html page where the frameset would be defined, but I really want the actual page they requested in the main frame.

Am I asking too much here?

Phil
11-25-2002, 06:58 PM
Visit this page and tell me if this is what you are looking for








http://www.porthuronclassifieds.netfirms.com/news1.html







Free personals no sign up Always free click here (http://www.bluewaterclassifieds.netfirms.com/cgi-bin/atl.cgi)

Voice your opinion today in our free forum on pollitics (http://www.porthuronclassifieds.netfirms.com/)

Selling a car? post it here for free limited time only get your space now (http://www.autotracker.netfirms.com/cgi-bin/atl.cgi)