forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Browser Question

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Mar 04, 2004 11:13 am    Post subject: Browser Question Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Mar 04, 2004 11:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Mar 04, 2004 11:34 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Mar 04, 2004 11:45 am    Post subject: Reply with quote

Not much ideaa in that field but I think U R looking for a BHO
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Thu Mar 04, 2004 11:57 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Mar 04, 2004 1:43 pm    Post subject: Reply with quote

I was talking of Browser Helper Object
_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Thu Mar 04, 2004 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Mar 04, 2004 3:42 pm    Post subject: Reply with quote

I've made a webserver example as well, which can also parse form variables if I'm right. You can download it here:

http://www.vdsworld.com/index.php?page=download&fileid=188

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Mar 05, 2004 3:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Mar 05, 2004 3:41 pm    Post subject: Reply with quote

You can get the parameters sent after this line:

Code:
parse "%%htmlfile;%%parameters",%%htmlfile


%%parameters will now hold the value of the parameters entered in the form and can be parsed again into different variables...

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Fri Mar 05, 2004 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Mar 05, 2004 7:20 pm    Post subject: Reply with quote

I believe not, but I may be wrong... Embarassed
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group