SEO Class in Chicago, IL
Learn How To Optimize Your Website on July 26, 2013
High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!
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
Change Include Without Reloading Whole Page
#1
Posted 30 August 2011 - 04:49 AM
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.
#2
Posted 30 August 2011 - 12:05 PM
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
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
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
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):
function(data){
$('#divID').html(data);
});
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










