So close, and yet... here's what I got.
I have a href calling the JS function getIt. Which is:
function getIt(myId){
var response = httpRequest('/search.cfc?method=returnStuff');
$('#test').append(response);
}
I have my CFC doing this.
<cffunction name="returnStuff" access="remote">
<cfscript>
myVar="'<tr class='padrow row_even'><td valign='top'
align='center' style='padding: 1px;'><a
href='javascript:popUp('popup.cfm?mode=view_profile&user_id=1424&xcategory_sub_id=0,1');'><img
src='images/photos/0.jpg' border='0' style='margin-right: 5px;' alt=''
title='' width='50'></a></td><td valign='top'><a
href='javascript:popUp('popup.cfm?mode=view_profile&user_id=1424&xcategory_sub_id=0,1');'
style='color: ##000; text-decoration: none;'><b>Test1</b><br><span
class='title2'>MDU</span><br><span class='text_small'><span
class='label2'>Major:</span> Not Specified<br></span></a></td><td
align='center' class='text_small'>Active within<br> <b>3 days</b></td><td
align='center' valign='top'><div class='report_card'><p style='margin: 10px 0px
0px 0px;'></p><span class='text_small' style='font-weight: normal;'>Not Yet
Graded</span></div></td><td><a
href='javascript:popUp('popup.cfm?mode=send_job&user_id=1424&job=278');'>Send</a></td><td><a
href=''>Remove</a></td></tr>'";
myVar=jsstringformat(myVar);
</cfscript>
<cfreturn myVar>
</cffunction>
It gets the data, it's formatted for JS correctly, but when I try and append
that entire string to the table, it's not treating it as HTML. Rather, the JS
formated string gets thrown in. Should I get past this last hurdle, I'm good
to go.
Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289059
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4