mirghani
asked on
How to include?
I'am using CGI App and using a Page Prducer Component to be linked with my Html Pages,the Pb is how to include Delphi Code with Html code,for e.g i tried to place an html code in:
PageProducer.HtmlDoc.Text and i want to the Response to be:
Response.content:=PageProd ucer.HtmlD oc.Text;
i found that i need to call:
Response.Cookies to be displayed?????
i think u got it?????
so what is the Mechanism!
Regards
Meer
PageProducer.HtmlDoc.Text and i want to the Response to be:
Response.content:=PageProd
i found that i need to call:
Response.Cookies to be displayed?????
i think u got it?????
so what is the Mechanism!
Regards
Meer
ASKER
Adjusted points from 50 to 100
ASKER
hi simonet,
sorry for delay in replying,
i'am using Table Producer component,
i want to display my table with specific or custom characteristics of display:
such as a hyper link appear in specific coloumn,or in the footer to display
a variable string.
thanks .
Regards Meer.a.a
sorry for delay in replying,
i'am using Table Producer component,
i want to display my table with specific or custom characteristics of display:
such as a hyper link appear in specific coloumn,or in the footer to display
a variable string.
thanks .
Regards Meer.a.a
ASKER
hi simonet,
sorry for delay in replying,
i'am using Table Producer component,
i want to display my table with specific or custom characteristics of display:
such as a hyper link appear in specific coloumn,or in the footer to display
a variable string.
thanks .
Regards Meer.a.a
sorry for delay in replying,
i'am using Table Producer component,
i want to display my table with specific or custom characteristics of display:
such as a hyper link appear in specific coloumn,or in the footer to display
a variable string.
thanks .
Regards Meer.a.a
I would have thought you can use the OnGetText event handler of the appropriate TField to solve this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
hi geo,
if i want the following string to appear at the footer of my table what should i do:
Request.CookieFields.value s['login'] ;
and i'am using (DatasetTableProducer)?
Thanks.
Regards
Meer
if i want the following string to appear at the footer of my table what should i do:
Request.CookieFields.value
and i'am using (DatasetTableProducer)?
Thanks.
Regards
Meer
ASKER
hi geo,
if i want the following string to appear at the footer of my table what should i do:
Request.CookieFields.value s['login'] ;
and i'am using (DatasetTableProducer)?
Thanks.
Regards
Meer
if i want the following string to appear at the footer of my table what should i do:
Request.CookieFields.value
and i'am using (DatasetTableProducer)?
Thanks.
Regards
Meer
ASKER
hi geo,
if i want the following string to appear at the footer of my table what should i do:
Request.CookieFields.value s['login'] ;
and i'am using (DatasetTableProducer)?
Thanks.
Regards
Meer
if i want the following string to appear at the footer of my table what should i do:
Request.CookieFields.value
and i'am using (DatasetTableProducer)?
Thanks.
Regards
Meer
ASKER
sorry for repitition miss control happened.
waiting for u:-)
waiting for u:-)
ASKER
sorry for repitition miss control happened.
waiting for u:-)
waiting for u:-)
Hi Meer,
I'm talking about DataSetTableProducer too. This is the same using QueryTableProducer. The source is different only (Query instead of Table).
....
{ Clear the previous footer if any }
DataSetTableProducer1.Foot er.Clear;
{ Add a string to the footer }
DataSetTableProducer1.Foot er.Add(Req uest.Cooki eFields.Va lues['logi n']);
....
The footer is a set of HTML commands.
If the response HTML page contains the table only it is a good idea to place HTML header commands in the TableProducer header and closing HTML tags in the TableProducer footer. For example:
-------
DataSetTableProducer1.Head er.Clear;
DataSetTableProducer1.Head er.Add('<H TML><HEAD> <TITLE>');
DataSetTableProducer1.Head er.Add('Th is is the page title string');
DataSetTableProducer1.Head er.Add('</ TITLE></HE AD>');
DataSetTableProducer1.Head er.Add('<B ODY>');
DataSetTableProducer1.Foot er.Clear;
DataSetTableProducer1.Foot er.Add('<H R><STRONG> ' + Request.CookieFields.Value s['login'] + '</STRONG>');
DataSetTableProducer1.Foot er.Add('</ BODY></HTM L>');
{ Call the TableProducer' Content method which activates generating of the header, table and footer HTML representation }
Response.Content := DataSetTableProducer1.Cont ent;
--------
Regards, Geo
I'm talking about DataSetTableProducer too. This is the same using QueryTableProducer. The source is different only (Query instead of Table).
....
{ Clear the previous footer if any }
DataSetTableProducer1.Foot
{ Add a string to the footer }
DataSetTableProducer1.Foot
....
The footer is a set of HTML commands.
If the response HTML page contains the table only it is a good idea to place HTML header commands in the TableProducer header and closing HTML tags in the TableProducer footer. For example:
-------
DataSetTableProducer1.Head
DataSetTableProducer1.Head
DataSetTableProducer1.Head
DataSetTableProducer1.Head
DataSetTableProducer1.Head
DataSetTableProducer1.Foot
DataSetTableProducer1.Foot
DataSetTableProducer1.Foot
{ Call the TableProducer' Content method which activates generating of the header, table and footer HTML representation }
Response.Content := DataSetTableProducer1.Cont
--------
Regards, Geo
ASKER
thanks geo,it works.
i need ur help in the last step in my App,sending Email using SMTP component what do u think???,but i know what u r thinking the points isn't it?,no pb
waiting for ur answere!
thank.
Regards Meer
i need ur help in the last step in my App,sending Email using SMTP component what do u think???,but i know what u r thinking the points isn't it?,no pb
waiting for ur answere!
thank.
Regards Meer
Hi Meer,
Do not think that way about me ;)
Actually I've never used SMTP before.
And I'm not sure is it possible to use it in CGI program.
I promise I'll think how you can send e-mails and I'll post a comment here. Give me little time for that.
Regards, Geo
Do not think that way about me ;)
Actually I've never used SMTP before.
And I'm not sure is it possible to use it in CGI program.
I promise I'll think how you can send e-mails and I'll post a comment here. Give me little time for that.
Regards, Geo
ASKER
Hi Geo,
i'am waiting either here or this is my e-mail:mirabd@yahoo.com.
thanks.
pls keep in mind that i'am in hurry:-),and don't forget that u promised me.
Regards Meer.
i'am waiting either here or this is my e-mail:mirabd@yahoo.com.
thanks.
pls keep in mind that i'am in hurry:-),and don't forget that u promised me.
Regards Meer.
Hi Meer,
The easiest way to generate mail is to use TNMSMTP component.
{ in web action item }
var
mail : TNMSMTP;
begin
...
{ your mail server data }
mail:=TNMSMTP.create(self) ; //or just place it on the form
Mail.Host:='MailServerName ';
Mail.Port:=25;
{ message header }
Mail.UserID:='Your name';
Mail.PostMessage.FromAddre ss:='Your mail address';
Mail.PostMessage.FromName: ='Your name';
Mail.PostMessage.ToAddress .Clear;
Mail.PostMessage.ToAddress .Add('E-ma il address');
Mail.PostMessage.Subject:= 'Some text';
{ file attachements if any }
Mail.PostMessage.Attachmen ts.Clear;
Mail.PostMessage.Attachmen ts.Add('a file name');
{ message text }
Mail.PostMessage.Body.Clea r;
Mail.PostMessage.Body.Add( 'E-mail body - text');
...
{ sending prepared message }
Mail.Connect;
Mail.SendMail;
Mail.Disconnect;
Mail.Free;
...
end;
Regards, Geo
The easiest way to generate mail is to use TNMSMTP component.
{ in web action item }
var
mail : TNMSMTP;
begin
...
{ your mail server data }
mail:=TNMSMTP.create(self)
Mail.Host:='MailServerName
Mail.Port:=25;
{ message header }
Mail.UserID:='Your name';
Mail.PostMessage.FromAddre
Mail.PostMessage.FromName:
Mail.PostMessage.ToAddress
Mail.PostMessage.ToAddress
Mail.PostMessage.Subject:=
{ file attachements if any }
Mail.PostMessage.Attachmen
Mail.PostMessage.Attachmen
{ message text }
Mail.PostMessage.Body.Clea
Mail.PostMessage.Body.Add(
...
{ sending prepared message }
Mail.Connect;
Mail.SendMail;
Mail.Disconnect;
Mail.Free;
...
end;
Regards, Geo
ASKER
Hi Geo,
give me a chance to test it and i will confirm u.
thanks.
Regards Meer
give me a chance to test it and i will confirm u.
thanks.
Regards Meer
ASKER
Hi Geo,
give me a chance to test it and i will confirm u.
thanks.
Regards Meer
give me a chance to test it and i will confirm u.
thanks.
Regards Meer
ASKER
hi geo,
i'am using our university proxy server do u mean i should replace its host or its ip address(....) at:
mail.host,and its port no(80) at:
mail.port,this above Ques because of the exception i recieved:connection failed.
Thanks.
Regard meer
i'am using our university proxy server do u mean i should replace its host or its ip address(....) at:
mail.host,and its port no(80) at:
mail.port,this above Ques because of the exception i recieved:connection failed.
Thanks.
Regard meer
Hi Meer,
No, I don't think so. You are connecting to your mail server to send mail not to proxy. You can find these settings somewhere in your mail client program (Outlook Express or what you are using).
Regards, Geo
No, I don't think so. You are connecting to your mail server to send mail not to proxy. You can find these settings somewhere in your mail client program (Outlook Express or what you are using).
Regards, Geo
ASKER
hi geo,sorry for delay as i was in a vecation and now i'am back,
we don't have an email server in our university so u think that i can't use the SMTP component in sending mail if not with what u advice me.
Thanks
Regards Meer.
we don't have an email server in our university so u think that i can't use the SMTP component in sending mail if not with what u advice me.
Thanks
Regards Meer.
Response.Content := PageProducer.Content;
Alex