Skip to main content

Bug Tracker

Side navigation

#9408 closed bug (invalid)

Opened May 23, 2011 07:46PM UTC

Closed May 24, 2011 12:38AM UTC

Ajax syncronously success function problem

Reported by: Owned by:
Priority: low Milestone:
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

hello...when i try to get scripts from another hosting dinamically and suncronously...success function is called after next scripts are executed...

first off all i thougth that this is not a bug and wrote here an example:

Attachments (0)
Change History (4)

Changed May 23, 2011 07:59PM UTC by timmywil comment:1

component: unfiledajax
owner: →
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on that reproduces the issue experienced to help us assess your ticket.

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

I'm not sure I understand the problem

Changed May 23, 2011 08:13PM UTC by anonymous comment:2

Changed May 23, 2011 08:21PM UTC by comment:3

status: pendingnew

dont want to load scripts syncronously from another domain

Changed May 24, 2011 12:38AM UTC by timmywil comment:4

resolution: → invalid
status: newclosed

This isn't possible. See the documentation for async:

"By default, all requests are sent asynchronously (i.e. this is set to true by default). If you need synchronous requests, set this option to false. Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. Note that synchronous requests may temporarily lock the browser, disabling any actions while the request is active."