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 

can i do that : webapplication.content:=

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb)
View previous topic :: View next topic  
Author Message
Pierre Marie
Guest





PostPosted: Tue Apr 26, 2005 12:57 pm    Post subject: can i do that : webapplication.content:= Reply with quote



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 Sad*************)

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





PostPosted: Tue Apr 26, 2005 9:56 pm    Post subject: Re: can i do that : webapplication.content:= Reply with quote



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





PostPosted: Thu Apr 28, 2005 12:05 pm    Post subject: Re: can i do that : webapplication.content:= Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb) 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.