ajax on parked domain
Posted
by
Daryl
on Stack Overflow
See other posts from Stack Overflow
or by Daryl
Published on 2011-01-12T02:33:06Z
Indexed on
2011/01/12
2:53 UTC
Read the original article
Hit count: 177
I'm currently writing this jquery and for some reason (I don't know why) it works on the normal domain, but on the parked domain it doesn't.
Normal domain - http://www.thefinishedbox.com Parked domain - http://www.tfbox.com
If you scroll down to the colony news and hit the click me link you'll see it will retrieve data via jquery ajax on the Normal domain, but on the parked domain it wont.
Here is the jQuery code I have so far (its pretty standard):
$(function() {
$.ajaxSetup({
cache: false
});
var ajax_load = "Load me plz";
// load() functions
var loadUrl = "http://thefinishedbox.com/wp-content/themes/tfbox-beta/test.php";
$('.overlay').css({
opacity: '0'
});
$('.toggle').click(function() {
$('.overlay').css({
display: 'block'
}).animate({
opacity: '1'
}, 300);
$(".overlay .content").html(ajax_load).load(loadUrl);
return false;
});
$('.close').click(function() {
$('.overlay').animate({
opacity: '0'
}, 300);
$('.overlay').queue(function() {
$(this).css({
display: 'none'
});
$(this).dequeue();
});
return false;
});
I'm a complete noob when it comes to ajax so any help would be massivly appreciated.
© Stack Overflow or respective owner