Can anyone please help me to find a way to change the content produced by a PHP Include without reloading the entire page.
The include produces a Div containing a scrolling list of links generated from a MYSQL query.
I would like to reload this list according to say different ORDER BY criteria without the overhead of reloading the whole page and it's Pix etc.
Are you a Google Analytics enthusiast?
Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE!

www.CustomReportSharing.com
From the folks who brought you High Rankings!
More SEO Content
International SEM | Social Media | Search Friendly Design | SEO | Paid Search / PPC | Seminars | Forum Threads | Q&A | Copywriting | Keyword Research | Web Analytics / Conversions | Blogging | Dynamic Sites | Linking | SEO Services | Site Architecture | Search Engine Spam | Wrap-ups | Business Issues | HRA Questions | Online Courses
Change Include Without Reloading Whole Page
Started by
piskie
, Aug 30 2011 04:49 AM
5 replies to this topic
#1
Posted 30 August 2011 - 04:49 AM
#2
Posted 30 August 2011 - 12:05 PM
Can anyone please help me to find a way to change the content produced by a PHP Include without reloading the entire page.
The include produces a Div containing a scrolling list of links generated from a MYSQL query.
I would like to reload this list according to say different ORDER BY criteria without the overhead of reloading the whole page and it's Pix etc.
The include produces a Div containing a scrolling list of links generated from a MYSQL query.
I would like to reload this list according to say different ORDER BY criteria without the overhead of reloading the whole page and it's Pix etc.
Using Ajax it is possible,No need to use PHP include() function page just create a seperate php page that you want to show within <div> tag and call that page using ajax.You can search in google you will get similar code.I hope it 'll help you.
#3
Posted 31 August 2011 - 10:14 AM
Thanks Parth
I haven't used Ajax yet, so this seems to be the spur I needed to get to grips with it.
I haven't used Ajax yet, so this seems to be the spur I needed to get to grips with it.
#5
Posted 21 September 2011 - 08:31 AM
Not yet Imbrod
I found the inertia of getting to grips with Ajax to be too much of a time consuming hurdle at this stage of the project.
So at the moment, I am fully reloading the page with the delay penalty that it involves.
I will retrofit the solution either Ajax or whatever after meeting the client completion deadlines.
Meanwhile, anyone else who wishes to contribute with an Ajax or other method head start is most welcome.
I found the inertia of getting to grips with Ajax to be too much of a time consuming hurdle at this stage of the project.
So at the moment, I am fully reloading the page with the delay penalty that it involves.
I will retrofit the solution either Ajax or whatever after meeting the client completion deadlines.
Meanwhile, anyone else who wishes to contribute with an Ajax or other method head start is most welcome.
#6
Posted 21 September 2011 - 09:47 AM
I’m a big fan of jQuery, and they have a lot of Ajax functionality built in.
http://api.jquery.com/category/ajax/
You could probably just use .get()
http://api.jquery.com/jQuery.get/
With something along the lines of (untested):
http://api.jquery.com/category/ajax/
You could probably just use .get()
http://api.jquery.com/jQuery.get/
With something along the lines of (untested):
CODE
$.get("test.php", { var1: "value", var2: "value" },
function(data){
$('#divID').html(data);
});
function(data){
$('#divID').html(data);
});
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









