How to get instance of Boxy from within its contents?
- by Chaaosh
Hi
How can i access the Instance of Boxy within its contents. I have a Link that loads a form in Boxy. Its displaying the boxy popup and its working fine. Now i want to access the instance of the boxy from form submit function. How can i do this. I have the code below.
$('a.boxy').boxy({
modal:true,
show:true,
title:' ',
closeable:true,
center:true,
});//boxy
link is loading the form
<form name="subscribe" >
name <input type="text" name="name" value="' /> <br />
email <input type="text" name="email" value="' /><br />
<input type="submit" name="submit" value="subscribe" onclick="submitform()" />
</form>
<script>
function submitform()
{
// here i want to access the boxy instance
// also here i want to refer it and close it
}
</script>
Kind suggest