Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 142218

Jquery noConflict is not working in asp.net master page

$
0
0

I have added below two scripts in master page but full calendar is working fine on clicking of below button boostrap model pop will appear but is not working

<a href="#" class=""> <asp:LinkButton ID="lnk_btnAddOc" runat="server" CssClass="btn btn-facebook pull-right" ForeColor="White" OnClick="lnk_btnAddOc_Click"><i class="fa fa-plus" aria-hidden="true"></i> Add Outcome Committment</asp:LinkButton></a>

below is code behind c#

protected void lnk_btnAddOc_Click(object sender, EventArgs e)
 {

     ScriptManager.RegisterStartupScript(this, this.GetType(), "LaunchServerSide", "$(function() { openModal(); });", true);


 }

Below are scripts of timepicker

<link rel="stylesheet" media="all" type="text/css" href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css" />
<link rel="stylesheet" media="all" type="text/css" href="OC scripts/jquery-ui-timepicker-addon.css" />  
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="OC scripts/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="i18n/jquery-ui-timepicker-addon-i18n.min.js"></script>

 <script type="text/javascript">
     var jq144 = jQuery.noConflict(true);
</script>

below are calendar scripts

<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> 
 <script src="Scripts/fullcalendar.js" type="text/javascript"></script>

     <script type="text/javascript">

        $(function(){
            $('#tabs').tabs();

            $('.example-container > pre').each(function(i){
                eval($(this).text());
            });
        });
        function openModal() {
            $('#myModal').modal('show');
        }


        $(document).ready(function () {


            $("#<%= btnSave.ClientID %>").click(function() 
            {
                var ProjectName = $('#<%=txt_ProjectName.ClientID%>').val();
                var MeetingTitle = $('#<%=txt_MeetingTitle.ClientID%>').val();
                var TaskDetails = $('#<%=txt_TaskDetails.ClientID%>').val();
                var datetime1 = $('#<%=txt_datetime1.ClientID%>').val();
                var datetime2 = $('#<%=txt_datetime2.ClientID%>').val();
                var datetime2 = $('#<%=txt_datetime2.ClientID%>').val();
                var ddl_Committed = $('#<%=ddl_Committed.ClientID%>').val();          

                //if (ProjectName == '') {
                //    alert("Please Enter Project Name");

                //    return false;
                //}
                if (MeetingTitle == '')
                {
                    alert("Please Enter Meeting Title");

                    return false;
                }
                else if (TaskDetails == '')
                {
                    alert("Please Enter Task Details");

                    return false;
                }
                else if (datetime1 == '') {
                    alert("Please select Review Date & Time");

                    return false;
                }
                else if (datetime2 == '') {
                    alert("Please Select Dealine");

                    return false;
                }
                else if (ddl_Committed == '') {
                    alert("Please Select Committed");

                    return false;
                }



            })
        });

    </script> 

On button click modal pop should appear its not working when i will hide calendar scripts then modal pop is working on button click but calender is not working please help to resolve this issue.


Viewing all articles
Browse latest Browse all 142218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>