(function ($) {

Drupal.behaviors.modalFrameCheckout = function(context) {

  $('form#uc-catalog-buy-it-now-form-134').submit(function(e){  
	var modalFrameOptions = {
		url: "cart/checkout",
		width: 800,
		height: 400
	};
	Drupal.modalFrame.open(modalFrameOptions);
	return false;
  });
};

})(jQuery);

This loads the checkout page in a modal frame, but I can't figure out a way to send the post information. If I have it return true the entire page goes.
Any examples of something like this in any docs or modules online?

Comments

technikh’s picture

+1 subscribing..

dsnopek’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

I'm afraid this isn't possible given the design of modalframe. You have to be either (1) already be in the modalframe and submit there, or (2) be able to pass the necessary data to modalframe in the GET arguments.