Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

42 users online



How to do this?

How to do this?

Currently viewing this thread: 1 (0 members and 1 guests)


clubart

clubart

Status: Offline!

How to do this?

I am building a php web page and I would like to do following:

When someone clicks on left or bottom navigation menu, the only thing it should be changed or reloaded is the content in the right middle table.

I have 2 files - 1st is index.php and 2nd is Proizvodi_main.htm.

How can I do that when someone clicks on a button the content should be reloaded ? changed but not whole page? Roll Eyes

The_Boy

The_Boy

I'm webmaster :D
Status: Offline!

Learn HTML before PHP may help Wink

___________________

<? while (!$success) { $try++; } ?>

solow

solow

Status: Offline!

I think that this can be done a few ways. (someone correct me if i am wrong)

1] frames :: you would have 3 frames (pages). The header at the top, the nav bar on the left, and the content in the main portion. Clicking on the link in the on the nav bar will call the page and have it load to the content area.

2] iframe :: You have you main page with your header and your nav bar. Then place this code:

Code:

<iframe src="/path/to/page.html"></iframe>


This will create a new window similar to a textarea that will show the page that you call to it. The links can target the iframe (target="iframename").

This can also be done with some PHP coding. I am still learning this myself so I will let someone else tell you about that one.

___________________

"I learn so I can Help" - Solow

Majjec

Majjec

Status: Offline!

This is an HTML question, should probably be moved to client-side.

___________________

http://www.nykoelle.com/tf/majjec.gif

clubart

clubart

Status: Offline!

I know that it could be done with iframe, but I would like to keep my table non fixed width and height.

I am almost sure that this could be done in php, but I do not know how?

Please help me :confused:

solow

solow

Status: Offline!

I think that you should read this thread:
http://www.tutorialforums.com/showthread.php?s=&threadid=36220
and if that doesnt explain it then maybe try searching google using some keywords and stuff that you can take from the thread.
... that is just about where i am at with the same thing.
Good Luck

___________________

"I learn so I can Help" - Solow

Kronic

Kronic

Errr?
Status: Offline!

I don't know PHP but couldn't it be done with the include? Don't take this for granted though because I only know the very very basics of PHP.

___________________

http://www.flegg.plus.com/kronic_sig_04.gif

Mad

Mad

Status: Offline!

to do an include you would have to reload the page, he doesn't want to do that.

best to use iframes *shudder*

___________________

http://members.aol.com/riskydevil/mini.gif
[PHP Tutorials]
[In Development]
[Please visit]

Rad

Rad

thinking of something witty to put here
Status: Offline!

a nonfixed width and height? why would you want that

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0091 seconds.