Subversion Repositories DevTools

Rev

Rev 7063 | 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">
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%>
6623 dpurdie 29
        <%If isEmpty(sJqueryDataTablesCss) Then sJqueryDataTablesCss = "jquery/dataTables.vix.css" %>
6579 dpurdie 30
        <script type="text/javascript" language="javascript" src="jquery/jquery.dataTables.js?ver=<%=VixVerNum%>"></script>
31
        <script type="text/javascript" language="javascript" src="jquery/dataTables.scroller.js?ver=<%=VixVerNum%>"></script>
6623 dpurdie 32
        <link rel="stylesheet" href="<%=sJqueryDataTablesCss%>?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 33
    <%End If %>
34
    <%' Option parts - Form Validation%>
35
    <%If bJqueryForms Then%>
6579 dpurdie 36
        <script src="jquery/form-validator/jquery.form-validator.min.js?ver=<%=VixVerNum%>"></script>
37
        <link rel="stylesheet" href="jquery/form-validator.css?ver=<%=VixVerNum%>" type="text/css">
5590 dpurdie 38
    <%End If %>
5636 dpurdie 39
    <%' Option parts - DateTime Picker%>
40
    <%If bJqueryTimePicker Then%>
6579 dpurdie 41
        <script src="jquery/jquery-ui-timepicker-addon.js?ver=<%=VixVerNum%>"></script>
42
        <link rel="stylesheet" href="jquery/jquery-ui-timepicker-addon.css?ver=<%=VixVerNum%>" type="text/css">
5636 dpurdie 43
    <%End If %>
5590 dpurdie 44
    <%' Option parts - Iframe Cancel Button%>
45
    <%If NOT isEmpty(sJqueryIformCancel) Then%>
46
        <script language="javascript">
47
        $(document).ready(function () {
48
            $('#<%=sJqueryIformCancel%>').on('click', function (e) {parent.closeIFrame()});
49
        });
50
        </script>
51
    <%End If %>
5190 dpurdie 52
<%End If %>
5085 dpurdie 53