Say I have a query that returns some values
rownum, id, and desc
1 1001 ProductA
2 1002 ProductB
3 1003 ProductC
4 1004 ProductD
5 1005 ProductE
Is it not possible (without opening a new frame) to use Javascript to
get a certain row?
I was thinking something on the lines of
<a href="Javascript:getDesc(#qry.rownum#)">#qry.id#</a>
<div id="sDiv">
Description
</div>
How would I access the value?
I've tried
<script language="Javascript">
<!--
function getDesc(num)
{
var rn = num;
val = "evaluate(test.agentpw["+ rn +"])";
alert(<cfoutput>#val#</cfoutput>);
}
//-->
</script>
But I keep getting val is undefined.
The structure exists, I can get any value manually by #qry.desc[1]#.
It sounds fairly simple what am I doing wrong?
--
Auxilium meum a Domino
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186688
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54