Home » Archive by category "JavaScript"

Archive for the 'JavaScript' Category

jQuery Datepicker

            To create jQuery Datepicker like this one below do the following: 1. Save the calendar.zip on your computer 2. Unzip the folder and move it to your server 3. Include the js scripts and css style in your page: – <script src=”/my-website/jcalendar/jquery-1.8.3.js” type=”text/javascript”></script> – <link href=”/my-website/calendar/jquery-ui.css” rel=”stylesheet” type=”text/css” /> […]

Count number of characters in textbox

Markup Page <strong>Required Info:</strong>  <asp:Label ID=”TotCharReqInfo” runat=”server” ></asp:Label>   <strong>Body Length:</strong>  <span id=”BodyLength”>0 <strong>Total Length:</strong> <span id=”TotLength”>  <asp:Label ID=”TotLengthLbl” runat=”server” ></asp:Label> <strong>Left:</strong> <span id=”CharLeft”> <asp:Label ID=”ChLeft” runat=”server” ></asp:Label> <asp:TextBox id=”txtInputOnln” runat=”server” TextMode=”MultiLine” Width=”300px” Height=”90px” MaxLength=”350″ onKeyUp=”Count(this,350)” onChange=”Count(this,350)”/> Click to read more… <script type=”text/javascript”> var ChLeftVar = “<%=CharLeftInt %>”; var ChLeftOut var ChLefVar2 function count(clientId) { var txtInputOnln = […]

Close thickbox (popup) refresh parent page

Test.aspx <html xmlns=”http://www.w3.org/1999/xhtml”> <head runat=”server”> </head> <body> <form id=”form1″ runat=”server”> < %= Me.UpdMsg %> </form> </body> </html> Test.aspx.vb Protected UpdMsg As String Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)Handles Me.Load If Page.IsPostBack Then UpdMsg = “<a href=’#’ onClick=’parent.location.reload(1)’>Close!</a>” End If End Sub