I don't think so - at least for security reasons. Assuming you mean a JS
generated alertbox. If you can get around using a JS generated alert box and
use a JS generated window which you can load a CFML template into that might
be better. eg:

<head>
<script language="JavaScript">
function openWin( windowURL, windowName, windowFeatures )
{return window.open( windowURL, windowName, windowFeatures ) ; }
</script>
<title>CF-Talk is AOK by me OK?</title>
</head>

Then use the following code for your URL:

<a
href="JavaScript:newWindow=openWin('actiontemplate.cfm?RecordID=ThisWouldBeA
Number','ADescriptionOfTheLink','width=600,height=400,toolbar=0,location=0,d
irectories=0,status=0,menuBar=0,scrollBars=1,resizable=0');
newWindow.focus()" onmouseover="self.status='Wrap this text in a
JSStringFormat just to be sure! Ben Forta would be proud!';return true"
onmouseout="self.status='';return true">And this is the link right here!</a>

If using CFQUERY generated text it is not a bad idea to WRAP the output text
in JSStringFormat to make friendly potentially error inducing code.
Otherwise strip out the "onmouseover" and "onmouseout" code altogether. You
can still add other target prefs like "_new" etc).


-----Original Message-----
From: han peng [mailto:[EMAIL PROTECTED]]
Sent: Friday, 4 May 2001 13:43
To: CF-Talk
Subject: mailto: in alertbox?


hi ppl... is it possible to have a mailto: in a alertbox message??
i tried doing this but cant...
pls advise...


alert("we noted that u blah...blah.. blah... Please email us at
mailto:[EMAIL PROTECTED] for yr request.blah.. blah...");


cheers
han
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to