Link to home
Start Free TrialLog in
Avatar of Seveni
Seveni

asked on

Passing form data to an IFRAME that loads another site?

Here's my situation.  I have a consumer product site that has its own e-commerce system.  However, the client uses Yahoo! Store for their shopping cart.  When the customer needs to view their shopping cart by clicking the 'shopping cart' link I just load up the Yahoo! Store shopping cart into an IFRAME.

Right now when a user clicks 'Add to Cart' I have a form with hidden fields that passes the necessary form data to Yahoo! to populate this shopping cart.  The problem is that I need to be able to pass that form data to the IFRAME that I display the Yahoo Store shopping cart in, otherwise the shopping cart pops up in the main browser window taking the users away from my clients site.

Any idea on how I can do this?

Best,
Seveni
Avatar of IQUITIT
IQUITIT

cant you do this with the target attribute?

target=frame I display the Yahoo Store shopping cart in
Avatar of Seveni

ASKER

The problem is the IFRAME I am hitting is in another page.  Here's a bit of a better description.

ProductPage.asp -> User clicks 'Add To Cart'
ProductPage.asp -> Pass form values to Yahoo Shopping Cart
(What happens now)
Yahoo Shopping Cart opens in full screen replacing ProductPage.asp
(What I need to happen)
ProductPage.asp -> Pass form values to ShoppingCart.asp targeting the IFRAME in ShoppingCart.asp which loads Yahoo shopping Cart.

Is this possible?
ASKER CERTIFIED SOLUTION
Avatar of IQUITIT
IQUITIT

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
did my answer not work?
It is time to clean this abandoned question up.

I am putting it on a clean up list for CS.

<recommendation>
points to IQUITIT

</recommendation>

If anyone participating in the Q disagrees with the recommendation,
please leave a comment for the mods.

Cd&
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange