Hey everyone, long time lurker – first time poster. I’m completely new to Javascript and all of it’s clicks and whistles (jQuery, AJAX, etc..). My question is, is it possible to call a function inside of the load event ? I need something to dynamically pull a cookie value each time the function is called. This is what I have:
[code]
function populateParentWindow() {
$(“#FTPContents”).load(“functions/testftp.php?HASH=”+Get_Cookie(“User”)+”&reload=<?php echo $_SESSION[‘currentdirectory’];?>”);
return false; // you’ll need this to ensure that you don’t actually have a clickthrough to your child window link.
}
That particular function updates a div after the file has been uploaded. I’m using SWFUpload, I’m sure most of you are familiar with it. I need the HASH to be a cookie value, but the value changes depending on the current directory the user is viewing. Can this be done ?