Jump to content


Photo

Popup Window + picture from DB


  • Please log in to reply
2 replies to this topic

#1 aldodager

aldodager
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 June 2006 - 08:32 PM

im a php newbie, so please excuse me if this is too easy, but i really need help on this:

the following link takes you to another page, but what i want is that instead of linking you to another page, it has to open a popup...

any ideas?

here is the code

<form name="form_picture" method="post" action="picture.php">

    <input type=hidden name=id_item>

        <a href="#" <?echo "onclick=gotopicture(" . $item_id . ")";?>><strong>Click here to enlarge the 
        picture</strong></a>

</form>

thanks, i really appreciate your help!

#2 jworisek

jworisek
  • Members
  • PipPipPip
  • Advanced Member
  • 112 posts

Posted 23 June 2006 - 08:51 PM

well if you just want to open a new window with a link, you can use:

<a href="" target="_blank"></a>

not sure if that will work with what you have.

#3 aldodager

aldodager
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 23 June 2006 - 09:05 PM

Thanks jworisek for replying, but I think that I didnt made understandable (this word exists? jeje) this issue...

If you read the code you will find the following thing:

I have a link that says: CLICK HERE TO ENLARGE... if you click it, it will take you to another page in the same browser window... i dont want to use _blank beacuse i need a browser window with a 640 pixels width and 480 pixels height...

the answer: POPUP WINDOW...

Probably I've been working too much, but i cant find a way to add the popup window code:

<a href="#" onClick="MM_openBrWindow('HERE GOES THE PATH','b','width=640,height=480')">


into the ENLARGE PICTURE link:

<form name="form_picture" method="post" action="picture.php">

    <input type=hidden name=id_item>

        <a href="#" <?echo "onclick=gotopicture(" . $item_id . ")";?>><strong>Click here to enlarge the
        picture</strong></a>

</form>

[img src=\"style_emoticons/[#EMO_DIR#]/unsure.gif\" style=\"vertical-align:middle\" emoid=\":unsure:\" border=\"0\" alt=\"unsure.gif\" /]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users