473,387 Members | 1,899 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

break out of an iframe during a form submission

I have a table inside an iframe that has paypal buttons in table
cells. Each button is a Form. (The table has to be in an iframe to
protect it from a containing CMS, which buggers the forms otherwise)

When I click on one of the buttons I go to paypal, but the resulting
PayPal page is still inside the iframe and too small, so you have to
scroll. I need to get out of the iframe but still go to paypal. What
is the javascript I'd use? I assume I need to place some extra
javascript inside the action= "" quote and chain it so it comes back
to the form submission after breaking out of the frame, but my head is
spinning thinking about it. Here is the form

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me.com">
<input type="hidden" name="item_name" value="Zillion Dollars">

etc

May 9 '07 #1
2 11532
Lee
cybervigilante said:
>
I have a table inside an iframe that has paypal buttons in table
cells. Each button is a Form. (The table has to be in an iframe to
protect it from a containing CMS, which buggers the forms otherwise)

When I click on one of the buttons I go to paypal, but the resulting
PayPal page is still inside the iframe and too small, so you have to
scroll. I need to get out of the iframe but still go to paypal. What
is the javascript I'd use? I assume I need to place some extra
javascript inside the action= "" quote and chain it so it comes back
to the form submission after breaking out of the frame, but my head is
spinning thinking about it. Here is the form

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me.com">
<input type="hidden" name="item_name" value="Zillion Dollars">
Nothing to do with Javascript.
Add the target="_top" attribute to the form tag.
--

May 9 '07 #2
>
Nothing to do with Javascript.
Add the target="_top" attribute to the form tag.

--
Yow, that was simple ;') thanks.

Jim

May 9 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: doug | last post by:
Hi, Just wondering how (or if it's possible) to post from my page to another .asp page within an iframe? Hopefully that question make sense? I know how to launch load a page with an iframe,...
3
by: Tom Szabo | last post by:
I know, they are bad, so please dont't just tell me that I should not use it... So, assume I have a page MyPage. MyPage has an IFrame in it with 'src=http://www.MyDomain.com/Test.php?id=24' ...
2
by: Robert Oschler | last post by:
I have an IFrame whose document is created completely by Javascript code at runtime. The document in the IFrame accesses Javascript functions in the top level document. This works fine most of...
1
by: acemtp | last post by:
Hello, Do you know a dynamic way to send 10kb of text or more using an iframe? I tried to do that with by creating, in javascript, a dynamic iframe, then create a form into this iframe and put...
4
by: kschneider | last post by:
Assume there's a form with it's action attribute all set to post to a URL, but without a submit control. Form submission is done via a link and I want to prevent the classic "double submit"....
3
by: chico | last post by:
Hello, I hope you can help me on this one. I would like to have an iFrame pointing to dynamic url that gets parameters, for example: iframe .... src="blabla?myparm1=par1&myparam2=par2.... , ...
3
by: CAG | last post by:
Hello, I have following scenario in my web application. I want to load different web forms in single iframe. Iframe in contained in an ASP page. ASP page has “Submit” button, which submits iframe...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.