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" <[EMAIL PROTECTED]>
To: "NZ Borland Developers Group - Delphi List" <[email protected]>
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=""> );
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', '
[EMAIL PROTECTED]');
     FillForm('.pc', '123456');
     FillForm('.secword', ':)');
 
 end;
end;


 
On 24/05/06, Jeremy Coulter <[EMAIL PROTECTED]> 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
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi



_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to