On Thu, 2007-03-01 at 13:55 -0500, Tony Maro wrote:

> In Firefox, the dialog pops up centered to the current view of the
> page.
> 
> In IE (6 & 7) it pops up, the screen is shaded, but you can't see the
> dialog unless you scroll all the way back to the top.



This is driving me insane.  The demo page on xilinus.com doesn't exhibit
this problem, but every dialog I create does.

Here's a very basic PHP file I'm using to generate a dialog.  I'm
generating enough text to cause the user to scroll down the page prior
to clicking the link.
The link then pops up an alert dialog.

<?php
        echo "<script src=\"/test/js/prototype.js\" type=\"text/javascript
\"></script>";
        echo "<script type=\"text/javascript\" src=\"/test/js/window.js
\"></script>";
        echo "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"
href=\"/test/css/default.css\">";
        echo "<link rel=\"stylesheet\" type=\"text/css\" media=\"screen\"
href=\"/test/css/alphacube.css\">";

        echo "<font size=7>";
        
        for ($i=0;$i<20;$i++) {
                echo "test<br>";        
        }
        echo "</font>";
        $error = "This is a test.";
        $myscript = "Dialog.alert(\"$error\",{className: \"alphacube\",
okLabel:\"Ok\"});return false;";
        echo "<a href='#' onclick='$myscript'>Click here</a>";

?>


In Firefox it does just fine - the alert is centered on the screen.  In
IE, the user has to scroll up the page to see the alert.

Any clue what am I doing wrong?

-Tony
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to