jquery ajax success function(data) - no data.

Bug #666710 reported by Rustam Valiev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: firefox

I use jquery library 1.4.2.
In code:

function checkfav(ktype,id){
 var stat=$("div#ad"+ktype+"_star"+id).hasClass("ad_star");
 var action=(stat)?'remove_fav':'add_fav';
 $.ajax({
 type: 'GET',
 url: 'http://mydomen.ru/ajax.php',
 dataType:'text',
 data: action+'='+id,
 success: function(data){alert("success"+data);
 setfav(ktype,id,data);},
 error: function(data, error) {
 alert("Error " + error);
 }
 });
 }

it's alert "success", when ajax.php printed "{action:'set_fav':result:'ok'}".

In ie7 it's work perfectly.
Firebug not show content in query GET http://mydmone.ru/ajax.php

GET ajax.php?add_fav=230
http://mydomen.ru/ajax.php?add_fav=230
200 OK
mydomen.ru
7 B

It show size (7 B), but doesn't show content (it just empty)

By Russian.

пишу сразу по русски, может найдётся кто знающий.
В ФФ почему то не работает библиотека jquery (у меня 1.4.2).
Причём это явно не проблема самой библиотеки, так как при попытке запроса $.ajax(...) в логе firebug покзывается строка запроса к php скрипту, показывается что пришёл какой-то контент (показывается его размер), но при попытке просмотреть в firebug этот контент, показывается пустое место. Скорее всего из-за этого команда $.ajax(...) не работает.

Проверял в ie7, там всё на ура.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: firefox 3.6.11+build3+nobinonly-0ubuntu0.10.10.1
ProcVersionSignature: Ubuntu 2.6.35-22.33-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Oct 26 15:19:19 2010
FirefoxPackages:
 firefox 3.6.11+build3+nobinonly-0ubuntu0.10.10.1
 firefox-gnome-support 3.6.11+build3+nobinonly-0ubuntu0.10.10.1
 firefox-branding 3.6.11+build3+nobinonly-0ubuntu0.10.10.1
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
ProcEnviron:
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: firefox

Revision history for this message
Rustam Valiev (rustam6996) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul White (paulw2u) wrote :

We are sorry that we do not always have the capacity to review all reported bugs in a timely manner. You reported this bug some time ago and there have been many changes in Ubuntu and Firefox since that time.

Do you still see a problem related to the one that you reported using currently supported versions of Firefox and Ubuntu? Please let us know if you do and in which version of Ubuntu otherwise this report can be left to expire in approximately 60 days time.

Thank you for helping make Ubuntu better.

Paul White
[Ubuntu Bug Squad]

Changed in firefox (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for firefox (Ubuntu) because there has been no activity for 60 days.]

Changed in firefox (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.