Forum Moderators: open

Message Too Old, No Replies

Domain Redirect

Is my preload java script messing it all up?

         

GaryMcSwegen

5:09 pm on May 6, 2005 (gmt 0)

10+ Year Member



I have made a mess of a redirect - It worked until yesterday.

I have a frames based site and I have used the java script to preload pages so if visted from SE/exterior links it displays correctly.

I have another domain name which directs to it.

The redirect still works however, now when you click the link to enter the "welcome" section of the site the nothing loads into _self. However, if you right click and open in a new window it works perfectly.

Why is it doing this? is it related to the java preload script I'm using?

Any ideas?

Cheers

Here's my master.htm....

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>**************.co.uk</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/javascript">

origURL = parent.document.URL
contentURL = origURL.substring(origURL.indexOf('?')+1, origURL.length)

document.write(' <frameset rows="119,*" cols="*" framespacing="0" frameborder="NO" border="0"><frame src="Header.htm" name="topFrame" scrolling="NO" noresize ><frame src="Welcome.htm" name="mainFrame"></frameset>' )

</script>
</head>

<meta name="keywords" content="">

<noframes><body>

</body></noframes>
</html>

and the following appears in the <head> section on all the pages

</script>

<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">

passpage = document.URL
if (top.location == self.location)
location.replace("master.html?" + passpage)

</script>

orion_rus

6:26 pm on May 6, 2005 (gmt 0)

10+ Year Member



where you declare a rule, how document is set:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
Your document, didn't equal to this rule, try to remove it, may be problem in it
Good luck to you