bklurchio
05-09-2007, 11:58 AM
Hi All,
I'm trying to do the equivalent of onload within an AJAX generated area and I don't seem to be able to make it work a code example could look like:
'--- code loaded into <div> via AJAX
<script type="text/javascript">
window.onload = alert('Performing task');
</script>
The content of the script would call a function in order to set the default contents in another <div> until the user chooses alternative content via the nav (loaded in the the first <div> - also containing the quoted script).
I hope this makes sense, it's doing my head in. :confused:
Cheers
Ian
I'm trying to do the equivalent of onload within an AJAX generated area and I don't seem to be able to make it work a code example could look like:
'--- code loaded into <div> via AJAX
<script type="text/javascript">
window.onload = alert('Performing task');
</script>
The content of the script would call a function in order to set the default contents in another <div> until the user chooses alternative content via the nav (loaded in the the first <div> - also containing the quoted script).
I hope this makes sense, it's doing my head in. :confused:
Cheers
Ian