Hi, I am using I-frames on my site. Is there a way that I can call java-script functions that live in the parent frame of an i-frame - or just target it to go to a different url.
Also, is there a script that I can put in my i-frame that checks that its in my i-frame...
Cheers if you can...
its depends on the whole domain. In this particular instance - I cannot use iis, php or coldfusion. There are 5 domains parked - and I need to redirect to a different page - including the same page, but change the domain.
eg: they type in bob.com > bob.com
they type in bill.com > the same...
so will this working in any browser, I thought there was a different location syntax for diff browsers...
current_url = document.location.href;
switch (current_url) {
case 'United States':
window.location='my url';
break;
default:
window.location='my url';
}
the current url
I usually use cf to do a redirect based on the domain.
I suppose i want to set a var as the domain, then do a swich with some actions based on that var...
Hi, is it pos to do a browser independant redirect base on just the domain - not the whole url.
EG:
if the domain is
http://www.microsoft.com
or
http://microsoft.com
or
http://microsoft.co.uk
go to 'x'
M@)
When I detect my browser it says:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Browser language: en-gb
Whay does it say Mozilla/4.0 when its IE?
M@)
Cheers mate - I'm now using:
function PopAction(url){
// main window go to url
window.opener.location.href=url;
//Close the popup
self.close();
}
and calling it with:
<a href="javascript:PopAction('http://http://www.tek-tips.com')">link</a>
Cheers,
M@)
Hi There, I have a place where I keep all my js functions.
One of may functions launches (user requested) popups.
I am trying to write a function that I can call from any one of the popups that tells the parent window to go to a url and the closes the pop_up.
Eg I would just include a working...
Hi - Rob Penner wrote this function to get the intercept ot two lines from pasing it four points.
its very neat:
Math.intersect4Pts = function (p1, p2, p3, p4) {
var x1 = p1.x; var y1 = p1.y;
var x2 = p2.x; var y2 = p2.y;
var x3 = p3.x; var y3 = p3.y;
var x4 = p4.x; var y4 = p4.y;
var...
for some reason the whole cell moves to the left when an option is selected. If my monitor was not so heavy, i'd have thrown it at something by now...
M@
Can ANYONE please please help me understand how to get this page to behave in IE and netscape?
M@
------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.