-
Running Javascript onload inside AJAX
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.
Cheers
Ian
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks