Following some help on here, I've got the jQuery modal popup working fine and the form within it too.
No I'm having trouble doing 2 things and I'm having some trouble understanding the documentation.
I've put in a link to close the window (in addition to the 'X' which works fine).
<a href="#" id="close">Close Window</a>
And my jQuery looks like:
// prevent the default action, e.g., following a link
But this doesn't seem to do anything..
Pleae could someone help me out with:
1. Getting this close link to work
2. How do I track the close event from the page that opened the dialog? (e.g. someone logs in via the popup, then instead of 'login' being displayed it changes to 'logged in as blah'
3. How can I automatically close the popup? (using the login example, once no errors etc have been found, close the window and track the close event to update the page (q2).
Huge thanks! Some code examples would be best as I find it hard to follow the jQuery UI site examples.