Mav Posted December 3, 2010 Share Posted December 3, 2010 I want to add the following code into a .tpl file,[literal][removed]function date_check(){ var date_from = New Date(document.getElementById(starting_date).value); var date_to = New Date(document.getElementById(ending_date).value); if (checkOut <= CheckIn ){ alert("Your Dates are out of range!"); } };[removed][/literal]But every time when I put in th code into a .tpl file, it always failed to show up the modules starting from this .tpl file.Can some experts help me out on this issue?Thanks in advance! Link to comment Share on other sites More sharing options...
rocky Posted December 4, 2010 Share Posted December 4, 2010 Are you using [literal] or {literal}? You should be using the latter. Whenever you encounter a blank page, you can edit config/config.inc.php and temporarily change 'display_errors' from 'off' to 'on' to get an error message to help you figure out the problem. Link to comment Share on other sites More sharing options...
Mav Posted December 4, 2010 Author Share Posted December 4, 2010 Thanks. I already made it by copying a format header and footer for my code.Yes, my typo should be {literal} ... {/literal}.But the javascript header and footer code is a little bit longer. Link to comment Share on other sites More sharing options...
Recommended Posts