473,808 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11576
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
26970
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, but how do I post to a page within a page? Thanks, Doug
3
3024
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' This page on the other hand has a form inside.
2
2879
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 the time. But every now and then, when I hit the back button, the browser suddenly thinks the Javascript created document in the IFrame is not from the same domain as the topmost document, and therefore I start getting "permission denied" errors...
1
1827
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 the data in a textarea and then call a sumbit(). It looks nice and works on IE and FF but *not* on opera. In opera, we cannot modify the content of an iframe for security reason. (as you can
4
2739
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". Ignoring the server side of things, does anyone see any holes with the following script? It seems to work, but I'd appreciate other eyes on it. Maybe a try/catch/finally wrapper of some sort to be sure the link is re-enabled in the face of an...
3
8817
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.... , The problem with this method, is that when the src url is too long (over 2400 characters) then the IE will not read it correctly.
3
3383
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 form, & then load new form in same frame. This is more like slide show of child forms. ASP button also has “Back” button which loads previously submitted form in same iframe. On click of “submit” button, it resubmits child form. This works...
23
6638
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 use it? IE5 or IE6? Thanks
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9195
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.