Thread View: borland.public.cppbuilder.internet.web
4 messages
4 total messages
Started by Tom
Sat, 10 Feb 2007 02:17
TCPPWebBrowser Relative Form URLs
Author: Tom
Date: Sat, 10 Feb 2007 02:17
Date: Sat, 10 Feb 2007 02:17
23 lines
1563 bytes
1563 bytes
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
Re: TCPPWebBrowser Relative Form URLs
Author: Tom
Date: Sat, 10 Feb 2007 02:22
Date: Sat, 10 Feb 2007 02:22
10 lines
1168 bytes
1168 bytes
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
Re: TCPPWebBrowser Relative Form URLs
Author: Remy Lebeau (TeamB)
Date: Sat, 10 Feb 2007 03:25
Date: Sat, 10 Feb 2007 03:25
15 lines
1480 bytes
1480 bytes
"Tom" <tom@nospam.net> wrote in message news:45cd2b29@newsgroups.borland.com... > 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
Re: TCPPWebBrowser Relative Form URLs
Author: Tom
Date: Sat, 10 Feb 2007 04:32
Date: Sat, 10 Feb 2007 04:32
17 lines
1334 bytes
1334 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads