Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
TPlugin Params |
Mon, Nov 11 2013 11:41 AM | Permanent Link |
Eivind | All
I'm trying to use the TPlugin to display a PDF report I generate in the Delphi web server. I need to send some authentication params to the server and was looking at the Params property of TPlugin like I use on TServerRequest and TDatabase/TDataSet to authenticate. I have tried to set the Params in the property editor during design and in code, but none of it arrives to the server. Is this only for receiving params? As I understand, once I have set the MIME Type and URL it will send the request to the server for the PDF file. I did set the params before I set those properties. Thanks in advance for any help |
Mon, Nov 11 2013 11:59 AM | Permanent Link |
Matthew Jones | The TPlugin is for browser plugins I think. Sounds like you want a TPage which
makes a sub-page in your page. /Matthew Jones/ |
Thu, Nov 14 2013 3:18 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Eivind,
<< I'm trying to use the TPlugin to display a PDF report I generate in the Delphi web server. I need to send some authentication params to the server and was looking at the Params property of TPlugin like I use on TServerRequest and TDatabase/TDataSet to authenticate. I have tried to set the Params in the property editor during design and in code, but none of it arrives to the server. Is this only for receiving params? >> You're mixing different types of params. The Params property for the TPlugin control is for parameters used with the plugin only (autoplay, page to show, etc.). If you need to send authentication parameters along with a request and don't want to include them as URL parameters, then the only way to do so is via a TServerRequest component, which then poses a problem in terms of how to display the resulting PDF response data. However, you should be able to send back the response from the web server as a base64-encoded string, and then set the TPlugin URL like this: MyPlugin.URL:='data:application/pdf;base64'+MyServerRequest.ResponseContent; Data URLs are very useful for working with binary data as strings in the browser. EWB uses this technique itself in the CSS that it emits to keep all of the theme images in a single style sheet. If you have any other questions, please let me know. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, April 18, 2024 at 08:02 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |