Mac
Posts: 37
|
| Posted: 07/30/2005, 11:34 PM |
|
Hi folks.
I have a button on a page, what that button needs to do is open then users default mail client and load the value of a field into the 'to' box. Pretty much as a hyperlink would.
Any ideas?
_________________
/\/\@< |
 |
 |
datadoit.com
|
| Posted: 07/31/2005, 12:31 PM |
|
One method would be to use a template variable (SetTag):
global $Tpl;
$Tpl->SetVar("recipient", $grid->email_field->GetValue());
Then in your HTML your link will be something like:
<a href='mailto://' {recipient} ></a>
-MikeR
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 07/31/2005, 10:55 PM |
|
Also our Employee Directory example contains such links on the "EmpsGrid" page. Those are standard hyperlinks with "mailto:" added into the HTML code.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Mac
Posts: 37
|
| Posted: 07/31/2005, 10:58 PM |
|
Yep that's exactly what I did in the end, set the href value on the control to the database column that contains the mail address and then manually edited the HTML and prefixed the mailto: works like a charm.
_________________
/\/\@< |
 |
 |