I think your missing a quote and a #.

Change

location.href=Mis012F3.cfm?dblib=#dblibCorp="+'#trim(Corp_Cust_Code)#';

to

location.href='Mis012F3.cfm?dblib=#dblibCorp#='+'#trim(Corp_Cust_Code)#';

but it still doesn't make sense why the + is in there.

Regards
Dale Fraser

http://learncf.com


-----Original Message-----
From: ismail cassiem [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 4 October 2007 9:01 PM
To: CF-Talk
Subject: Passing query value via a javascript to next form

Hi, I need help passing the value through to the next form via javascript
it does not like the value ="+'#trim(Corp_Cust_Code)#'; 

<cfoutput query="get_info">
<tr onclick=onCust();>
 <td>
   #cust#
 </td> 
</tr>
</cfoutput>

<script language="javascript">
   function onCust()
   {    
     location.href=Mis012F3.cfm?dblib=#dblibCorp="+'#trim(Corp_Cust_Code)#';

   }
</script>

Please any help, Regards 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290149
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to