Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Post data in a web site
Message
From
10/08/2002 15:35:48
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00688340
Message ID:
00688356
Views:
32
>so, sorry i am insisting on this topic, but you know how it is when you think that it can be done the other way.
>
>for example, if i navigate to http://www.mysite.com?user=pablo
>
>then this is the same as sending data using the GET method of a form and with an ASP page i collect this data using Request.QueryString("user")
>
>but if i want to do the same, but sending using the POST method, there would be not way to implement it using anything else with this activex? i asked before if you know the use of the postdata argument in the NavigetTo method, because i thought it could be for sending this kind of data, unfortunatelly i do not have the documentation of this control so i don't know how to use it.
>
>Well...thank you very much for your help, i am already using the control the way you told me and it is working perfect.

The ActiveX control has nothing to do with that. It only serves as an object reference. Whatever relates to HTML, javascript, GET, Post, etc., is within what is supported as if you would be in a browser.

When you use a GET approach, there is no post. So, that means, there is no submit. A GET is simply a URL string. So, if you wish to move from one page to another page using a GET, then, all you have to do is to make sure you properly define the URL to call.

Once you have it defined, all you have to do is something like this:
<SCRIPT>
lcUrl='http://www.mysite.com?user='+Request.QueryString("user")
window.location.href=lcUrl
</SCRIPT>
This is mostly how I see it. You might have to adjust a few things but I believe you should be ok now to proceed using that approach.

I personally don't like GET. They don't provide as much flexiblity as a POST. But, if this is the only way for you to make it work, that should do it. Note here that I am using a javascript approach. So, it's the javascript that will do the work. If you wish to do it directly from a VFP code, you might try using the top reference and see if something similar to this would work:
loInternetExplorer.NavigateTo(loInternetExplorer.lcUrl)
I never tried that so you might have to tweak it a little bit in order to find the proper way to do it.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform