Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Webbrowser control - save postdata in beforenavigate2
Message
From
04/10/2005 09:46:48
 
 
To
04/10/2005 06:26:01
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01055594
Message ID:
01055830
Views:
10
>>Greetings,
>>
>>I need help accessing the postdata parameter in the beforenavigate2 event in the web browser control. Apparantly it is a "safearray" datatype that is not native to FoxPro. In all my experiments the data just appears as .NULL. inside FoxPro. Or perhaps breaking into debug mode inside the event is messing it up.
>>
>>My goal is simple. Record/save the data a user fills out in a web form so that the data can be used later to automate the process.
>>
>>If anyone out there can come up with a solution it would be very much appreciated!
>>
>>Greg
>
>Greg,
>I tried with postdata before to no success. When form has 'POST' method it should be filled but then BeforeNavigate2 is not fired(???). Check Re: Using HTML code in Visual Fox Pro Thread #1050590 Message #1050602 Form uses 'GET' there. I couldn't succeed with POST.
>Cetin

Thanks for your help. I'm definitely starting to consider alternatives. Unfortunately for my solution I can't predict what web site the engineers will browse to or how many forms they may need to fill out along the way. For example an engineer looking for pipe fittings may have to logon, navigate to the correct category, then fill out a form to get a list of results.

The goal of my project is to put the engineer right into the results page. Right now they are spending a huge amount of time doing the same tasks over and over again to get there. Then once they are on the right pages my interface will allow them to select text, save pictures, and links and to build a structured design document. Without being able to have the system automate the time consuming navigation we will miss one of the primary goals of the project.

So if the postdata is pretty much hopeless I'm starting to consider using an ASP page as a proxy as follows:

- Load the web page into webbrowser control
- If it contains any method="post" forms then parse out the action=[url] with my asp page
- save the parsed URL into a hidden tag on the form that will be posted
- When the user posts the page goes to my ASP proxy where I can grab up the post data easily, save it and then redirect the user to the url I have saved in the hidden variable.

It's a completely different solution and I hate having to resort to a hack like that unless I really have to.
Plus I'm probably then going to run into problems with cookies and other session related problems from using the proxy.

Thanks again for your help. It's starting to look like one of those projects I'm going to have to outsource.
Previous
Reply
Map
View

Click here to load this message in the networking platform