0

Hey guys, I've been trying to get this to work. don't know how.

<link rel="stylesheet" href="../js2/css/smoothness/jquery-ui-1.10.4.custom.css" type="text/css" />
<script src="js/jquery-1.9.1.js"></script>
<script src="../js2/js/jquery-ui-1.10.4.custom.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $('#box').dialog();
    }); 
</script>

<?php
echo("<div id='box'> Password changed </div>");
?>

It doesn't workk somehow, can anyone help me?

Edited by peter_budo: Please do not post JavaScript questions in Java section.

3
Contributors
4
Replies
16
Views
3 Years
Discussion Span
Last Post by JorgeM
0

I got it working now, I just want to know how to add an ok butto so it doesn't disappear suddenly

0

`

echo("<div id='box'> Password changed </div>");
    echo" <script>window.location=\"../index.php\";</script> ";

`

0

alert box is a modal dialog, (meaning) 1. it should be able to freeze script executon; also 2. disallow focus to go back to the content window e.g. to further interact with the page while it (the alert box) is still open.

It looks like jQuery is using the showModalDialog command in its .dialog() method -which is not supported by Opera.

It means that this same jQuery method will only be able to produce a modeless alert box in Opera and other browsers who do not have support for * custom* modals.

Edited by Troy III

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.