 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Pierre Marie Guest
|
Posted: Tue Apr 26, 2005 12:57 pm Post subject: can i do that : webapplication.content:= |
|
|
Hello,
I am wondering if i can do that: (i don't think so , there is an error in
ThreadProc fn)
How could i do this in a better way ?
on an IWbtn click, i have to fill an asp page :
procedure TIWForm1.IWButton1Click(Sender: TObject);
var
postdata:Tstringlist;
Begin
PostData:= TStringList.Create;
Try
Postdata.Clear;
PostData.Add('prix=111');
webapplication.Response.ContentType:='text/html';
webapplication.Response.Content:=idHTTP1.Post('http://localhost/temp/call_request.asp',postData);
webapplication.Response.SendResponse;
webapplication.terminate;
finally
FreeAndNil(PostData);
End;
end;
Error here *************)
function ThreadProc(Thread: TThread): Integer;
var
FreeThread: Boolean;
begin
{$IFDEF LINUX}
if Thread.FSuspended then sem_wait(Thread.FCreateSuspendedSem);
{$ENDIF}
try
if not Thread.Terminated then
try
Thread.Execute; **************************
except
Thread.FFatalException := AcquireExceptionObject;
end;
--
Courtoisement
Pierre-Marie PETIT
[email]pm (AT) nst (DOT) fr[/email]
03 20 06 63 94
|
|
| Back to top |
|
 |
Christina Androne Guest
|
Posted: Tue Apr 26, 2005 9:56 pm Post subject: Re: can i do that : webapplication.content:= |
|
|
Pierre Marie wrote:
| Quote: | Hello,
I am wondering if i can do that: (i don't think so , there is an
error in ThreadProc fn)
|
You're trying to redirect to a different page outside your IW app? If
so please take a look at WebApplicationTerminateAndRedirect and
WebApplication.Redirect routines.
HTH,
Christina Androne
|
|
| Back to top |
|
 |
Pierre Marie Guest
|
Posted: Thu Apr 28, 2005 12:05 pm Post subject: Re: can i do that : webapplication.content:= |
|
|
Thanks
"Christina Androne" <christina (AT) atozedsoftware (DOT) com> a écrit dans le message
de news: [email]426eb8f8 (AT) newsgroups (DOT) borland.com[/email]...
| Quote: | Pierre Marie wrote:
Hello,
I am wondering if i can do that: (i don't think so , there is an
error in ThreadProc fn)
You're trying to redirect to a different page outside your IW app? If
so please take a look at WebApplicationTerminateAndRedirect and
WebApplication.Redirect routines.
HTH,
Christina Androne
|
|
|
| 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
|
|