live function undefined if I call it
<p>I have a live function which I also want to be able to call. I realize I cannot call it but I am not sure how to approach this. When I try to call the live function it comes up as undefined. Anyone have any suggestions on how to handle this? I want to be able to call the function without clicking the #open-window link and pass it different information to open a window when different circumstances occur. Thanks in advance for any assistance.</p>

<pre><code>$('#open-window').live('click', function openwindow() {
var user=$(this).attr('data-name');
//...and then append some information
});

openwindow(somevariable);
</code></pre>
