Ticket #9736 (closed bug: wontfix)
better load
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | manipulation | Version: | 1.6.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
please, implement variation of $(elem).load (url, data, complete)
$(elem).load (fragment, url, data, complete) $(elem).loadAndInsert (fragment, url, data, complete) $(elem).loadAndAppend (fragment, url, data, complete) $(elem).loadAndInsertBefore (fragment, url, data, complete) $(elem).loadAndInsertAfter (fragment, url, data, complete)
$(elem).loadInnerHtml (fragment, url, data, complete) $(elem).loadInnerHtmlAndInsert (fragment, url, data, complete) $(elem).loadInnerHtmlAndAppend (fragment, url, data, complete) $(elem).loadInnerHtmlAndInsertBefore (fragment, url, data, complete) $(elem).loadInnerHtmlAndInsertAfter (fragment, url, data, complete)
where fragment is passed as parameter, not inside url and whe have an option to load innerhtml of frament and variations for insert, append, etc...
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Thanks for taking the time to contribute to the jQuery project! Adding methods with such specificity would not be practical. All of the different situations can be handled with $.ajax (or $.get).