Okay....i've tried that....and unfortunately it didn't work
I replaced the frames page with the new one...visible at
http://www.safariquip.co.uk/
I added in the snippet of code to the competition page, so i could check it, visible at
http://www.safariquip.co.uk/vivid/pages/comp/comp.html
I checked it by going straight to the competition page, so that it would reload to the main frames page but keep the comp page in the frames....and no joy. It just gives me a 404 error page.
========================================
The script in the frames page looks like this :
</frameset>
</frameset>
<script language="javascript">
function getArgs() {
var args = new Object();
// Get Query String
var query = location.search.substring(1);
// Split query at the comma
var pairs = query.split("&");
// Begin loop through the querystring
for(var i = 0; i < pairs.length; i++) {
// Look for "name=value"
var pos = pairs[i].indexOf('=');
// if not found, skip to next
if (pos == -1) continue;
// Extract the name
var argname = pairs[i].substring(0,pos);
// Extract the value
var value = pairs[i].substring(pos+1);
// Store as a property
args[argname] = unescape(value);
}
return args; // Return the Object
}
var args = getArgs(); //Get the arguments
if(args.url)
{
window.content.location.href = args.url;
}
</script>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
<h1><font size="2">Travel Equipment and Safari Equipment suppliers to all over
the world!! </font></h1>
Thats a snippet so you know where abouts it lies etc.
=========================================
The script on the competition page is like this :
<script language="JavaScript">
if(!(parent.frames.length > 0))
{
window.location.href = "http://www.safariquip.co.uk/vivid/frames.html&url="+ window.location.href;
}
</script>
========================================
Is there an error with either one of these codes? you can view the pages and see the errors etc by going to
http://www.safariquip.co.uk/vivid/pages/comp/comp.html
That should help...
Anyone that can help solve this problem, please let me know how!!
