943,712 Members | Top Members by Rank

Ad:
Feb 20th, 2009
0

pages

Expand Post »
Hi,

how do i display all my other pages in my index page content.

e.g. i have a menu and when user clicks on a section like music it doesnt go to music page but shows the music page in contents section of index page.

thanks
Similar Threads
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Feb 20th, 2009
0

Re: pages

If you're really in a hurry and are willing to deal with a horde of angry, standards-wielding html-ers, you can look up this iframe article randomly Googled by yours truly.

But if you have more time, you can read about AJAX and PHP and 'dynamically' load certain pages or content into a portion/element of your index page.
Reputation Points: 70
Solved Threads: 15
Posting Whiz
kanaku is offline Offline
378 posts
since Jan 2007
Feb 21st, 2009
0

Re: pages

hi,

i have alot of time...as i am learning as well. can you please provide a tutorial about the second solution in ur comment.

thanks
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Feb 22nd, 2009
0

Re: pages

AJAX isn't a new language, it's just based on javascript (but it somehow 'interacts' with the server because it can 'call' pages). So with what you want to do, the benefits of AJAX isn't very obvious. However, it's very useful to learn because of that being-able-to-call-pages functionality (and some really cool animation effects).

(So you won't curse the day I was born when you get stuck trying to learn it.)

Usually when a user clicks on a link or on a "submit" button, the whole page is "submitted" and a new page is loaded (HTML/PHP/ some other page).

Assuming you couldn't do it with an iframe, you can use AJAX to get the value of the link (or to just react if a certain link is clicked) and do something based on that action (link-clicking) which can be one of the ff:
- animate something
- call some php/html/.something page and get the value it returns


If you're already familiar with javascript, you can just read the uses or view some samples of AJAX in action:
- a bit of a serious article about AJAX
- a cool/easy-to-understand article demonstrating AJAX uses for designers - the page for the jQuery demos can be found here


jQuery is an AJAX library (just a .js file you include in your pages, like an external CSS file that allows you to start using AJAX instead of having to start from scratch using this W3schools tutorial.


As a last attempt to convert you (hehe), the being-able-to-call-pages functionality of AJAX allows you to connect to a database and dynamically change a portion of your page without having to reload the whole page (since you can call PHP pages and PHP can interact with your database).

An example of that is a registration form which, on clicking the submit form, uses AJAX to call a PHP script and check the database if the username is taken and stopping the submission process if so. Instead of having to submit the whole page and wait for everything to be processed before generating all the errors.
Reputation Points: 70
Solved Threads: 15
Posting Whiz
kanaku is offline Offline
378 posts
since Jan 2007
Feb 23rd, 2009
0

Re: pages

cool explanation. thanks alot mate
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Feb 25th, 2009
0

Re: pages

You're welcome. Hope you find it useful. =)
Reputation Points: 70
Solved Threads: 15
Posting Whiz
kanaku is offline Offline
378 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: css positioning questions
Next Thread in HTML and CSS Forum Timeline: Do you know any good contact form script





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC