Jump to content


Photo

PHP: HELP! Remote include from cliking an image button


  • Please log in to reply
2 replies to this topic

#1 SilveryGod

SilveryGod
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 July 2006 - 07:55 PM

Hi there
Thanks for visiting this topic, now dont move, i need your help ;)

I'm having a big problem that i cant solve myself.
I've spent several hours searching on the net but cant find what im looking for.

After reading this, you might think that im almost trying to build a kind of php iframe but i have no choice.


Im building a webpage which separate into two parts(top and bottom)

1-The Top (menu)= that have 4 image button with rollover states;
and this navigation bar should not reload (too many pictures to load) so...

2-The Bottom (content) that include() pages resquested by the clicked button.

As i know that I cant use javascript event handler with php, Im not able to change the content of the include() function from clicking an image button.

Please, i beg for help!
Regards

Can you help here?

#2 corbin

corbin
  • Staff Alumni
  • Advanced Member
  • 8,129 posts

Posted 22 July 2006 - 09:34 PM

so why cant you make a frame on the top and a frame on the bottom, name the top frame top and name the bottom one bottom then make your links like <a href="http://google.com" target="bottom">google</a> ???
Why doesn't anyone ever say hi, hey, or whad up world?

#3 SilveryGod

SilveryGod
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 July 2006 - 10:00 PM

re-reading my post, your reply seems a good solution but in fact
it cant be done
i just wanted to avoid too many explanation but there's more details;

my bottom part isnt exactly a bottom part, its mostly a part inside the top document (kindof iframe)

there's a little table draw of what my page look like:

+++++
+++++


The red "+" is my top part, from where my img-buttons are
the black "+" is the bottom part where i want to include() the page called by the button






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users