Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 8 of 8 total |
Redirecting Form Submittal Output... |
Wed, Oct 24 2012 10:34 AM | Permanent Link |
John Taylor | From that section of the help manual...
"By default, the SubmitForm method will direct any response from the web server to a special hidden frame that Elevate Web Builder includes to suppress any output from the submittal. This is done to prevent the web browser from navigating away from the Elevate Web Builder application itself. If you want to display the output from the HTML form submittal process, or track when the submittal is completed, you can use the TForm or TPanel's FormOutputPage property to do so. This property allows you to specify a TPage control that will receive the web server response to the HTML form submittal. In addition, you can assign an event handler to the TPage OnLoad event to determine when the web server response has been loaded into the frame encapsulated by the TPage control." I am trying to build an order system that will then post the form variables to a paypal script, I can get that far but the resulting output in the FormOutpage (TPage) is : "This content cannot be displayed in a frame". If I click "Open this content in a new window" when I get the regular www.paypal.com page which is not what I want. How can I accomplish this or else just DO navigate away from the Elevate Web Builder application itself, which is actually what I want to do but according to the manual quote above EWB is determined not to allow that. The FormURL is 'https://www.paypal.com/cgi-bin/webscr' JT |
Wed, Oct 24 2012 1:23 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | John,
<< I am trying to build an order system that will then post the form variables to a paypal script, I can get that far but the resulting output in the FormOutpage (TPage) is : "This content cannot be displayed in a frame". If I click "Open this content in a new window" when I get the regular www.paypal.com page which is not what I want. >> Web sites can send back this header: X-Frame-Options: Deny which prevents IE from displaying the content in a frame in order to prevent "clickjacking": http://en.wikipedia.org/wiki/Clickjacking << How can I accomplish this or else just DO navigate away from the Elevate Web Builder application itself, which is actually what I want >> If you want to navigate to another location, just use something like this: uses WebDOM; procedure TTestForm.NavigateButtonClick(Sender: TObject); begin window.location.href:='http://www.mydomain.com/mydocument.html'; end; If you have any other questions, please let me know. Tim Young Elevate Software www.elevatesoft.com |
Wed, Oct 24 2012 2:48 PM | Permanent Link |
John Taylor | Tim,
I don't get a url to go to the output of paypal's script needs to be displayed in the browser as it is populated with variable from my form submission, it's basically a checkout page at that point. I don't need to stay within the EWB application at that point, all I want is that the user gets to the page generated by paypal's script. Am I going to be able to accomplish that with EWB ? John "Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message news:10CD34F9-9188-4727-8541-EB6AB1E1DD2A@news.elevatesoft.com... > John, > > << I am trying to build an order system that will then post the form > variables to a paypal script, I can get that far but the resulting output > in the FormOutpage (TPage) is : "This content > cannot be displayed in a frame". If I click "Open this content in a new > window" when I get the regular www.paypal.com page which is not what I > want. > >> > > Web sites can send back this header: > > X-Frame-Options: Deny > > which prevents IE from displaying the content in a frame in order to > prevent "clickjacking": > > http://en.wikipedia.org/wiki/Clickjacking > > << How can I accomplish this or else just DO navigate away from the > Elevate Web Builder application itself, which is actually what I want >> > > If you want to navigate to another location, just use something like this: > > uses WebDOM; > > procedure TTestForm.NavigateButtonClick(Sender: TObject); > begin > window.location.href:='http://www.mydomain.com/mydocument.html'; > end; > > If you have any other questions, please let me know. > > Tim Young > Elevate Software > www.elevatesoft.com > > > > |
Thu, Oct 25 2012 9:27 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | John,
<< I don't get a url to go to the output of paypal's script needs to be displayed in the browser as it is populated with variable from my form submission, it's basically a checkout page at that point. I don't need to stay within the EWB application at that point, all I want is that the user gets to the page generated by paypal's script. Am I going to be able to accomplish that with EWB ? >> You're not going to be able to put such content into a frame, so no, that means that using a TPage for directing the output is a no-go. But, again, this has nothing to do with EWB's "capabilities", rather it's a restriction put in place by IE and the PayPal web pages for security reasons. IOW, you couldn't do this with any type of app/page that tries to nest the PayPal checkout web pages inside of a frame. It simply can't be done. If the checkout page is the response to the form submittal, then there's really no way to do what you want in an EWB application. There's just no way to mix the two in a way that won't run up against that security restriction. The security restriction basically restricts you to using a normal page-oriented submittal form for the variables that triggers a page reload on submittal. If you have any other questions, please let me know. Tim Young Elevate Software www.elevatesoft.com |
Mon, Jan 18 2016 11:59 AM | Permanent Link |
David Westbrook | Tim,
Will you consider adding a Target property to THTMLForm with possible values of Output, Top, Blank? Output would be the default. If Output is selected, then the form output would appear in the selected Output control. If Blank is selected, then the form output would appear in a new browser window. If Top is selected, then the form output would appear in the current browser window, causing the EWB application to be unloaded. |
Mon, Jan 18 2016 4:04 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | David,
<< Will you consider adding a Target property to THTMLForm with possible values of Output, Top, Blank? Output would be the default. If Output is selected, then the form output would appear in the selected Output control. If Blank is selected, then the form output would appear in a new browser window. If Top is selected, then the form output would appear in the current browser window, causing the EWB application to be unloaded. >> Sure, I can see about adding that. Tim Young Elevate Software www.elevatesoft.com |
Tue, May 7 2019 7:47 AM | Permanent Link |
Walter Matte Tactical Business Corporation | Adding Target property to THTMLForm .... is there a possibility of this getting added? Walter Tim Young [Elevate Software] wrote: David, << Will you consider adding a Target property to THTMLForm with possible values of Output, Top, Blank? Output would be the default. If Output is selected, then the form output would appear in the selected Output control. If Blank is selected, then the form output would appear in a new browser window. If Top is selected, then the form output would appear in the current browser window, causing the EWB application to be unloaded. >> Sure, I can see about adding that. Tim Young Elevate Software www.elevatesoft.com |
Wed, May 8 2019 1:05 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Walter,
<< Adding Target property to THTMLForm .... is there a possibility of this getting added? >> Yes, but I need to squeeze in some time to do so. I need to do a 2.06 update to fix the TCalendar control soon, so I will see about adding it then. If not, then it will be added in 3.x. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, October 3, 2024 at 06:23 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |