trying to open a dialog in the same page

trying to open a dialog in the same page


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