Tag Archives: Javascript

ActiveX controls in HTML files

Normally if you include any ActiveX control in an HTML file and browse it using MS Internet Explorer(ActiveX only works in MS IE) it gives you warning about the ActiveX control. Here is a way to avoid this warning problem. … Continue reading

Posted in Javascript | Tagged , , | Leave a comment

Set timeout and Clear timeout in Javascript

Timing events in javascript helps to execute a function, after a specified time interval. setTimeout() – Executes a code some time in the future. clearTimeout() – Cancel an existing setTimeout event. Here is sample code snippet for a Javascript counter … Continue reading

Posted in Javascript | Tagged , , , , | Leave a comment

Cookies in Javascript

A cookie is a variable that is stored on the visitor’s computer. Each time the same computer requests a page with a browser, it will send the cookie to the client machine. Cookies are KeyValue Pairs. Create a Cookie. This … Continue reading

Posted in Javascript | Tagged , , , | Leave a comment

Adding and reading values from combo box using Javascript

If you are using Ajax Pro or MS Ajax with Page methods(Available in ASP.Net 3.5), you may want to fill a dropdown list from client side. This code snippet will help you to add items to dropdownlist(combobox) in runtime using … Continue reading

Posted in Javascript | Tagged , , | 7 Comments

Javascript confirm dialogs from link buttons of Datagrid

If you are using DataGrid or GridView in ASP.Net, we may require to display a confirmation, like when you are deleting a record. This code will help to display confirmation dialogs from Client side, with ASP.Net Datagrid control or Gridview … Continue reading

Posted in .Net, Javascript | Tagged , , | Leave a comment