thanks paul
 that works basically the same as what i was doing but my ? really is, how do I 
now get the data into the alert?
 Do I need to make a new variable for each field? and then whats the syntax to 
add it to the alert. I haven't worked that much even with alerts in flash and 
not quite sure at that point

 current code

 <cfformitem type="script">
 function showThisDealer(thisDealer:Number):Void {
 var title:String = _root.showDealers.getItemAt(thisDealer).tbl_dealerName;
 var msg = '<img src="/rrimages/alert.jpg" width="32" height="32" vspace="0" 
align="left"/><p><b>Regtext: </b></p><ul><li>List item 1</li><li>List item 
2</li></ul><p>asd dasd ada adas dasd asd asd asda sdadas.</p>';

 var alertSettings:Object = {title: 'title', message: msg, width:450, 
headerHeight:27 }
     errorpopup = mx.managers.PopUpManager.createPopUp(this, 
FormErrorException, true, alertSettings);
     errorpopup.centerPopUp(this);
 }
 </cfformitem>

 so for example, how would i get the alert to show the dealers name in the 
title?

~Dave the disruptor~
good sites - make money getting rid of ie :)
http://explorerdestroyer.com/
http://www.killbillsbrowser.com/ 

----------------------------------------
From: Paul Hastings <[EMAIL PROTECTED]>
Sent: Friday, November 25, 2005 3:06 AM
To: CF-Talk <[email protected]>
Subject: Re: more cfform goodness, maybe.... 

dave wrote:
> ok, I'm populating the grid from a cfc and basically all i want to do is fill 
> the alert with the selected dealers info in it instead of doing awhole new 
> window.

well i guess the 1st thing is to pass the data you want to display thru 
to the grid in hidden columns so you don't have to run back to the db again.

> 

next if you're on 7.01 i'd use a cfformitem type="script" to build a 
function:

function showThisDealer(thisDealer:Number):Void {
var title:String = _root.showDealers.getItemAt(thisDealer).tbl_dealerName;
...
...
...
}

on your grid:
onchange="showThisDealer(showDealers.selectedIndex);"



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:225226
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to