[Help] Default Page for Ajax to Load
I apologize for posting a new Help thread within minutes of last one, but it's the last piece of help I'll ask, I'll look elsewhere instead of dumping my problems on you.
Anyways, I'm using Dynamic Ajax Content to load pages into a div, and I just need to know how to make a certain PHP file the default file to load on the index page.
Thanks for the help!
Re: [Help] Default Page for Ajax to Load
load it on dom ready?
PHP Code:
$(document).ready(function() {
$.get("index.php", function(returnedData) {
$("#indexDiv").html(returnedData);
});
});
Re: [Help] Default Page for Ajax to Load
And it goes in the Javascript file? Cause I can't get it to work.
Re: [Help] Default Page for Ajax to Load
Re: [Help] Default Page for Ajax to Load
I believe I have it included now..
I'm not very skilled in javascript.
Re: [Help] Default Page for Ajax to Load
Got it, your script helped foxx, thanks man.