Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 6 of 6 total |
send parameters to a html page built with EWB |
Thu, Aug 23 2012 12:08 PM | Permanent Link |
Franck - Midi pyrénées - France Esteves Ducilia | I want to use EWB for a part of a web application.
For this I need to load the HTML page (built with EWB) with get vars. for example : http://www.mysite.com/ewb_page.html?var_get1=201&var_get2=2 how to retreive these get vars in EWB. |
Thu, Aug 23 2012 3:44 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Francky,
<< I want to use EWB for a part of a web application. For this I need to load the HTML page (built with EWB) with get vars. >> What you want is this property: window.location.search Be sure to include the WebDOM unit in your uses clause. The search property returns the parameters like this: ?var_get1=201&var_get2=2 So, you can get the parameters like this by copying the portion of the string past the ? with the Copy() procedure, and then use either the Split() function or load the string into a TStrings with the LineSeparator property set to '&'. If you have any other questions, please let me know. Tim Young Elevate Software www.elevatesoft.com |
Fri, Aug 24 2012 4:01 AM | Permanent Link |
Franck - Midi pyrénées - France Esteves Ducilia | Hi,
Tim, I have searched in the manual about WebDOM and I did'nt see any property search. Can you write me a small example to show how can i use the WebDOM Unit to get this information from the window.location.search property. many thanks. Franck. |
Fri, Aug 24 2012 4:14 AM | Permanent Link |
Uli Becker | Franck,
> I have searched in the manual about WebDOM and I did'nt see any property search. > Can you write me a small example to show how can i use the WebDOM Unit to get this information from the window.location.search property. Include WebDom in the uses clause of your main form. Then use this e.g.: MyParamString := window.location.search; window.alert(MyParamString); And you'll see the params like Tim described. Then you can parse MyParamstring and use the params like you need it. Uli |
Fri, Aug 24 2012 4:26 AM | Permanent Link |
Franck - Midi pyrénées - France Esteves Ducilia | Hi,
That works. It was very simple. many thanks for you help |
Fri, Aug 24 2012 3:54 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Franck,
<< I have searched in the manual about WebDOM and I did'nt see any property search. >> The WebDOM unit is mostly external interfaces and helper functions that are used by the framework, so it isn't documented at this point. Please see here for information on how the external interfaces work with respect to that unit: http://www.elevatesoft.com/manual?action=viewtopic&id=ewb1&topic=External_Interfaces There is an external window variable that is declared in the WebDOM unit, and that gets you access to the TWindow instance for the web browser. From there, you can access everything that you need from the web browser. 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, December 5, 2024 at 07:37 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |