Sending from Colorbox iframe to parent window

I'm new to colorbox and lovin-it. I tried to submit forms from Colorbox iframe to parent window but no luck. Any suggestions would be appreciated! Here is 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();
}); 

      

+2


a source to share


1 answer


Is the iframe of the same domain as the window? those. localhost & localhost poo.com & poo.com



As far as I've been experimenting, you cannot execute Javascript in an iframe from a different domain for security reasons.

0


a source







All Articles