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?

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

`

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

`

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.