Let’s take an example of my previous post and make it little bit user friendly. Here is the demo page link to see in live action. In the example(#1. Without ValidatorEnable), Custom validator fires and shows a validation message only…
JavaScript
Let’s take an example of my previous post and make it little bit user friendly. Here is the demo page link to see in live action. In the example(#1. Without ValidatorEnable), Custom validator fires and shows a validation message only…
Everybody familiar with Enum in server side scripting language. I was wondering if we can define Enum type in JavaScript and I found that we can define type as Enum. Here is the syntax to define Enum. Here is example…
Sometimes there is a situation where you need to display some default image if remote image URL does not exist. We have an application that shows up songs information from apple site and sometimes there is a missing artwork image.…
Let’s say if you want to run some JavaScript method right after Ajax modal popup opens, we probably think injecting JavaScript method into page like this. if (!Page.IsStartupScriptRegistered(“PickerInit”)) Page.RegisterStartupScript(“pickerInit”,javascriptString); The JavaScript we inject using above method will be called on…
With JavaScript, it is possible to execute some code NOT immediately after a function is called, but after a specified time interval. This is called timing events. <html> <head> <script type=”text/javascript”> function timedMsg() { var t=setTimeout(“alert(‘5 seconds!’)”,5000) } </script> </head>…
Recent Comments