Solved

Compound links

Posted on 2002-05-31
4
138 Views
Last Modified: 2010-04-09
0
Comment
Question by:Bob Stone
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 7047598
add an alert as shown below ... what does it reveal for that link?

<SCRIPT language='javascript'>
var mainpage=location.search.substring(1);
alert(mainpage);
if ( mainpage != "" )
setTimeout('top.main2.location=mainpage',100);
else
setTimeout('top.main2.location="main.htm"',100);
</script>

also, I would move this entire section below the last </frameset> tag to avoid timing issues.
0
 
LVL 23

Accepted Solution

by:
b1xml2 earned 100 total points
ID: 7048451
The answer is this:

<SCRIPT language='javascript'>
var mainpage=location.search.substring(1) + location.hash;
if ( mainpage != "" )
setTimeout('top.main2.location = mainpage',100);
else
setTimeout('top.main2.location="main.htm"',100);
</script>

You are not getting the hash value by using the search property. By using the location.hash, you will get if any the hash value inclusive of the pound sign #.

0
 
LVL 9

Author Comment

by:Bob Stone
ID: 7051274
Works great! Thanks =o)
0
 
LVL 23

Expert Comment

by:b1xml2
ID: 7051314
thanks =)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to create a slidershow with the use of the property cover in css 15 64
Set time on Session (ASP) 14 30
ASP get fieds value 2 21
Regular Expression needed 4 14
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question