BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TCPPWebBrowser Relative Form URLs

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web)
View previous topic :: View next topic  
Author Message
Tom
Guest





PostPosted: Sat Feb 10, 2007 8:17 am    Post subject: TCPPWebBrowser Relative Form URLs Reply with quote



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





PostPosted: Sat Feb 10, 2007 8:22 am    Post subject: Re: TCPPWebBrowser Relative Form URLs Reply with quote



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





PostPosted: Sat Feb 10, 2007 9:10 am    Post subject: Re: TCPPWebBrowser Relative Form URLs Reply with quote



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





PostPosted: Sat Feb 10, 2007 9:10 am    Post subject: Re: TCPPWebBrowser Relative Form URLs Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Web) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.