I have a project that I have recently changed. When I run it in debug it pulls up the old <script> tag with the old variable types. This is what it looks like now:
<script type="text/javascript">
window.open('', '_self');
function PrintPage() {
if (document.all.factory.object) {
document.all.factory.printing.leftMargin = 0.5;
document.all.factory.printing.rightMargin = 0.5;
document.all.factory.printing.topMargin = 0.5;
document.all.factory.printing.bottomMargin = 0.5;
document.all.factory.printing.header = '';
document.all.factory.printing.footer = '';
document.all.factory.printing.portrait = 'true';
document.all.factory.printing.Print(true);
}
else {
print();
}
}
</script>
But when I run in debug it kicks a type mismatch error and displays the old javascript:
<script type="text/javascript">
window.open('','_self');
function PrintPage(){
if (document.all.factory.object) {
document.all.factory.printing.leftMargin=" & Trim(Str(pPrtMgnLeft)) & ";
document.all.factory.printing.rightMargin=" & Trim(Str(pPrtMgnRight)) & ";
document.all.factory.printing.topMargin=" & Trim(Str(pPrtMgnTop)) & ";
document.all.factory.printing.bottomMargin=" & Trim(Str(pPrtMgnBottom)) & ";
document.all.factory.printing.header='';
document.all.factory.printing.footer='';
document.all.factory.printing.portrait='true';
document.all.factory.printing.Print(true);
}
else {
print();
}
}
</script>
Where is this being stored and how do I kill the old version off so the current one runs?