Jump to content

[SOLVED] Changing part of a page when button clicked....


daveeboi

Recommended Posts

I was wondering if it was possible to have a web page that would have buttons etc and when each button/link was clicked then only the main content area would change accordingly.  Initially I have thought that it would be possible to achieve this by storing all content text in MySQL tables and when each button/link was pressed take the relevent content from the tables.

 

Am I thinking along the right lines?

 

Any advice would be great.

Link to comment
Share on other sites

Oh, right! so it wouldn't be possible using PHP and MySQL.  Thanks, think you just saved me a few hours developing something that would just produce headaches.

 

Do you know what it would be called so I could possibly search for a tutorial to see how it's done please?

Link to comment
Share on other sites

What topic would it be classed in Ajax? Just to do search for it.

 

I have no idea but here is a simple tutorial (written by the creator of php) showing how to make javascript make background requests to the server. From there it shouldn't be too hard to piece together at all.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.