[Javascript] Opening Intranet links with a set navigation fra me
Peter Brunone
peter at brunone.com
Tue Mar 20 11:54:50 CST 2001
document.write('<FRAME SRC="' + framePage + 'NAME="MAIN" SCROLLING=no NORESIZE MARGINWIDTH=0 MARGINHEIGHT=0></frameset><noframes></noframes></html>')
Needs to be
document.write('<FRAME SRC="' + framePage + '" NAME="MAIN" SCROLLING=no NORESIZE MARGINWIDTH=0 MARGINHEIGHT=0></frameset><noframes></noframes></html>')
(you're missing a double quote to close the SRC attribute).
----- Original Message -----
From: Ciko, David
To: javascript at LaTech.edu
Sent: Tuesday, March 20, 2001 11:35 AM
Subject: RE: [Javascript] Opening Intranet links with a set navigation fra me
Thanks for all the help...
I think I've almost got it, but the code I'm using just isn't changing the URL. I know it's parsing the url, but where am I going wrong.
The reason I can't use Esters suggestion is that the content is controlled by numerous different providers and I cannot modify the code they have for their various sites.
*****sample code*****
<html>
<head>
<title>URL Variable Snatcher</title>
</head>
<body>
<A HREF="testpage.html?pagename=test2.html">Click here</A><BR>
<SCRIPT LANGUAGE="JavaScript">
var pageName;
var framePage;
var startIndex;
var endIndex;
var pageName = window.location.href;
var startIndex = window.location.href.indexOf("?pagename=") + "?pagename=".length;
var endIndex = window.location.href.length;
var framePage = pageName.substring(startIndex,endIndex);
document.write('<html><head><title>Test</title></head><FRAMESET ROWS="70,*" BORDER="0" FRAMESPACING="10" FRAMEBORDER="no">')
document.write('<FRAME SRC=""frame_TSC_heading.stm"" NAME="heading" SCROLLING=no NORESIZE MARGINWIDTH=2 MARGINHEIGHT=10>')
document.write('<FRAME SRC="' + framePage + 'NAME="MAIN" SCROLLING=no NORESIZE MARGINWIDTH=0 MARGINHEIGHT=0></frameset><noframes></noframes></html>')
</SCRIPT>
</body>
</html>
*****end sample code*****
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010320/d2bcd33b/attachment.htm>
More information about the Javascript
mailing list