daveeboi Posted July 28, 2008 Share Posted July 28, 2008 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 https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/ Share on other sites More sharing options...
DarkWater Posted July 28, 2008 Share Posted July 28, 2008 This is Ajax or Javascript-related, not really PHP-related. Link to comment https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/#findComment-602028 Share on other sites More sharing options...
daveeboi Posted July 28, 2008 Author Share Posted July 28, 2008 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 https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/#findComment-602037 Share on other sites More sharing options...
trq Posted July 28, 2008 Share Posted July 28, 2008 Oh, right! so it wouldn't be possible using PHP and MySQL. PHP and MySql can easily be used as part of an Ajax solution. Ajax isn't a technology in itself. Link to comment https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/#findComment-602042 Share on other sites More sharing options...
daveeboi Posted July 28, 2008 Author Share Posted July 28, 2008 What topic would it be classed in Ajax? Just to do search for it. Link to comment https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/#findComment-602058 Share on other sites More sharing options...
MasterACE14 Posted July 28, 2008 Share Posted July 28, 2008 possibly "AJAX tabs" or "AJAX dynamic content". I would imagine something along those lines. -EDIT, I searched for AJAX content. And I found this... AJAX Content Link to comment https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/#findComment-602059 Share on other sites More sharing options...
trq Posted July 28, 2008 Share Posted July 28, 2008 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 https://forums.phpfreaks.com/topic/117054-solved-changing-part-of-a-page-when-button-clicked/#findComment-602061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.