Bug Tracker

Custom Query (13852 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (19 - 21 of 13852)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Ticket Resolution Summary Owner Reporter
#12183 notabug Link not working [email protected]
Description

http://api.jquery.com/browser/

page not fount but it should be the API browser

#12362 notabug documentation: jQuery.ajax() and JSONP [email protected]
Description

Related: #8510

The above bug has been closed but the documentation is now misleading again for jQuery 1.8.0 (critically, 1.5+).

The documentation reads:

error This handler is not called for cross-domain script and JSONP requests.

timeout In Firefox 3.0+ only, script and JSONP requests cannot be cancelled by a timeout; the script will run even if it arrives after the timeout period.

Data types When data is retrieved from remote servers (which is only possible using the script or jsonp data types), the error callbacks and global events will never be fired.

Examples: http://jsfiddle.net/pte5g/14/

#12363 notabug Selector fails for top elements on $.ajax response [email protected]
Description

Hi!

I'm using $.ajax to partially update an HTML page. I request the whole page and use "success" callback to select the part I want to update:

$.ajax({
  url: "/this_same_page.jsp",
  success: function(data) {
    var new_content = $("#id_of_the_part_i_wanna_update", data);
    $("#id_of_the_part_i_wanna_update").html(new_content);
  }
});

That code always works unless "#id_of_the_part_i_wanna_update" refers to a top level tag into the page body.

For example, it will work if the response is something like:

<html>
<body>
  <div>
    <div id="id_of_the_part_i_wanna_update">New Content</div>
  </div>
</body>
</html>

But it won't if the "id_of_the_part_i_wanna_update" div becomes top-most, say:

<html>
<body>
  <div id="id_of_the_part_i_wanna_update">New Content</div>
</body>
</html>

It can be tested by "alert"ing the result of the selector:

$.ajax({
  url: "/this_same_page.jsp",
  success: function(data) {
    var new_content = $("#id_of_the_part_i_wanna_update", data);
    alert(new_content);
  }
});

In the later case, I mean when selecting a top-most element, jQuery 1.7.2 will return "null" whereas jQuery 1.8.0 will return "undefined".

It also fails if querying by class name:

$(".some_class", data)

or just by tag mane:

$(".some_class", data)

... as far as the selected tag is top-most into the page body.

Regards, Miguel Angel

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Note: See TracQuery for help on using queries.