First I tried it like this:
onclick="javascript:completeAHAH.ahah('null.htm', 'menu', '', 'GET',
'', this);javascript:completeAHAH.ahah('null.htm', 'gadgets', '',
'GET', '', this);"
That worked Wonderfully in internet explorer, with a 100% success rate
for change, but did not work in firefox at all. firefox just sat there
saying loading data... on one of the two div's
Then I thought, well hell. setting on focus should have the same
results so i did this:
onclick="javascript:completeAHAH.ahah('null.htm', 'menu', '', 'GET',
'', this);" onfocus="javascript:completeAHAH.ahah('null.htm',
'gadgets', '', 'GET', '', this);"
This sort of works in both browsers. It tends to glitch a LOT and
doesn't always show what it needed.
I also tried making a new function (think this is about what i put):
clearit(id1, id2) {
$('id1').completeAHAH.ahah('null.htm', 'menu', '', 'GET', '',
this);
$('id2').completeAHAH.ahah('null.htm', 'gadgets', '', 'GET', '',
this);
}
but alas, that did not work either.
Again, my website is currently a live example:
http://www.thesmartass.info
Thanks
James
That works... don't know why it doesn't without. Here is what I did to
get it to work:
<script type="text/javascript">
function clearmenu()
{
completeAHAH.ahah('null.htm', 'menu', '', 'GET', '', this);
}
function cleargadget()
{
completeAHAH.ahah('null.htm', 'gadgets', '', 'GET', '', this);
}
function clearboth()
{
clearmenu();
setTimeout('cleargadget();',1);
}
</script>
<a href="#" onclick="clearboth();">
Thanks
James
;-)
Daniele