Dialog close when clicking link
Hey everyone,
I have a made a page which show data from a database. When clicking upon a field a dialog box is opent, within this dialog is a form.
This page is loaded into an index page using the .load function. Everything is working just except when i load a different page into the index.php the dialog stays opent. Is it possible to automaticly close a dialog when loading a different page into the index.php.
i load the page using this function
- function info(){
- $('#test').load('info.php');
- }
and my dialog looks like this
- $(function(c) {
-
- $( "#dialog" ).dialog({
- autoOpen: false,
- width: 260,
- height: 85
- });
-
- $( "#dialog" ).dialog({
- position: {
- my: 'left, top',
- at: 'right, top',
- of: $('#opener')
- }
- });
- $( "#opener" ).click(function() {
- $( "#dialog" ).dialog( "open" );
-
- });
-
- });
-