Article View: comp.lang.javascript
Article #60Help needed with script for loading right page
From: Erik van Roekel
Date: Mon, 29 May 2000 00:00
Date: Mon, 29 May 2000 00:00
30 lines
1913 bytes
1913 bytes
I'm using Netobjects Fusion (NOF) for developing my site and I'm using frames. For every page NOF generates 3 files a name.html (the mainpage) and two pages which defines the frames used called body_name.html and header_name.html. (name could be any name). The pages which start with body_ or header_ shouldn't be loaded individually. So I'm looking for a javascript which redirect the user if necessary. If a user loads a page and the name of that page starts with "body_" or "header_" the user has to be redirect to the name used without "body_" or "header_" in this case index.html. One script for all pages independent if the right page is named index.html or info.htm Procedure: 1. Check if the page starts with "header_" if so go to step 4 2. Check if the page starts with "body_" if so go to step 4 3. Quit 4. Load the right page by deleting "header_" or "body_" in the URL used and loading the new corrected url. Any Javascript expert who can solve this case ? Regards, Erik
Technical Details
Message-ID:
<3932a6c2.2214143@news.arnhem.chello.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bacc,ac786e1d7d671cb8,start X-Google-Attributes: gid10bacc,public X-Google-Thread: 10731d,ac786e1d7d671cb8,start X-Google-Attributes: gid10731d,public X-Google-Thread: fb3cb,ac786e1d7d671cb8,start X-Google-Attributes: gidfb3cb,public From: e.vroekel@chello.nl (Erik van Roekel) Subject: Help needed with script for loading right page Date: 2000/05/29 Message-ID: <3932a6c2.2214143@news.arnhem.chello.nl> X-Deja-AN: 628679206 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@chello.nl X-Trace: flipper 959621177 212.187.58.231 (Mon, 29 May 2000 19:26:17 MET DST) Organization: Chello Broadband MIME-Version: 1.0 NNTP-Posting-Date: Mon, 29 May 2000 19:26:17 MET DST Newsgroups: comp.lang.javascript,borland.public.intrabuilder.javascript,comp.lang.java.javascript