Seppo Apajalahti
|
| Posted: 01/31/2003, 10:44 PM |
|
Hi!
I have try, but withyout success.
I have a testform. Thename of the grid is "testialue", the name of the
emailfield is "Email" and the code in Before event looks like this:
<?php
//BindEvents Method @1-4DCD3FAF
function BindEvents()
{
global $testialue;
$testialue->Email->CCSEvents["BeforeShow"] =
"testialue_Email_BeforeShow";
}
//End BindEvents Method
function testialue_Email_BeforeShow() { //testialue_Email_BeforeShow
@8-67E59DF4
//Custom Code @17-2A29BDB7
// -------------------------
global $testialue;
$testialue->Email->setvalue("<a href='mailto:"
..$testialue->Email->Value."'>" .$testialue->Email->Value "</a>");
// -------------------------
//End Custom Code
} //Close testialue_Email_BeforeShow @8-FCB6E20C
?>
I can not find where I am doing wrong. I get this errormessage:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in
c:\ohjelmatiedostot\apache group\apache\htdocs\testaus\NewPage1_events.php
on line 15
Can you help?
Seppo Apajalahti
______
global $yourgrid;
$yourgrid->emailfield->setvalue("<a href='mailto:"
..$yourgrid->emailfield->Value ."'>" .$yourgrid->emailfield->Value "</a>");
in the beforeshow event.
Ron
"Seppo Apajalahti" <seppo.apajalahti@pp.inet.fi> schreef in bericht
news:b0av4m$6ji$1@news.codecharge.com...
> Hi!
>
> I', using PHP + MySQL + CCS2beta
>
> I have a grid where one of the fields is e-mail address. How can change
the
> field to a mailto: -field so that I can send e-mail with a doubleclick?
> I'm sorry about my bad English.
>
> --
> Seppo Apajalahti
>
>
>
|
|
|
 |
RonB
|
| Posted: 02/04/2003, 12:26 AM |
|
$testialue->Email->setvalue("<a href='mailto:"
forgot ; at the end 
Ron
"Seppo Apajalahti" <seppo.apajalahti@pp.inet.fi> schreef in bericht
news:b1fqc3$lgq$1@news.codecharge.com...
> Hi!
>
> I have try, but withyout success.
> I have a testform. Thename of the grid is "testialue", the name of the
> emailfield is "Email" and the code in Before event looks like this:
>
> <?php
> //BindEvents Method @1-4DCD3FAF
> function BindEvents()
> {
> global $testialue;
> $testialue->Email->CCSEvents["BeforeShow"] =
> "testialue_Email_BeforeShow";
> }
> //End BindEvents Method
>
> function testialue_Email_BeforeShow() { //testialue_Email_BeforeShow
> @8-67E59DF4
>
> //Custom Code @17-2A29BDB7
> // -------------------------
> global $testialue;
> $testialue->Email->setvalue("<a href='mailto:"
> .$testialue->Email->Value."'>" .$testialue->Email->Value "</a>");
> // -------------------------
> //End Custom Code
>
> } //Close testialue_Email_BeforeShow @8-FCB6E20C
>
>
> ?>
>
> I can not find where I am doing wrong. I get this errormessage:
> Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in
> c:\ohjelmatiedostot\apache group\apache\htdocs\testaus\NewPage1_events.php
> on line 15
>
> Can you help?
>
> Seppo Apajalahti
> ______
>
> global $yourgrid;
> $yourgrid->emailfield->setvalue("<a href='mailto:"
> .$yourgrid->emailfield->Value ."'>" .$yourgrid->emailfield->Value
"</a>");
>
> in the beforeshow event.
>
> Ron
>
>
> "Seppo Apajalahti" <seppo.apajalahti@pp.inet.fi> schreef in bericht
>news:b0av4m$6ji$1@news.codecharge.com...
> > Hi!
> >
> > I', using PHP + MySQL + CCS2beta
> >
> > I have a grid where one of the fields is e-mail address. How can change
> the
> > field to a mailto: -field so that I can send e-mail with a doubleclick?
> > I'm sorry about my bad English.
> >
> > --
> > Seppo Apajalahti
> >
> >
> >
>
>
>
|
|
|
 |
|