15
I have a page where jquery + other js's is being loaded:
<script src="/eiv/javascripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/eiv/javascripts/jquery.jeditable.js" type="text/javascript"></script>
<script src="/eiv/javascripts/jquery-ui-1.7.1.custom.min.js" type="text/javascript"></script>
<script src="/eiv/javascripts/corner.js" type="text/javascript"></script>
<script src="/eiv/javascripts/jquery.form.js" type="text/javascript"></script>
<script src="/eiv/javascripts/validationdate.js" type="text/javascript"></script>
I am loading tabs as follows:
<%if (tabnum == 1) {%>
<script type="text/javascript">
$(document).ready(function(){
$("#tabs").tabs();
$("#tabs ul li a").corner('7px top');
var $tabs = $('#tabs').tabs();
$tabs.tabs('select', 0);
dateValidation();
changeOption();
deleteConfirmation();
});
</script>
<%} else if (tabnum==2) {%>
<script type="text/javascript">
$(document).ready(function(){
$("#tabs").tabs();
$("#tabs ul li a").corner('7px top');
var $tabs = $('#tabs').tabs();
$tabs.tabs('select', 1);
changeOption();
deleteConfirmation();
});
</script>
<%}%>
the validationdate.js is a mine built js that checks dates and other stuff. it has this as the first line:
document.write('<script type="text/javascript" src=""jquery-1.3.2.min.js""></script>');
Problem: Is that in production at time ..this page errors out and give a JS error. This causes the tab's to be not clickable. This error hap