|
|
Question : Coldfusion output in javascript
|
|
Is there anyway I can get coldfusion output in javascript? I am using the Autodesk MapGuide API and would like to populate javascript functions dynamically from my database. The only way I can do it now, is by using form fields, but that is long, troublesome, and difficult to update. Would I be better off learning some ASP and using that? or can it be done in CF. I am using Coldfusion MX with access databases.
This is what I need looped, the #'s are just there to show what I need from my database. This will be looped about 50 times.
var maplayer = map.getMapLayer("#layer_name#"); maplayer.setVisibility(#vis_true_false#); maplayer.setShowInLegend(#legend_true_false#);
So far I have been totally unable to use coldfusion in javascript. Thanks
|
Answer : Coldfusion output in javascript
|
|
or a frame/iframe is possible onChange="parent.frames['framename'].src='urlwithmap.cfm?mapid='+varMapidFromSel" no reload of the main page
|
|
|
|
|