This project is archived and is in readonly mode.

#260 ✓invalid
Rick Hopkins

Update TD Content

Reported by Rick Hopkins | July 24th, 2008 @ 01:56 PM | in 2.0 (closed)

I can't get this script to work...'td.QuickForm-Body').load(this.options.url);

Works fine in Firefox3. Does not work at all in Internet Explorer 6+.

I had to change the code to...

new Request.HTML({url: this.options.url, onComplete: function(r1, r2,

r3, r4){'td.QuickForm-Body').set('html', r3);


to get it to work in both IE and FF. Can't even use the 'update'

property in the request because that doesn't work either. I have to

manually update the content onComplete with the responseHTML value.

Anyone have any ideas?

I have attached my full script...

Comments and changes to this ticket

  • Rick Hopkins

    Rick Hopkins September 19th, 2008 @ 06:41 PM

    Ran into this problem again and found something interesting to add. If the html that was being inserted contained a "table" tag element, it wouldn't show up and I have to use the work around above. However if no tables were in it, the content displays perfectly. So for some reason tables are not being brought in.

  • Jan Kassens

    Jan Kassens September 19th, 2008 @ 08:01 PM

    • State changed from “new” to “invalid”

    tables, tr, tbody, tfoot, thead, select cant be updated using innerHTML in IE, we'll include a patch for that in the next version. for help requests please visit the google group "mootools-users" or the unofficial mootools forum @

  • Rick Hopkins

    Rick Hopkins September 19th, 2008 @ 08:06 PM

    The table itself isn't being updated. It is a table element being placed inside another element. I have a div that is the container being updated. If I do a Request.HTML({url: 'somepage.php', update: $('content')}).get(); and the response contains tables, they won't get placed into the content div.

  • Jan Kassens

    Jan Kassens September 19th, 2008 @ 08:09 PM

    • Assigned user changed from “Thomas Aylott” to “Jan Kassens”
    • State changed from “invalid” to “hold”

    hmm, strange

  • Jan Kassens

    Jan Kassens September 19th, 2008 @ 10:04 PM

    • State changed from “hold” to “invalid”

    i guess its because the html isn't valid xhtml. sorry for the inconvenience we'll make it nicer with 1.3

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins



Referenced by