Posts Tagged: Javascript

A collaboration White Board using HTML 5 and SignalR

Posted by & filed under .Net 4.0, ASP.Net, CodeProject, Javascript.

It is very simple and light weight collaboration white board using HTML5 canvas API, JQuery and SignalR. Users can draw together in the white board. Client side implementation The client side implemented using HTML5 Canvas element and JQuery which helps users to draw lines and shapes. The HTML5 <canvas> element is used to draw graphics, [...]

How to disable resizable property of TextArea

Posted by & filed under ASP.Net, Miscellaneous.

If you are using Google Chrome or Mozilla Firefox or Safari browsers, it allows to resize textareas. It may affect your page designs. This feature can be disabled using CSS. You can use resize property to disable it. If you are using Visual Studio, you may get some warning like this. Happy Programming

How to access page methods from JQuery

Posted by & filed under .Net, .Net 4.0, ASP.Net, Javascript.

Most of the time to make web page ajax, developers were using UpdatePanel with Script Manager and sometimes (most of the time in my experience) the update panel will affect the performance of the Page. One of the project I used script manager and Pagemethods for the ajax implementation. The current project I am working, [...]

How to access javascript from WebBrowser control

Posted by & filed under .Net, Javascript, Windows Forms.

We can invoke any javascript function from windows application using InvokeScript method. Here is my javascript function. And we can call this function like this from C# It will show a MessageBox with text 30. You can also call C# function / methods from javascript also. You need to decorate the class using ComVisible attribute. [...]

How to show confirm dialog before user closing browser tab or window

Posted by & filed under ASP.Net, Javascript, Miscellaneous.

Recently in ASP.Net forums, I found a question like how to show an alert box before user closing or leaving browser window or tab. You can find the similar dialog, in StackOverflow.com , when you are started answering a question and then trying to close window / tab or navigating from it without submitting the [...]