try with force function outside $...ready
Feijó
----- Original Message -----
From: "tlob" <[EMAIL PROTECTED]>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, January 15, 2008 4:11 PM
Subject: [jQuery] simple newbie js function problem...
script type="text/javascript">
$(document).ready(function(){
function force(){
doStuffHere...}
$('#joda').click(function () {
$('img').show();
setInterval('force()',500);
});
});
</script>
if I click #joda I got the Error: force is not defined.
hmmm.
I have some basic misunderstanding here...
THX in advance!
cheers
tlz