If you're rendering the button on-the-fly (as part of your form) be sure
to either a) hook up that button click handler after the button is
rendered or b) use the event delegation approach I showed in my example.
It sounds like your click is not firing now, probably because the click
isn't actually getting bound to the button.
- Jack
Dave Maharaj :: WidePixels.com wrote:
I have completely removed the uRec function for now and changed to a regular
button, no submit.
<input type="button" value="Button"/>
</form>
<script type="text/javascript">
$("button").click(function () {
var form_id = '#123123123';
//var form_id = $this.closest('form'); // get the recordId
alert(form_id);
//uRec(form_id);
return false;
//or return false; both do nothing
})
</script>
But not even an alert now. Man ohh man
Thanks again for your ideas.
Dave