ajaxLoadHtml

Allows you to run an AJAX request and load the result directly into a dom element.

<div class="blackborder" id="content"> </div> <script type="text/javascript">
function fillFromUrl() { ajaxLoadHtml("invoiceabstract.aspx?id=11074",null,"content"); } </script>

The DOM node can be passed as a string or element object.

o.global.ajaxLoadHtml(url,post,domElement,errorCallback)

Parameters

url
The URL to call to retrieve HTML data from

post
optional POST data or null. You can also pass FormData to pass all the page form content excluding ASP.NET's viewstate.

domElement
The DOM element that is to be updated. Can be passed as a string client ID or element object. Result assigns the innerHTML.

errorCallback
Optional callback if an error occurs

See also:

Class global


  Last Updated: 1/8/2008 | © West Wind Technologies, 2008