Subversion Repositories DevTools

Rev

Rev 7065 | 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">
7065 dpurdie 18
    <script language="JavaScript" src="jquery/dyna_header.js?ver=<%=VixVerNum%>"></script>
5590 dpurdie 19
    <%' Optional parts - Vix Internal functions%>
20
    <%If bJqueryVix Then%>
6579 dpurdie 21
    <script language="JavaScript" src="jquery/vix.js?ver=<%=VixVerNum%>"></script>
5590 dpurdie 22
    <%End If %>
6651 dpurdie 23
    <%' Optional parts - Table to CSV converter%>
24
    <%If bCsvExport Then%>
25
    <script language="JavaScript" src="jquery/jquery.TableCSVExport.js?ver=<%=VixVerNum%>"></script>
26
    <%End If %>
5590 dpurdie 27
    <%' Optional parts - Data Table support%>
28
    <%If bJqueryDataTables Then%>
7250 dpurdie 29
        <%If isEmpty(sJqueryDataTablesCss) Then sJqueryDataTablesCss = "dataTables.vix.css"%>
30
        <script type="text/javascript" language="javascript" src="jquery/DataTables/jquery.dataTables.min.js?ver=<%=VixVerNum%>"></script>
31
        <script type="text/javascript" language="javascript" src="jquery/DataTables/dataTables.scroller.min.js?ver=<%=VixVerNum%>"></script>
32
        <link rel="stylesheet" href="jquery/DataTables/<%=sJqueryDataTablesCss%>?ver=<%=VixVerNum%>" type="text/css">
33
	    <link rel="stylesheet" href="jquery/DataTables/scroller.dataTables.css?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 34
    <%End If %>
35
    <%' Option parts - Form Validation%>
36
    <%If bJqueryForms Then%>
6579 dpurdie 37
        <script src="jquery/form-validator/jquery.form-validator.min.js?ver=<%=VixVerNum%>"></script>
38
        <link rel="stylesheet" href="jquery/form-validator.css?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 39
    <%End If %>
5636 dpurdie 40
    <%' Option parts - DateTime Picker%>
41
    <%If bJqueryTimePicker Then%>
6579 dpurdie 42
        <script src="jquery/jquery-ui-timepicker-addon.js?ver=<%=VixVerNum%>"></script>
43
        <link rel="stylesheet" href="jquery/jquery-ui-timepicker-addon.css?ver=<%=VixVerNum%>" type="text/css">
5636 dpurdie 44
    <%End If %>
5590 dpurdie 45
    <%' Option parts - Iframe Cancel Button%>
46
    <%If NOT isEmpty(sJqueryIformCancel) Then%>
47
        <script language="javascript">
48
        $(document).ready(function () {
49
            $('#<%=sJqueryIformCancel%>').on('click', function (e) {parent.closeIFrame()});
50
        });
51
        </script>
52
    <%End If %>
5190 dpurdie 53
<%End If %>
5085 dpurdie 54