Javascript function parameter undefined in IE
<p>When I pass a value to my function in internet explorer 8 it keeps returning as undefined. Is there anything that would be causing this behavior I should be looking for? Thanks!</p>

<pre><code>$(document).ready(function () {


    myFunction(true);

})


function myFunction(myValue){
    alert(myValue);
//IE8 displays undefined
//Other browsers display true
}
</code></pre>

<p>EDIT: I added a parameter to the function later on so the page I was calling seemed to be cached by IE, which called the function without setting the parameter.</p>

<p>I guess another question would be why is IE caching the page? I am using the jquery UI dialog to load the page that is calling the function. The script containing the function being called is loaded when the parent page is loaded.</p>
