Forum Moderators: open

Message Too Old, No Replies

raising a window in firefox: is it a Linux thing?

         

mincklerstraat

4:47 pm on Jun 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a web application that has a number of various parts, with references to each of the parts from a central window. It'd be nice to be able to raise the central window from one of the other windows, but firefox on linux (tried two windows managers, pekwm and gnome) isn't doing it. Opera and Konqueror are doing it without issue. I'm doing it sort of like this, head part:

<script type="text/javascript">
function bfopentarget(where, target, extrastuff){
var targetwindow = window.open(where, target,'toolbar='+extrastuff+',directories=no,status=no,scrollbars=yes,resizable=yes,menubar='+extrastuff);
targetwindow.focus();
return false;
}
</script>

and then in the html body:

<img src="toolbars/main/main.gif" alt="main toolbar" title="main toolbar" class="dot" onclick="bfopentarget('index.php', 'app_main', 'yes')" style="cursor: pointer;" />

Firefox's preferences are set to allow javascript to raise and lower windows.

Any insights would be much appreciated.

j4mes

5:11 pm on Jun 30, 2005 (gmt 0)

10+ Year Member



(In Firefox/Linux:)

Edit > Preferences > Web Features > Javascript/Advanced > Allow scripts to: Raise or lower windows

Mine's turned off, I don't know the default though, but I reckon that's your problem.

J.

mincklerstraat

1:27 pm on Jul 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That was my first thought when this came up -- but I checked it, and it's permitted.