开发者

ajax loading problem

开发者 https://www.devze.com 2023-04-01 12:20 出处:网络
i had开发者_StackOverflow中文版 a theme changer in ajax made and it worked fine, i changed my domain and i cant figure out why it wont do what it did befor, the scripts i cant see anything that would

i had开发者_StackOverflow中文版 a theme changer in ajax made and it worked fine, i changed my domain and i cant figure out why it wont do what it did befor, the scripts i cant see anything that would make a domain name change affect it:

the website: chat-rage.com the script: chat-rage.com/Script_Files/slider.js the other script: chat-rage.com/Script_Files/jquery.min.js

the main nav bar that changes the themes is the pic that says network of themes

view sorce of page

and the menu that drops down is called "network of themes"

and it has the proper links on them it works, it ends up blank, it should change them to the applets like it did before.

any thoughts?


It looks like it may be a cross-domain issue. Ajax calls will not work if the source and target domains do not match. For instance, if your site is at chat-rage.com, but the ajax is loading from server1.bioprotege-inc.net, it's not going to work.

You'll want to look into using jsonp instead of plain ajax. If you are using jQuery (which it looks like you are), jsonP support is offered via its ajax methods.

0

精彩评论

暂无评论...
验证码 换一张
取 消