Submitting from from Colorbox iframe to parent window

Posted by user281867 on Stack Overflow See other posts from Stack Overflow or by user281867
Published on 2010-04-20T06:51:14Z Indexed on 2010/04/20 6:53 UTC
Read the original article Hit count: 1145

Filed under:
|
|

I'm pretty new to colorbox and lovin-it. I've been trying to submit a form from Colorbox iframe to parent window but haven't had any luck. Any suggestions would be greatly appreciated! Here's my code.

$('#CustomizeBuy').click(function(event){ event.preventDefault(); $(this).attr('action','customize-order.cfm'); parent.location.submit(); parent.$.fn.colorbox.close(); });

or

$('#CustomizeBuy').click(function(event){ event.preventDefault(); document.QuickOrderForm.action ="customize-order.cfm"; $('#QuickOrderForm').submit(); parent.$.fn.colorbox.close(); });

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about colorbox