Click here to Skip to main content
15,897,273 members

How to solve conflict with JQuery

Member 8194711 asked:

Open original thread
This is my code in the MasterPage:

HTML
<script src="Script/jquery-1.8.2.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.plus.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.picker.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.picker-ar.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.islamic.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.islamic-ar.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.validation.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.validation.min.js" type="text/javascript"></script>
<script src="Script/jquery.calendars.validation.pack.js" type="text/javascript"></script>
<script type="text/javascript">      
        $(function () {
            $('.txtDate').calendarsPicker($.extend({ showTrigger: '#calImg', calendar: $.calendars.instance('islamic', 'ar'),constrainInput: true
            }));
        });
</script>

And I have another jQuery in the webform page when i but this below code i can't show the calender in the textbox:

XML
<script src="Script/jquery-1.3.2.min.js" type="text/javascript"> </script>
<script src="Script/tableSorter.js" type="text/javascript"> </script>
<script src="Script/jquery.tablesorter.js" type="text/javascript"> </script>
<link rel="stylesheet" type="text/css" href="themes/blue/style.css" />
<script src="Script/jquery.metadata.js" type="text/javascript"> </script>
<script src="Script/jquery-latest.js" type="text/javascript"> </script>
<script type="text/javascript" src="Script/jquery.tablesorter.js"> </script>
<script language="javascript" type="text/javascript">

    $(document).ready(function () {

        $("table").tablesorter({

            headers: {

                0: {

                    sorter: false
                },
                6: {

                    sorter: false
                }

            }
        });

        $("table").bind("sortStart", function () {

            // remove the row with the class foo
            pageRow = $(this).children("tbody").children("tr:.foo");
            $(this).children("tbody").children("tr:.foo").remove();

        });

        $("table").bind("sortEnd", function () {

            // add the removed row
            $(this).children("tbody").append(pageRow);

        });
    });
</script>
Tags: C#, Javascript, jQuery, ASP.NET

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900