Firstly, just to make sure you understand, the "load external link" feature refers to loading a page that's still on your own server, just that the syntax is external ("http://"). Due to security reasons Ajax doesn't let you load an offsite link (ie: yahoo.com).
With that said, the code:
Code:
<a href="javascript:ajaxpage(rootdomain+'/mydir/index.htm', 'contentarea');">test</a>
<div id="contentarea"></div>
would mean load:
Code:
http://www.mysite.com/mydir/index.htm
where "mysite.com" is your site's root domain. The reason for this wierd syntax is that your page may be accessed either with or without the "www" portion, and that matters to Ajax.
Bookmarks