Hi,
I'm using JQuery to dynamically load a table when the user clicks a button. The code is this:
<span style="font-family: courier new,monospace;"><table class="properties"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <tr></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <th>Id</th></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <th>Name</th></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </tr></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <tbody id="objects"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <tr><td colspan='3'>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a class="button" href="#" </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
onclick="$('#objects').load('ajaxClassObjects.act?type=5&id=9'); return false;"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> >Load objects</a>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </td></tr> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
</tbody></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></table></span>
When the link is clicked, the table body content is replaced by the contents of
<span style="font-family: courier new,monospace;">ajaxClassObjects.act?type=5&id=9</span>. This call returns as contents:
<span style="font-family: courier new,monospace;"><tr><td>1</td><td>Test</td><td><a class='button' href='
selectObject.act?classId=9&id=1'>Edit</a></td></tr></span>
This works fine in Firefox, but in Internet Explorer I get the error "Unknown runtime error" when I click the link. The error seems to occur when putting the results in the page, since the server is called correctly and returns the results to the browser. I'm using the latest version of JQuery (compressed).
Can anyone help me with this?
Regards,
Jan Van den Bergh
_______________________________________________
jQuery mailing list
discuss@jquery.comhttp://jquery.com/discuss/