.load() - weird behaviour? [solved]
I did a
website for my son (sorry all non-chelsea fans
) and used the opportunity to practice some more jQuery.
I tried an idea I thought would be cool. Using the .load function with a filter I sucked in the stats for players from a totally different site. This is the part of the code that performs that function:
-
$("#profile p").load("" + playerURL + " .stats").fadeIn("slow");
The playerURL is a variable that is set from the href value of the link that is hovered over. .stats is the common class given to the stats table on the website.
It all worked fine in safari offline (from my desktop) and I was feeling pretty happy with the result. But as soon as I uploaded it, it stopped working - and it was then I noticed it didn't work in firefox and on win ie too.
Any reason for the weird behaviour? I have no idea where to start to debug or workout why it works offline in safari (mac) only!