 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tom Guest
|
Posted: Sat Feb 10, 2007 8:17 am Post subject: TCPPWebBrowser Relative Form URLs |
|
|
I'm having a problem with TCPPWebBrowser and submitting
forms that use relative URLS for the action= portion.
<form action="Captcha" method="get">
As soon as the form is submitted I get a Page Cannot Be
Displayed.
How can I correct this issue? I thought I could use the
OnBeforeNavigate2 method and update the URL so that
it contains the full URL, but as I read elsewhere, in the
archives, the URL cannot be changed on the fly. However, I
can't just re-navigate without having the form fields
re-populated.
The only other thing I could think of is to change the source
of the browser after the document loads.
Ideas?
Thanks,
Tom |
|
| Back to top |
|
 |
Tom Guest
|
Posted: Sat Feb 10, 2007 8:22 am Post subject: Re: TCPPWebBrowser Relative Form URLs |
|
|
To add on, I've noticed that since the method is set to Get,
the data from the form should be in the URL parameter
but it's not? PostData is also empty.
So being able to store what was entered into the form
fields appears to be out of the question.
TIA,
Tom |
|
| Back to top |
|
 |
Tom Guest
|
Posted: Sat Feb 10, 2007 9:10 am Post subject: Re: TCPPWebBrowser Relative Form URLs |
|
|
Remy,
Thanks for the reply.
I don't have any plugins installed, but you got me
thinking on what else could have affected the browser.
I was extracting the source code to file using the
code you've posted many times. Apparently accessing
it in that way messes with it somehow.
I switched to extracting the source to a stream and
it's now working flawlessly.
Regards,
Tom |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Sat Feb 10, 2007 9:10 am Post subject: Re: TCPPWebBrowser Relative Form URLs |
|
|
"Tom" <tom (AT) nospam (DOT) net> wrote in message
news:45cd2b29 (AT) newsgroups (DOT) borland.com...
| Quote: | I'm having a problem with TCPPWebBrowser and submitting
forms that use relative URLS for the action= portion.
|
TCppWebBrowser is just a wrapper for the IE ActiveX control. IE
handles relative URLs just fine. You don't need to do anything extra.
I just did a test and it worked fine. So the problem has to be caused
by something else. Maybe you have a plugin that is messing with the
URL, or a filewall/router that is blocking it.
Gambit |
|
| Back to top |
|
 |
|
|
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
|
|