This topic is locked
[SOLVED]

 Embed Javascript in List Page

12/23/2009 2:51:59 PM
PHPRunner General questions
G
gluckett author

Hi all,

I want to pull out the a column from my list page so I can call a javascript routine within the list page:
For example, at the top of the list page (using PHPRUNNER - not WYSIWIG mode) I add this to the top of the page:

<script language=javascript>var myKeyList='';</script>


Then in the middle of the page, while the results are looping, I want to embed the columns:

<script>myKeyList=myKeyList+'{$Regional_District_Name_value}';


but this results in some strange SPAN tags etc.
How do I embed the actual value in the javascript as the list page loops over the results?
thanks

gordon

J
Jane 12/24/2009

Gordon,
use After record processed event to assign actual value:

$record["Regional_District_Name_value1"] = $data["Regional_District_Name"];



Please note field names are case sensitive here.

G
gluckett author 12/24/2009

Thanks Jane, this is similar to my Fold Up questions, and like that one, I realize that I am using 5.0 not 5.2 so

$row["Regional_District_Name_value"] = $data["Regional_District_Name"];


Now works great!
thanks for all your help Jane!
gordon



Gordon,
use After record processed event to assign actual value:

$record["Regional_District_Name_value1"] = $data["Regional_District_Name"];



Please note field names are case sensitive here.