Skip to main content

Bug Tracker

Side navigation

#8194 closed bug (duplicate)

Opened February 07, 2011 01:30PM UTC

Closed February 08, 2011 10:32AM UTC

Last modified February 08, 2011 10:32AM UTC

Ajax code failure on Symbian WRT

Reported by: lars.eggert@gmx.net Owned by: lars.eggert@gmx.net
Priority: high Milestone: 1.5.1
Component: ajax Version: 1.5
Keywords: Cc: jaubourg
Blocked by: Blocking:
Description

The new Ajax code in 1.5 doesn't work inside the Symbian Web Runtime. (Whereas 1.4.4 and earlier worked fine.)

I have no means to really debug this, but Ajax requests immediately return with an error, with no request ever going out to the server.

Attachments (0)
Change History (8)

Changed February 07, 2011 01:58PM UTC by jitter comment:1

cc: → jaubourg
component: unfiledajax
owner: → lars.eggert@gmx.net
priority: undecidedhigh
status: newpending

Thanks for taking the time to contribute to the jQuery project by writing a bug report.

Can you somehow submit a reduced test case or provide information by other means e.g. detailing what exactly you are doing and what kind of ajax calls are being made.

Did you already try the jQuery WIP version as described in: How to report bugs to check if the bug hasn't already been fixed?

Changed February 07, 2011 02:07PM UTC by lars.eggert@gmx.net comment:2

status: pendingnew

I'm doing something very simple, i.e.,

$.ajax({
    type: "POST",
    url: "https://example.com/lars/cgi/example",
    complete: complete,
    cache: false,
    timeout: 30000
});

This worked fine in 1.4.4 and earlier. In 1.5, "complete" immediately fires with a status of "error", with no request being made to the server (nothing in the logs.)

No, I haven't tried the WIP version, but will do so now.

Changed February 07, 2011 02:11PM UTC by lars.eggert@gmx.net comment:3

The WIP version still has the bug.

Changed February 07, 2011 03:44PM UTC by jaubourg comment:4

Replying to [comment:2 lars.eggert@…]:

I'm doing something very simple, i.e.,
> $.ajax({
>     type: "POST",
>     url: "https://example.com/lars/cgi/example",
>     complete: complete,
>     cache: false,
>     timeout: 30000
> });
> 
This worked fine in 1.4.4 and earlier. In 1.5, "complete" immediately fires with a status of "error", with no request being made to the server (nothing in the logs.) No, I haven't tried the WIP version, but will do so now.

What does it output if you add:

error: function( jqXHR, status, error ) {
    console.log( error );
}

If it's "No Transport", then that's probably because you're trying to do a cross-domain request while Symbian WRT doesn't support CORS. The fix for this kind of situation is to set jQuery.support.cors to true before attempting any ajax request.

Changed February 07, 2011 03:51PM UTC by jitter comment:5

status: newpending

Changed February 08, 2011 06:43AM UTC by lars.eggert@gmx.net comment:6

status: pendingnew

I can confirm that setting

jQuery.support.cors = true;

fixes this regression.

Changed February 08, 2011 10:32AM UTC by jaubourg comment:7

milestone: 1.next1.5.1
resolution: → duplicate
status: newclosed

OK, so this is actually a duplicate. Thanks for having confirmed this, Lars.

Changed February 08, 2011 10:32AM UTC by jaubourg comment:8

Duplicate of #8122.