How to get instance of Boxy from within its contents?

Posted by Chaaosh on Stack Overflow See other posts from Stack Overflow or by Chaaosh
Published on 2010-05-29T22:01:10Z Indexed on 2010/05/29 22:02 UTC
Read the original article Hit count: 166

Filed under:
|

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

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins