IDMIntranet eXchange 
[ Home | Post | Register/Awards | Find | F A Q | Archive ]

 Home/Articles
  •  Recent Tutorials
  •  Recent Features
  •  Top Twenty Articles
  •  Oldies But Goodies
 ITAdvisor
  •  News & Analysis
  •  Security
  •  Intranet Buzz!
  •  Intranet Talk
  •  Intranet Corner
  •  CaseStudies/ Departments
 Intranet Development
  •  WirelessEnterprise
  •  Getting Started
  •  JavaScript
  •  VBScript
  •  HTML/DHTML
  •  XML
  •  ASP/IIS
  •  Perl
  •  PHP
  •  CascadingStyleSheets
  •  Dreamweaver
  •  FrontPage
 Information Management
  •  Content Management
  •  Collaboration
  •  Portals
  •  ASPs
 Intranet Resources
  •  Intranet FAQ
  •  Discussion Board
  •  Jobs Board
  •  Events Calendar
  •  Intranet Books
  •  Tools of the Trade
  •  Glossary
 Archive
 Site Map

Modern Daze: Comics Page

New

Free Newsletter!
 
Privacy Policy

Search IDM:


Hot Intranet eXchange discussion board Threads
º  masking in javascript
º  Can pseudo-url in image maps work? -
º  How do I make these into a real type?
º  Access and Intranet
º  Help with a plan for an Intranet
º  Frames problem
º  Opening Word and Excel Documents from Intranet
º  asp file not running in local intranet environment
º  Best Document Management / Collaboration software
º  readonly text entry
º  Small company intranets
º  Forcing IE to open Excel Workbooks in a New Instance
º  Criteria for content management systems/products
º  Best Document Management / Collaboration software
º  How to have How to have an image follow the mouse cursor
º  Creating Hyperlinks - Database driven
º  Table background..
º  MS Access returning multiple rows

More Intranet eXchange Highlights

*  Articles Elswhere on Internet.com

FIXED: Still need help...


[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]


Posted by Morgan on July 27, 1999 at 16:50:52:

In Reply to: Still need help... posted by Morgan on July 19, 1999 at 12:38:11:

I ended up fixing this by making the 'frames page' entirely a JavaScript. It in turn creates a frames page that displays the navbar in the top and parses the url after the '?' to figure out what to put in the bottom:

<<frames.htm>>

<html>
<script language="javascript">

// parser:
var bodypage = "blank.htm"; // default is blank, so no error page
var index = window.location.href.lastIndexOf("=");
if (index != -1) bodypage= window.location.href.substring(index+1);

document.open("text/html", "frames");
document.write('<html><head><title>Frames Page</title></head>');
document.write('<frameset framespacing="0" border="0" frameborder="0" rows="42,*">');
document.write('<frame name="navbar" src="topnav.htm" scrolling="no" marginwidth="0" marginheight="0" noresize>');
document.write('<frame name="body" src="'+bodypage+'" scrolling="auto" marginwidth="0" marginheight="0">');
document.write('</frameset></html>');

</script>
</html>

the links to the page are like this:

<<splash.htm>>

<a href="frames.htm?page=category/index.htm">

the parser looks for whatever is after the "=" (not the "?") and puts that into the var 'bodypage'. The frames page generated then is coded to display whatever url was in 'bodypage'.

A gracious thank-you to Minh Dao, whose posted response to "Javascript to force a document into its frame" in the eXchange archives gave me all this code. I'm just regurgitating it in my own context. Thanks to Minh.

Regards,

- Morgan


Follow Ups:



Post a Followup

Name:     
E-Mail:   
Subject:  
Message:

Optional Link URL: 
Link Title:        

      



[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]