Subversion Repositories DevTools

Rev

Rev 7063 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%
'-------------------------------------------
'   _jquery_includes.asp
'
'   ASP File to be included in the <head> setion of pages
'   using jquery.
'
'   Provides jquery, jquery-ui and associated style sheets
'
'   Bump the global VixVerNum, in common/config.asp, to force cached 
'   copies to be refreshed when they have been updated
%>
<%If NOT bJqueryCommonLoaded Then %>
    <%bJqueryCommonLoaded = True%>
    <script type="text/javascript" language="javascript" src="jquery/jquery.js?ver=<%=VixVerNum%>"></script>
    <script type="text/javascript" language="javascript" src="jquery/jquery-ui.js?ver=<%=VixVerNum%>"></script>
    <link rel="stylesheet" href="jquery/jquery-ui.css?ver=<%=VixVerNum%>" type="text/css">
    <script language="JavaScript" src="jquery/dyna_header.js?ver=<%=VixVerNum%>"></script>
    <%' Optional parts - Vix Internal functions%>
    <%If bJqueryVix Then%>
    <script language="JavaScript" src="jquery/vix.js?ver=<%=VixVerNum%>"></script>
    <%End If %>
    <%' Optional parts - Table to CSV converter%>
    <%If bCsvExport Then%>
    <script language="JavaScript" src="jquery/jquery.TableCSVExport.js?ver=<%=VixVerNum%>"></script>
    <%End If %>
    <%' Optional parts - Data Table support%>
    <%If bJqueryDataTables Then%>
        <%If isEmpty(sJqueryDataTablesCss) Then sJqueryDataTablesCss = "jquery/dataTables.vix.css" %>
        <script type="text/javascript" language="javascript" src="jquery/jquery.dataTables.js?ver=<%=VixVerNum%>"></script>
        <script type="text/javascript" language="javascript" src="jquery/dataTables.scroller.js?ver=<%=VixVerNum%>"></script>
        <link rel="stylesheet" href="<%=sJqueryDataTablesCss%>?ver=<%=VixVerNum%>" type="text/css">
    <%End If %>
    <%' Option parts - Form Validation%>
    <%If bJqueryForms Then%>
        <script src="jquery/form-validator/jquery.form-validator.min.js?ver=<%=VixVerNum%>"></script>
        <link rel="stylesheet" href="jquery/form-validator.css?ver=<%=VixVerNum%>" type="text/css">
    <%End If %>
    <%' Option parts - DateTime Picker%>
    <%If bJqueryTimePicker Then%>
        <script src="jquery/jquery-ui-timepicker-addon.js?ver=<%=VixVerNum%>"></script>
        <link rel="stylesheet" href="jquery/jquery-ui-timepicker-addon.css?ver=<%=VixVerNum%>" type="text/css">
    <%End If %>
    <%' Option parts - Iframe Cancel Button%>
    <%If NOT isEmpty(sJqueryIformCancel) Then%>
        <script language="javascript">
        $(document).ready(function () {
            $('#<%=sJqueryIformCancel%>').on('click', function (e) {parent.closeIFrame()});
        });
        </script>
    <%End If %>
<%End If %>