I'm trying ComponentOne and I'm having a problem with jQuery.
I'm working en ASP.NET so i have an .aspx with several controls including an update panel for the page.
I have a TabControl control from ComponentOne in wich i have all the information of my page. That information uses jQuery Calendar and other plugins.
Before I imported ComponentOne everything was OK but then jQuery seems to be loading twice (in theory for what i'd investigated).
I keep getting the .datepicker is not a function, and I can't get colorbox to work.
I've tested everything in an aspx apart and everything's working fine.
Does anyone have a solution for this ?
Thankyou very much.
A little bit of my code:
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript" src="/Scripts/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery-ui-1.8.8.custom.min.js"></script>
<script type="text/javascript" src="/Scripts/jquery.datePicker.js"></script>
<script type="text/javascript" src="/Scripts/jquery.colorbox-min.js"></script>
<link href="/Styles/jquery-ui-1.8.8.custom.css" type="text/css" rel="Stylesheet" />
<link href="/Styles/colorbox.css" type="text/css" rel="Stylesheet" />
that's the head content.
i'm using jquery like this:
$(document).ready(function () {
$("#<%=tbFechaIngresoEntrante.ClientID %>").datepicker();
$("#<%=tbFechaAsignacionEntrante.ClientID %>").datepicker();
$("#<%=tbFechaOficioEntrante.ClientID %>").datepicker();
$("#<%=tbFechaSalidaSalientes.ClientID %>").datepicker();
});
and finally i have tabcontrol define like this with several other controls:
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:UpdatePanel runat="server" ID="upTotal">
<ContentTemplate>
<asp:Label runat="server" ID="lbPermisos" Text="Usted no tiene permiso para ver esta página."
Visible="false"></asp:Label>
<div id="divSeguridad" style="margin-left: 200px" runat="server">
<cc1:C1TabControl ID="C1TabControl1" VisualStyle="Office2007Blue" runat="server"
Height="100%" Width="75%" VisualStylePath="/Styles" SelectedIndex="0">
<TabPages>
<cc1:C1TabPage ID="C1TabPage1" Text="Documentación Entrante">