Функция jQuery $ .get () успешно выполняется с 200, но не возвращает содержимого в Firefox
Я пишу свой первый кусочек jQuery, и у меня возникла проблема сjQuery.get()
, Я так называю;
$.get(url, updateList);
где updateList определяется так;
function updateList(data)
{
if (data)
{
$('#contentlist').html(data);
}
else
{
$('#contentlist').html('<li><a href="#" id="synclink">Nothing found. Try again</a></li>');
}
}
Функция запускается, иupdateList
называется. Он отлично работает в Internet Explorer. Однако в Firefoxdata
Параметр всегда пуст. Я ожидаю, что он будет заполнен содержанием веб-страницы, которую я передал в качестве URL. Я использую это неправильно?
Заметки;
in Firebug, I've enabled the Net panel, and I get the request showing up. I get a200 OK
. The Headers
tab looks fine, while the Response
and HTML
panels are both empty.
The page I'm trying to download is a straight HTML page -- there's no problem with server code.
The page with JavaScript is local to my machine; the page I'm downloading is hosted on the Internet.
I've tried checking the URL by copy-pasting it from my page into the browser -- it happily returns content.
The error occurs even in Firefox Safe Mode -- hopefully that rules out rogue addins.