Feeds:
Posts
Comments

Archive for the ‘Javascript’ Category

        We have used FCK editor as an HTML editor for our recent project. It is one the best and easy to integrate HTML editor available free. When I test the editor on local server and it works fine. However when we add image using FCK editor the image path is relative to tour webpage. [...]

Read Full Post »

     While refreshing the AJAX skill today I wrote a simple code to display please wait message while asynchronous postback. I added one Update Panel, one Update Progress panel and a button control and registered button  as Asynchronous Postback Trigger control. I assign my UpdatePanel’s id as AssociatedUpdatePanelID to UpdateProgress panel. I ran the code [...]

Read Full Post »

      Sometime we need to find when the page is loaded or page is completely loaded before specific java script function is called.  As we all know if try to access DOM element using document.getElementBtId() before page is loaded or page is completely loaded we get error. So to prevent the error we can user [...]

Read Full Post »

You may receive “Page Methods is undefined while calling Server Side function from Client Side Code using PageMethods in AJAX. The possible cause can be,
1. You may have not added EnablePageMethods=”true” in ScriptManager tag.

1: <ajax:ScriptManager
2: EnablePageMethods=”true” ID=”ScriptManager1″ runat=”server”>
3: </ajax:ScriptManager>

2. You have a [...]

Read Full Post »

       I will discuss how to integrate youtube video in asp.net. Youtube provides the API to access the its huge database of videos. It also provides search facility and customized player for integration.
       First thing you need is to get developer key for accessing youtube service. You can get it from here. Once you get the [...]

Read Full Post »

         As a software developers we must have to deal with javascript every now and than. There are some scripts which is browser dependent. You need to write different functions for different browsers. To achieve this you must require to detect the browser. Below code may helps you,

1: var isIE = false;
[...]

Read Full Post »

     I have generic list say, List<int> and I want to find the duplicate values from the List<int> and store it in new List<int>. There are many ways to achive this. One can loop through all the elements of List<int> and store the duplicate in other list OR can use anonymous method to acieve same. [...]

Read Full Post »

         There two powerful methods available in dotnet two include JavaScript on page from code behind. Normally we write the JavaScript functions on aspx page however in some case we have to dynamic script which we can not write on aspx page for many reasons like the script require some data which we have to [...]

Read Full Post »

      Safari has inbuilt debug menu for java script. By default it is hidden. Safari’s “Debug” menu allows you to turn on the logging of JavaScript errors. To display the debug menu in Mac OS X, open a Terminal window and type:
            defaults write com.apple.Safari IncludeDebugMenu 1
      To display the debug menu in Safari 3.0 for [...]

Read Full Post »

      Recently I have to use color picker control in my project so that each user has its own UI. The best color picker example I found on blogger.com. This inspired me to create my own color picker control. 

Fig (1) Color picker control.
   Color picker allows user to do following thisng. User controls expose the property [...]

Read Full Post »

Older Posts »