https://mootools.lighthouseapp.com/projects/2706-mootools/tickets/835-requesthtml-documentation-is-missing-instructions-on-the-append-option
On Jan 21, 5:26 pm, Aaron Newton <[email protected]> wrote: > That is a supported feature; the documentation exclusion is an oversight. If > you wanted to be charitable, you could file a lighthouse ticket to that > effect... > > > > On Thu, Jan 21, 2010 at 2:40 PM, hairbo <[email protected]> wrote: > > According to the docs of Request.HTML, you can only "update" an > > element with the HTML returned by this AJAX call. I needed to append > > the HTML to an element rather than update, so I spent some time > > casting around for another solution. In desperation, I looked at the > > Mootools source, and found this: > > > Request.HTML = new Class({ > > > Extends: Request, > > > options: { > > update: false, > > append: false, > > evalScripts: true, > > filter: false > > }, > > > <snip> > > > So I tried this: > > > var myRequest = new Request.HTML({ > > url: [postURL], > > append: 'targetDiv', > > data: [myDataToPost], > > method: 'post', > > evalScripts: true > > }).send(); > > > ...and it worked. Does this mean I can rely on this feature, or is > > this going to be deprecated soon? > > > Thanks.
