Hi, i'm making a web proyect in MVC3 and i'm using a lot of Jquery code and apis.
I have a problem when i open a dialog and assing the content with .LOAD. The problem is when the dialog is open and loaded with the corresponding content, until now everything is OK, but when I click in a hyperlink inside the dialog, the page is redirect to that page, but i want to keep the new page inside the dialog. Not to refresh all the page. Belor you have my code.
- <script type="text/javascript">
- function openPopUp(link, title, x, y, deshabilitado) {
- var div = $('<div />').load(link).dialog(
- {
- canMinimize: true,
- modal: deshabilitado,
- canMaximize: true,
- show: "blind",
- title: title,
- width: y,
- height: x,
- buttons: {
- Cerrar: function () {
- if (confirm("Desea cerrar la ventana y salir? Los datos que no haya guardado seran descartados.")) {
- $(this).dialog("close");
- }
- }
- }
- });
- }
- </script>
So, when I click in a hyperlink inside the dialog page, all my web is refresh with this direction.
Could you help me??
Thanks and regard!