Can you all tell me if this looks correct to you. I’m trying to take a ColdFusion variable (#url.line_amount#), manipulate it, then pass the new value back to the previous page, and close the window. Anyone see anything wrong with this? I’m not generating any errors, it’s just that the link isn’t pointing sending the user back to the previous page or closing the window.
<script type=text/javascript>
{
line_amount = ‘#url.line_amount#’;
ineligible_field_name = ‘#page.ineligible_field#’;
ineligible = 0;
if(line_amount – fee < 0 )
ineligible = 0;
else if (line_amount – fee > 0 )
ineligible = 0;
else
ineligible = line_amount – fee;
opener.document.frmname.ineligible_field_name.value = ineligible;
self.close();
}
</script>