I found this script very helpful while designing surveys for my organization. This post applies to: – MS SQL server 2005+ – VB.NET – VS2010 – .NET 4.0 Framework Javascript code <asp:content ID=”Content1″ ContentPlaceHolderID=”HeadContent” Runat=”Server”> <script type=”text/javascript” language=”javascript”> function CheckCheck() { var chkBoxList = document.getElementById(‘< %=CheckBoxList1.ClientID %>’); var chkBoxCount = chkBoxList.getElementsByTagName(“input”); var btn = document.getElementById(‘< [...]
Archive for the 'JavaScript' Category
Drop-down onChange event
Chose file type: <select onChange=”window.location=this.options[this.selectedIndex].value;”> <option selected>Please select</option> <option value=”Music.aspx”>Music Files</option> <option value=”Movie.aspx”>Movies</option> <option value=”OfficeDoc.aspx#word”>Word Files</option> </select> EXAMPLE: Chose file type: Please select… Music Files Movies Word Files
OnMouseOver Pop-Up Box
code <head> <meta http-equiv=”Content-Language” content=”en-us”> <meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″> <title>My Page</title> <link rel=”stylesheet” href=”../link.css” type=”text/css”> <script type=”text/javascript” src=”../javascript/browser_detect.js”></script> <script type=”text/javascript” src=”../javascript/popup.js”></script> </head> <body> PROFESSIONAL SKILLS<a onmouseover=”popup(‘Skills and abilities not directly related to the position for which you are applying, however, they may provide additional insight into your abilities as an employee (Examples: typing 60 words [...]