[jQuery] loading content and using events

2006-12-01 Thread roykolak
Hello everybody, This question involves the following situation... The main html page has container divs that are blank. When the page loads, a javascript function called 'pageLoad();' is called. This function fills a blank div called 'top' with a form. It does this via

Re: [jQuery] loading content and using events

2006-12-01 Thread Blair McKenzie
You need to put this $(#submission_form).submit(function() { alert('click'); }); in the callback for the load. The order of things happening at the moment is probably something like: 1. Request form with .load 2. Attach event to all #submission_form's (of which there are none at the moment) 3.

Re: [jQuery] loading content and using events

2006-12-01 Thread Solid Source
Try adding the submit handler into the loaded code so that it is evaluated when the form is parsed. If this is not the answer can you plz submit all of your related js? Blair McKenzie-2 wrote: You need to put this $(#submission_form).submit(function() { alert('click'); }); in the