There are other ways to do this, but this will show you the basic
concept, which is to load (via ajax) the second page into a DOM
element and then open that DOM element as a dialog.
<a href="#" onclick="showPage2inDlg();" target="_blank"><img src="img/
b_edit.png"
border="0"/></a>
function showPage2inDlg()
{
$("<div id='page2dlg'></div>").load("pag2.php?").dialog();
}
Hth,
Dave
On Oct 16, 6:20 am, kiwi <[email protected]> wrote:
> Hi all,
>
> I am relaly new to jquery and I have lots of question to ask :)
>
> I have already checked all demos and examples available but I am
> really a newbie to all this. I hope you can help me.
>
> SO my first issue is the following:
>
> I have 2 pages (pag1, pag2). Pag1 has an image that when pressed it
> needs to open pag2 but in a dialog without leaving Pag1.
>
> At the moment I have at Pag1 the following code:
>
> <a href="pag2.php?" target="_blank"><img src="img/b_edit.png"
> border="0"/></a>
>
> but when pressed (as you might guess) it opens a new window and then
> the dialog box appears.
>
> Can anyone help me on this?
>
> thanks a lot
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---