Modify ↓
Ticket #216 (closed enhancement: fixed)
$.ajax: Evaluate JS for "html" dataType like load()
| Reported by: | joern | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | ajax | Version: | |
| Keywords: | vwbpg rmlxwne | Cc: | vwbpg rmlxwne |
| Blocking: | Blocked by: |
Description
"I also found, that the only way to load an html fragment with having script blocks evaluated is to use the load() method. Shouldn't that work with $.ajax and a dataType of "html" as well?. It seems to me, that people tend to use $.ajax more and more."
Change History
comment:1 Changed 7 years ago by anonymous
- Status changed from new to closed
- Resolution set to invalid
comment:2 Changed 7 years ago by joern
- Status changed from closed to reopened
- Resolution invalid deleted
OK, there is the "html" dataType, but evaluation of JS like it is done inside load() is not happening.
comment:3 Changed 7 years ago by joern
- Summary changed from Add "html" dataType for $.ajax to $.ajax: Evaluate JS for "html" dataType like load()
comment:4 Changed 7 years ago by crmwfopu@…
- Cc vwbpg rmlxwne added
- Keywords vwbpg rmlxwne added
- Summary changed from $.ajax: Evaluate JS for "html" dataType like load() to vwbpg rmlxwne
ybvi hulnefo rhysfipd fucyitmo isytb osvhrc wjszg
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.
