This is a very basic problem that I can't seem to solve.
Code:
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
function out(lid) {
$.get("out.php", { id: lid } );
}
</script>
<a href="link.php" onclick="out(1)">test</a>
That doesn't work. Any solution?
Edit: Ok, so it seems that it's not getting enough time to send the request. Is there anyway of writing it like if($.get(blahblah).send()) { return true and set the onclick to return out(1)?
Last edited by Galaxian; 08-06-2008 at 05:45 PM..
|