Title:
Bug 73854:(Watson Migration Closure)One thing I noticed still was something that has bugged me since CF8 when using CFML/Ext, while it might not exactly be feasible to entirely src link it, is there a chance to get the generated JS at l
| View in TrackerStatus/Resolution/Reason: Closed/Deferred/
Reporter/Name(from Bugbase): Don Quist / Don Quist (Don Quist)
Created: 11/28/2008
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,216113 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
One thing I noticed still was something that has bugged me since CF8 when using CFML/Ext, while it might not exactly be feasible to entirely src link it, is there a chance to get the generated JS at least into one <script> block?
Just using two cfmaps on a page will generate this:
<script type="text/javascript">_cf_loadingtexthtml="<img alt=’ ’ src=’/CFIDE/scripts/ajax/resources/cf/images/loading.gif’/>";
_cf_contextpath="";
_cf_ajaxscriptsrc="/CFIDE/scripts/ajax";
_cf_jsonprefix=’//’;
</script>
<script type="text/javascript">
ColdFusion.Ajax.importTag(’CFMAP’);
</script>
<script type="text/javascript">
var _cf_map_init_1227798244800=function()
{
var _cf_map=ColdFusion.Map.init(’gmap01’,null,null,’map’,4,null,true,false,true,true,true,true,true,true,’small’,null,’71.094224’,’42.339641’,’My Map’,[],null);
};ColdFusion.Event.registerOnLoad(_cf_map_init_1227798244800);
</script>
<script type="text/javascript">
var _cf_map_init_1227798244801=function()
{
var _cf_map=ColdFusion.Map.init(’gmap02’,null,null,’map’,null,null,true,false,true,true,true,false,false,true,’small’,’345 Park Avenue, san jose, CA 95110-2704, USA’,null,null,’My Map’,[],null);
};ColdFusion.Event.registerOnLoad(_cf_map_init_1227798244801);
</script>
That is a lot of non-cache able text that has to be sent out on every request, especially if your using additional cfml/ext tags.
Method:
Using example from Alpha 2 Reference:
<h3>cfmap Example using latitude and longitude attributes</h3>
<cfmap name="gmap01" centerlatitude=71.094224 centerlongitude=42.339641 displayscale="true" doubleclickzoom="true" overview="true" scrollwheelzoom="true" tips="My Map" zoomlevel="4"/>
<h3>cfmap Example using center address</h3>
<cfmap name="gmap02" centeraddress='345 Park Avenue, san jose, CA 95110-2704, USA' displayscale="false" doubleclickzoom="true" scrollwheelzoom="true" tips="My Map"/>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3036882
External Customer Info:
External Company:
External Customer Name: Don Quist
External Customer Email: 3A89295D4769BB7199201587
External Test Config: 11/28/2008
Attachments:
Comments: