Current location: Hot Scripts Forums » General Web Coding » JavaScript » open in frame


open in frame

Reply
  #1 (permalink)  
Old 05-22-06, 02:33 AM
klawer2000 klawer2000 is offline
Newbie Coder
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation open in frame

Hi,

a have a simple search script that searches a lot of html pages, this pages i wish to open in an frame set (i know people don't like frame sets but is is my only option to let the pages open in an certain layout)..

In the head of al the html pages i have the following code...
Code:
<script language="Javascript" type="text/javascript">
	<!-- Hide script from old browsers
	if (top.location == self.location) {
		self.location.replace("../../index.html")
	}
	// End hiding script from old browsers -->
</script>
Bet now my page only views the standert frame set and the requeted page does not show up in my frame set (as " main page"). Has someone any idea's?

Thanx in advance Chris

Last edited by TwoD; 05-23-06 at 08:00 AM. Reason: Please use [code][/code] wrappers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-22-06, 04:09 AM
klawer2000 klawer2000 is offline
Newbie Coder
 
Join Date: May 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
hi all,

most of my solution i found here:
http://www.sylbek.de/main/help/tutor...s/frameset.htm

Only, has someone any ideas how i can insert a code at the top of the page that i dont have to change every line in the specific named page:
Code:
<!--
if (top.location.href.indexOf("index.htm") == -1)
top.location.replace("index.htm?main.htm&2"); 
// -->
</SCRIPT>

Last edited by TwoD; 05-23-06 at 08:00 AM. Reason: Please use [code][/code] wrappers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-22-06, 01:16 PM
Christian's Avatar
Christian Christian is offline
Community VIP
 
Join Date: Mar 2005
Location: ProgrammingTalk
Posts: 2,449
Thanks: 0
Thanked 6 Times in 5 Posts
Moved to Javascript . . .

btw, Thanks for posting your solution.
__________________
:: ImperialBB :: New version in the works! :: http://www.imperialbb.com ::

:: Have a question about the board? The Rules? An Infraction/Warning? :: Contact Form ::
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jscript menu to open selected url in frame...? xd40expert JavaScript 5 09-02-07 12:06 PM
Need Your HelP! Loading Multiple External Text into Multiple Dynamic Text Fields Flash_Boi Flash & ActionScript 2 03-30-06 04:27 PM
Open feed back page pallabmondal123 JavaScript 2 03-06-06 03:38 PM
cross frame meni Dustyn JavaScript 3 03-17-05 02:32 AM
How to code the jScript to open in frame astia JavaScript 1 11-06-03 10:27 AM


All times are GMT -5. The time now is 09:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.