mcoelho123
08-04-2006, 04:32 PM
Hi guys,
i have this in a page:
function show_habit() {
self.name = "Parent_Window";
if (document.all)
window.showModalDialog("programas/habitacoes.php","","dialogWidth:780px;dialogHeight:500px")
else {
alert("You need IE")
}
}
<a onClick="show_habit()">Test</a>
And in the modal window
<base target="Parent_Window">
function set_link(id) {
switch (id) {
case "1":
a = "http://www.google.com";
break;
}
return a;
}
<a href="" onclick="return set_link('1')">google</a>
But it dont work and no error occurs. The modal page opens but inside it when i click "google" it goes to the folder where the html page is instead of http://www.google.com.
Can anyone help me in this one?? Thanks
i have this in a page:
function show_habit() {
self.name = "Parent_Window";
if (document.all)
window.showModalDialog("programas/habitacoes.php","","dialogWidth:780px;dialogHeight:500px")
else {
alert("You need IE")
}
}
<a onClick="show_habit()">Test</a>
And in the modal window
<base target="Parent_Window">
function set_link(id) {
switch (id) {
case "1":
a = "http://www.google.com";
break;
}
return a;
}
<a href="" onclick="return set_link('1')">google</a>
But it dont work and no error occurs. The modal page opens but inside it when i click "google" it goes to the folder where the html page is instead of http://www.google.com.
Can anyone help me in this one?? Thanks