Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbl Click
Message
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01556330
Message ID:
01559547
Vues:
37
>
>Did you try pointing the url to a simple page that didn't contain anything (no JS, no CSS, nothing) as I previously suggested?
>
>BTW - The close button on the dialog definitely works under Chrome,

Here is what I tried. I created this test.HTML in Controllers directory
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Demo</title>
  </head>
  <body>
   <p>Test</p>
  </body>
</html>
and in the Edit button I put
 $('.trSelected', grid).each(function () {
          
                var id = $(this).attr('id');
                id = id.substring(id.lastIndexOf('row') + 3);
                currentId = id;
                $('#fntype').val('Edit');
             //  var url = '/Client/Edit/' + id;            
            //    var url = "/Home/About/";
           //     $("#sform").load(url).dialog({ modal: true, width: 1200, height: 750, resizable: true, close: function (event, ui) { alert('Closed'); } });
                var url = "Test.html";
                $('#sform').dialog({
                    autoOpen: false,
                    width: 1200,
                    height:750,
                    close: function (event, ui) { alert('Closed'); },
                    resizable: true,
                    modal: true,
                    open: function (event, ui) {
                        $(this).load(url);
                    },
                });

                $('#sform').dialog('open');
        });

    }
But now the Edit button simply opens the empty dialog (same as Edit). In other words, it doesn't look like that HTML is loaded at all.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform