Bug Tracker

Modify

Ticket #9408 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

Ajax syncronously success function problem

Reported by: grinyad@… Owned by: grinyad@…
Priority: low Milestone: 1.next
Component: ajax Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

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:  http://forum.jquery.com/topic/ajax-syncronously-and-it-s-success-function-broblem#14737000002379212

Change History

comment:1 Changed 2 years ago by timmywil

  • Owner set to grinyad@…
  • Priority changed from undecided to low
  • Status changed from new to pending
  • Component changed from unfiled to ajax

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on  http://jsfiddle.net 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

comment:2 Changed 2 years ago by anonymous

comment:3 Changed 2 years ago by grinyad@…

  • Status changed from pending to new

dont want to load scripts syncronously from another domain

comment:4 Changed 2 years ago by timmywil

  • Status changed from new to closed
  • Resolution set to invalid

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."

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.