Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 11 to 20 of 21 total |
Upload Image and Receive Image |
Wed, Mar 8 2017 5:13 PM | Permanent Link |
KimHJ Comca Systems, Inc | Tim Young [Elevate Software] wrote:
>>use a THTMLForm instance with a TFileComboBox instance for specifying the file to upload. Tim I was not aware of this method and I tried it out today, I which I had know about it I would have save hours. The only way to send a login and password with the Submit is to have TEdit controls on the THTMLForm or is there away so I can add them in code? KIm |
Wed, Mar 8 2017 6:01 PM | Permanent Link |
Walter Matte Tactical Business Corporation | Set the TEdit Visible := False - then set the values in code.
Walter |
Wed, Mar 8 2017 6:13 PM | Permanent Link |
KimHJ Comca Systems, Inc | Walter Matte wrote:
>>Set the TEdit Visible := False - then set the values in code. I placed three TEdit on the HTMLForm and on the module I only see this in the Request.RequestContent: [0] ----------------------7e13e6332705cc [1] Content-Disposition: form-data; name="FileCombobox1"; filename="C:\users\kim\myapppic\test.png [2] Content-Type: image/bmp [3] [4] BM?: No Edit. How would extract the information if I get it. Is there a way to extract the filename? Kim |
Wed, Mar 8 2017 6:26 PM | Permanent Link |
KimHJ Comca Systems, Inc | Removed the FileComboBox and I got the Edit added the FileComboBox back now I get them all.
Is the away to extract the value or do I have to go through each string and do a text search? Kim |
Wed, Mar 8 2017 6:54 PM | Permanent Link |
KimHJ Comca Systems, Inc | Found it: RequestContentParams
|
Wed, Mar 8 2017 8:32 PM | Permanent Link |
KimHJ Comca Systems, Inc | Is there any return value to the HTMLForm1.Submit?
I can't find any in the documentation. Kim |
Thu, Mar 9 2017 3:58 AM | Permanent Link |
Walter Matte Tactical Business Corporation | There is not exactly a return value. You can link a TBrowser component to the THTMLForm - it will receive the response. You can use the TBrowser.OnLoad event to triggger what you want to do next. Unfortunately you cannot programmatically interogate the contents returned to the TBrowser..... If you look at the example FormSubmit project: procedure TMainForm.SubmitButtonClick(Sender: TObject); begin ClearErrorMessages; ClearErrorControls; if CheckHTMLForm then begin IncidentHTMLForm.Output:=ResultsDialog.ResultsBrowser; // <<<<<<<<<<<<< IncidentHTMLForm.Submit; ResultsDialog.ResultsBrowser.tag := 1; ShowProgress('Doing Submit'); ResultsDialog.ShowModal; end else MessageDlg('Please correct the following input errors:'+CRLF+CRLF+ GetErrorMessages+CRLF+CRLF,'Input Errors',mtError,[mbOk],mbOk,AfterMessageDlg,True); end; Walter |
Thu, Mar 9 2017 3:02 PM | Permanent Link |
KimHJ Comca Systems, Inc | Walter Matte wrote:
>>There is not exactly a return value. >>You can link a TBrowser component to the THTMLForm - it will receive the response. You can use the TBrowser.OnLoad event to triggger what you want to do next. Unfortunately you cannot programmatically interogate the contents returned to the TBrowser..... Thanks Kim |
Thu, Mar 9 2017 3:22 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Kim,
<< Removed the FileComboBox and I got the Edit added the FileComboBox back now I get them all. Is the away to extract the value or do I have to go through each string and do a text search? >> Are you referring to getting the file names and their content on the server side ? If so, then that is what this property is for: http://www.elevatesoft.com/manual?action=viewprop&id=ewb2mod&product=rsdelphiwin32&version=10B&comp=TEWBServerRequest&prop=RequestMIMEParts When the EWB Web Server encounters form-data with MIME parts for the files, it automatically splits them out into this property and removes them from the "normal" textual properties like RequestContentParams. Tim Young Elevate Software www.elevatesoft.com |
Thu, Mar 9 2017 4:08 PM | Permanent Link |
KimHJ Comca Systems, Inc | Walter Matte wrote:
>>You can use the TBrowser.OnLoad event to triggger How will I see if I get a HTTP_OK or Error in the Onload of the Browser. Kim |
« Previous Page | Page 2 of 3 | Next Page » |
Jump to Page: 1 2 3 |
This web page was last updated on Wednesday, April 24, 2024 at 11:07 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |