[DUG] POSTDATA WebBrowser
Paul A Norman
paul.a.norman at gmail.com
Tue May 30 18:46:56 NZST 2006
Just in case any one revisits this,
The TembeddedWB component now housed on http://bsalsa.com/ has additional
components in the download including:
TIEDownload
IEDownload1.Method:=Post;
IEDownload1.PostData:='firstname=Per&lastname=Larsen';
IEDownload1.Go('http://localhost/postmon.asp');
On 24/05/06, Jeremy Coulter <vss at vss.co.nz> wrote:
>
> Hi.
> No FillForm wont work, I already have similar code I already wrote,
> because I dont know a value until its submitted, and hence why I need to add
> it on the end.
> I have found another way to handle it now tho.
>
> Jeremy
>
>
> -----Original Message-----
> From: "Paul A Norman" <paul.a.norman at gmail.com>
> To: "NZ Borland Developers Group - Delphi List" <delphi at ns3.123.co.nz>
> Date: Wed, 24 May 2006 16:08:57 +1200
> Subject: Re: [DUG] POSTDATA WebBrowser
>
>
>
> Dear Jeremy,
>
> The TembeddedWB component now housed on http://bsalsa.com/ handles things
> in this area very well.
>
> At worst you can first supress the SUBMIT and use a direct Navigate
> procedure supplying the POSTDATA
>
> Check extensive information http://bsalsa.com/ewb_methods2.html
>
> Among other available methds is the following (* FillForm)* under :
>
> http://bsalsa.com/ewb_methods1.html (shown below)
>
> Paul
> *FillForm*(FieldName: string; Value: string):This function allow you to
> auto insert details into a web page
> *procedure* TfrmMain.FillFormWithPersonalDetails1Click(Sender: TObject);
> *begin*
> EmbeddedWB1.Navigate(' http://edit.yahoo.com/config/eval_register?.
> done=http://groups.yahoo.com%2fgroup%2fdelphi-webbrowser%2f&.src=ygrp&.intl=us');
> *while* EmbeddedWB1.ReadyState <> READYSTATE_COMPLETE *do*
> *begin*
> Forms.Application.ProcessMessages ;
> * end;*
> *with *EmbeddedWB1* do*
> *begin*
> FillForm('login', 'Mozart');
> FillForm('passwd', 'Bethoven');
> FillForm('.fn', 'lol1');
> FillForm('.ln', 'lol2');
> FillForm('.ln', 'lol2');
> FillForm('.pw', 'lol3333');
> FillForm('.pw2', 'lol444');
> FillForm('.pw_a', 'lolypop');
> FillForm('.pwqa_a', 'lolypop');
> FillForm('.em', ' loly at pop.com');
> FillForm('.pc', '123456');
> FillForm('.secword', ':)');
> * end;
> end;*
>
>
>
> On 24/05/06, Jeremy Coulter <vss at vss.co.nz> wrote:
> >
> >
> > Hi All.
> > I am using an embedded TWebBrowser in an app, and I need to append some
> > data to the data about to be posted.
> > So, in the BeforeNavigate2 event, the POSTDATA is a VAR variable, and so
> > I decode the PostData, add my extra bit of data, then re-encode it (back to
> > a var array) but it seems to me that the PostData variable is NOT being
> > updated with my new data, as when the page posts the data to a webpage, the
> > new bit of data I add is not there.
> >
> > Anyone else tried to do this and found the same problem, and/or is there
> > a solution?
> >
> > Jeremy
> >
> > _______________________________________________
> > Delphi mailing list
> > Delphi at ns3.123.co.nz
> > http://ns3.123.co.nz/mailman/listinfo/delphi
> >
> >
> >
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060530/12aa729a/attachment.html
More information about the Delphi
mailing list