#785 closed bug (fixed)
addClass doesn't seem to work when in an ajax callback that returns nothing
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | 1.1 |
Component: | core | Version: | 1.1 |
Keywords: | css addclass | Cc: | |
Blocked by: | Blocking: |
Description (last modified by )
Consider the following code...
$.get(serviceURI,{'parm':'1'},function(data){ $(node).append(data).addClass("someclass"); })
The addClass method doesn't seem to work in 1.1b when the ajax response is blank. It works fine if the response returns a value. Also, it worked fine in 1.0.4 when the response was blank as well.
Change History (3)
comment:1 Changed 16 years ago by
Description: | modified (diff) |
---|
comment:3 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 1.1a → 1.1 |
This has been fixed in SVN. Doing .append("") caused an error to occur.
Note: See
TracTickets for help on using
tickets.
I can't confirm this. Can you provide a test page? Are you sure the callback is called at all? If the response is empty, the append call doesn't do anything, too.