|
|
Feedback: Re-directing access within frames - Revisited
Feedback on: Sent by Stephan Natschlaeger on November 04, 1999 at 09:08:16: - feedback #567
Worth: Length: Technical: Comments: 1) Is it possible to change the text shown as "Location" from "http://.../frameset?contents.htm&title.htm&main.htm" to something like 2) How do I modify the code when the page I want to change (main.htm) is located in a subdirectory, e.g. frameset.htm is located in the directory "http://.../main/" and I want to address a page located in "http://.../main/sub1/". It is no problem to reach the page, but what do I have to do in order that a visitor who directly loads Sent by Ewout Wierda on November 06, 1999 at 06:50:00: - feedback #570
Worth: Length: Technical: Comments: The first problem relates to files in folders. In larger sites, say at the fictional site "www.website.com", it may well be that a number of files which should find place in the "main" frame, are placed in folders. For example, the file "main2.htm" might be placed in the folder "mainfiles", so that the full reference to that file would be "http://www.website.com/mainfiles/main2.htm". In this situation, your scripting would render the following non-existing URL: "http://www.website.com/mainfiles/frameset.htm?contents.htm&title.htm&mainfiles/main2.html". In other words, the scripting causes the browser to expect that the files referred to are in the same "mainfiles" folder as where the "main2.htm" page is placed. I believe the cause for this problem is in the coding " lastIndexOf('/') ". This coding is found, as you are no doubt aware, in the definition of "var newURL". If two dots are inserted before the slash, as in ' lastIndexOf('../') ', then the problem is solved, and the resulting URL is as it should be: "http://www.website.com/frameset.htm?contents.htm&title.htm&mainfiles/main2.html". I hope this may be of help to those who work with folders. The second problem I encountered is probably of less general use, but still it may be worth reporting it. On my web site, the URL of the "title" frame is dependent on that of the page in the "main" frame. So, "main.htm" would cause "maintitle.htm" to load, and "main2.htm" would bring up "maintitle".htm". This is done to cater for the use of three different organisational logo's in one web site. I found that the only way to continue to enable this in combination with the 'fra-framed-med' scripting is to create an empty page called for example "emptytitle.htm" and to have the frameset in "frameset.htm" refer to that "emptytitle.htm". Then, as soon as "emptytitle.htm" is loaded, "main.htm" will cause the "title" frame to load "maintitle.htm" or, as the case may be, "main2.htm" will cause the "title" frame to load "maintitle2.htm". Without the otherwise useless initial loading of "emptytitle.htm" into the "title" frame, a main page may end up having the wrong title page displayed above it. Perhaps there are others who have a title page for each main page as I do, and would benefit from this. Sent by Gary Davis on February 11, 2000 at 13:37:40: - feedback #808
Worth: Comments: I am attempting to solve another similar problem with frames. My site sells CDs and is sometimes incorporated within another site as a frame (see www.hotpoop.com and www.75music.com). When it gets to the credit card SSL page, the secure lock usually does not display since the other frames (outside of my control) are not SSL. This is a common problem among many sites. My solution is to determine if I am framed and in SSL mode and if so, pop up a window to accept the credit card. This window will have the lock. Once entered, the window is closed and returns to the normal window. This is done with a combination of server-side code and client-side. I prefer not to remove the frames but do so for the browsers I can't easily support (X11, MSN, AOL, WebTV for now). Any feedback would be appreciated. Thanks, Sent by PcVII on February 20, 2000 at 11:56:32: - feedback #835
Worth: Comments: so thank u technical ppl :) Sent by Ivan Peters on February 23, 2000 at 06:05:43: - feedback #845
Worth: Length: Technical: Comments: When testing if the page is in the correct frameset, wouldn't it be simpler to name the "content" frame ergi87143548 and then test with if (self.name != "ergi87143548) { it avoids the need for the hidden frame and may even avoid the need for the image. Opera replace() tainting: Seems to me that most Opera users are going to have lots of problems with lots of sites that do some sort of frame break-out. Rather than the new window thing, I would be inclined to generate BODY section (instead of the frameset) for this browser saying "This site cannot be loaded inside someone elses frameset. Unfortunately, your browser does not allow us to load the site over the frameset. Click here [link with TARGET="_top"] to replace the frameset or click here [link to instructions for changing Opera settings] to find out more about why your browser does this. Anyway, that's my two-penny-worth. Cheers Ivan Sent by Franky Backeljauw on October 20, 2000 at 05:06:15: - feedback #1888
Worth: Comments: Should it be just some name, or should it be the name of the file in which this code is ? Sent by Richard Earney on November 01, 2000 at 07:20:46: - feedback #1939
Worth: Comments: Is there a war around this? Sent by Bonnie van den Born on November 02, 2000 at 08:49:05: - feedback #1945
Worth: Comments: But on a mac, with ie 5.0 they can still link your pages into an alien frame, with netscape it works okay. Bonnie Sent by akelectro on January 20, 2001 at 00:31:08: - feedback #2259
Worth: Comments: Sent by Jim Barton on September 13, 2001 at 09:19:57: - feedback #3154
Worth: Length: Technical: Comments: All other materials I've seen on this subject utilize very basic and unusable code (which turned out to be incompatible and annoying when one tries to hit the "back" button). This article was a breath of fresh air in how detailed the solution presented was. You should have heard me jumping around my office when I got the code to work on my prototype pages. What a load off my mind! NOTE TO THOSE READING THE ARTICLE FOR THE FIRST TIME: Regardless of your level of experience, don't be intimidated by the code. Just copy/paste the two sets of code at the bottom of the article and insert them into your page. If you look at it long enough, you'll see exactly where you need to make minor modifications to fit your site. Refer back to the article if there's a point you're stuck on, and re-read the whole thing to trace the genious of these people...but the code itself is very well written and worked right away for me. Thank you guys! Sent by ramesh on December 08, 2001 at 15:13:49: - feedback #3405
Worth: Comments: Sent by H woodrow on June 01, 2002 at 09:55:43: - feedback #3918
Worth: Comments: Sent by sam gong on December 11, 2002 at 20:35:46: - feedback #4312
Technical: Comments: My frameset structure looks like this: <frameset rows="100,*" cols="*" frameborder="yes" border="0" framespacing="0"> </body></noframes> And I'm still stuck on figuring out which frames to apply the "passed =" statement to. Between article 1 and 2, I couldn't figure out how to modify this line. Please help? Best Regards, |
-- div -->
|