Subversion Repositories DevTools

Rev

Rev 6579 | Rev 6651 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5085 dpurdie 1
<%
2
'-------------------------------------------
3
'   _jquery_includes.asp
4
'
5
'   ASP File to be included in the <head> setion of pages
6
'   using jquery.
7
'
8
'   Provides jquery, jquery-ui and associated style sheets
6579 dpurdie 9
'
10
'   Bump the global VixVerNum, in common/config.asp, to force cached 
11
'   copies to be refreshed when they have been updated
5085 dpurdie 12
%>
5590 dpurdie 13
<%If NOT bJqueryCommonLoaded Then %>
14
    <%bJqueryCommonLoaded = True%>
6579 dpurdie 15
    <script type="text/javascript" language="javascript" src="jquery/jquery.js?ver=<%=VixVerNum%>"></script>
16
    <script type="text/javascript" language="javascript" src="jquery/jquery-ui.js?ver=<%=VixVerNum%>"></script>
17
    <link rel="stylesheet" href="jquery/jquery-ui.css?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 18
    <%' Optional parts - Vix Internal functions%>
19
    <%If bJqueryVix Then%>
6579 dpurdie 20
    <script language="JavaScript" src="jquery/vix.js?ver=<%=VixVerNum%>"></script>
5590 dpurdie 21
    <%End If %>
22
    <%' Optional parts - Data Table support%>
23
    <%If bJqueryDataTables Then%>
6623 dpurdie 24
        <%If isEmpty(sJqueryDataTablesCss) Then sJqueryDataTablesCss = "jquery/dataTables.vix.css" %>
6579 dpurdie 25
        <script type="text/javascript" language="javascript" src="jquery/jquery.dataTables.js?ver=<%=VixVerNum%>"></script>
26
        <script type="text/javascript" language="javascript" src="jquery/dataTables.scroller.js?ver=<%=VixVerNum%>"></script>
6623 dpurdie 27
        <link rel="stylesheet" href="<%=sJqueryDataTablesCss%>?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 28
    <%End If %>
29
    <%' Option parts - Form Validation%>
30
    <%If bJqueryForms Then%>
6579 dpurdie 31
        <script src="jquery/form-validator/jquery.form-validator.min.js?ver=<%=VixVerNum%>"></script>
32
        <link rel="stylesheet" href="jquery/form-validator.css?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 33
    <%End If %>
5636 dpurdie 34
    <%' Option parts - DateTime Picker%>
35
    <%If bJqueryTimePicker Then%>
6579 dpurdie 36
        <script src="jquery/jquery-ui-timepicker-addon.js?ver=<%=VixVerNum%>"></script>
37
        <link rel="stylesheet" href="jquery/jquery-ui-timepicker-addon.css?ver=<%=VixVerNum%>" type="text/css">
5636 dpurdie 38
    <%End If %>
5590 dpurdie 39
    <%' Option parts - Iframe Cancel Button%>
40
    <%If NOT isEmpty(sJqueryIformCancel) Then%>
41
        <script language="javascript">
42
        $(document).ready(function () {
43
            $('#<%=sJqueryIformCancel%>').on('click', function (e) {parent.closeIFrame()});
44
        });
45
        </script>
46
    <%End If %>
5190 dpurdie 47
<%End If %>
5085 dpurdie 48