| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Mar 04, 2004 11:13 am Post subject: Browser Question |
|
|
Hi,
I have a question about the vds5 browser element or vdssurfx.
I want to get the real text (@dlgtext()) actually displayed in the browser. This means not the sourcecode of the page loaded at the beginning (like @dlgtext(browser1) actually does, but the real text.
This means if the user entered data into form fields I want to see the content.
My Background:
In my intranet application I want to make user-definable input forms for collecting several data. An administrator can define forms and user can input data into it. Because this has to work in windows an in the web based version we decided to use html based forms.
In the windows version I want to display the form inside a browser element. After the user has finished input he should press a save button. I cannot use something like a form submit button inside html because this would need a webserver on the client computer. My idea was a savebutton on the vds dialog and to parse the whole html page then.
Thanks for your help.
Bye, Fabian |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Mar 04, 2004 11:31 am Post subject: |
|
|
VDS Internet Suite 2 has an @htmltotext() function that strips the HTML tags out of the text supplied in the argument. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Mar 04, 2004 11:34 am Post subject: |
|
|
Hi Jules,
thanks for your answer.
The problem is, that the html source code does not include the data inserted into form fields.
Bye, Fabian |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Mar 04, 2004 11:45 am Post subject: |
|
|
Not much ideaa in that field but I think U R looking for a BHO _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Mar 04, 2004 11:57 am Post subject: |
|
|
Hi CodeScript,
what do you mean with BHO ?
I have one idea using JavaScript. A Script could check the form fields and refresh to an empty page with only the field contents. Then I should be able to get the content using @dlgtext(browser1).
I looked into tommys vdshtml.dll some minutes ago. There are some god features too. I can select the whole content and get the selected text. But formfields are not selected ;-(
It is not compatible to vds5 too. (Content is not showing on the dialog).
Bye, Fabian |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Mar 04, 2004 1:43 pm Post subject: |
|
|
I was talking of Browser Helper Object _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Thu Mar 04, 2004 2:17 pm Post subject: |
|
|
It occurs to me that the simplest solution might be to implement a tiny web server and make the forms post the data to localhost. This web server could then get the data. I don't know without trying, but it might even be possible to make the web server part of the application that is displaying the form.
It is easy to make a simple web server using VDS. My latest utility StopAds (http://www.tech-pro.co.uk/stopads.html) has a web server running as a tray icon. It is based on the Telnet server example that comes with the Internet Suite.[/url] _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Mar 05, 2004 3:35 pm Post subject: |
|
|
Thanks for all your help.
Skit, I looked into your example, but I don't know how it should get the form variables. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Fri Mar 05, 2004 5:07 pm Post subject: |
|
|
Hi Skit,
seems that the submit button does not do any action.
If I open the same form in Internet Explorer all works fine.
I know that the browser element "is" internet explorer.
Does the server application need to do something for submit ?
Bye, Fabian |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
|