Not sure what happened… I used to be able to use a Free Format template in a grid. Now I get and error in the generated Javascript and the page doesn’t load properly.
Here is what is generated with one of the built in templates.
</SCRIPT> <script type="text/javascript">var sc_pathToTB = '/scriptcase/prod/third/jquery_plugin/thickbox/';</script>
<script type="text/javascript" src="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" href="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="../_lib/buttons/Scriptcase7_BlueSky/Scriptcase7_BlueSky.css" />
<link rel="stylesheet" type="text/css" href="../_lib/css/Scriptcase7_BlueSky/Scriptcase7_BlueSky_form.css" />
<script type="text/javascript">
var scQSInit = true;
var scQtReg = 10;
function SC_init_jquery(){
$(function(){
});
}
SC_init_jquery();
$(window).load(function() {
});
</script>
<link rel="stylesheet" href="/scriptcase/tmp/sc_css_grid_packer_details_grid_163.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../_lib/css/Scriptcase7_BlueSky/Scriptcase7_BlueSky_error.css" type="text/css" media="screen" />
<style type="text/css">
But if I try to use even a simple free format template, I get this.
</SCRIPT> <script type="text/javascript">var sc_pathToTB = '/scriptcase/prod/third/jquery_plugin/thickbox/';</script>
<script type="text/javascript" src="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="../_lib/css/Scriptcase7_BlueSky/Scriptcase7_BlueSky_form.css" />
<link rel="stylesheet" href="/scriptcase/prod/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="../_lib/buttons/Scriptcase7_BlueSky/Scriptcase7_BlueSky.css" />
<script type="text/javascript">
var scQSInit = true;
var scQtReg = 10;
function SC_init_jquery(){
$(function(){
});
}
SC_init_jquery();
<link rel="stylesheet" href="/scriptcase/tmp/sc_css_grid_packer_details_grid_782.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../_lib/css/Scriptcase7_BlueSky/Scriptcase7_BlueSky_error.css" type="text/css" media="screen" />
</HEAD>
<body class="scGridPage" style="">
Notice that the
$(window).load(function() {
});
</script>
is missing from the second one… this causes a Javascript error when the page loads.