News in the Category: JavaScript Subscribe to the rss of this category.

Total posts: 1271 | Sort by Views | Sort by Hits

this.method() and base.method() in JavaScript

Ajax.NET Professional, November 2, 2005
Views: 1,412 | Hits 5,599

I looked around for the problem when you want to inherit from a JavaScript "class" with overriding a method, but I didn't find any solution. Today I tried this, which is working, but not very nice c...

Understanding the JavaScript __doPostBack Function

ASPAlliance.com - The #1 ASP.NET Community, June 20, 2006
Views: 10,900 | Hits 2,096

In this article we will look into the __doPostBack function of JavaScript. Read the article to find some insights about the function....

Row level Javascript for GridView

The Code Project Latest Articles, October 8, 2006
Views: 10,232 | Hits 1,749

This article expalins how to attach Javascript functions to gridview rows and fields...

Expanding / Collapsing GridView Rows

The Code Project Latest Articles, May 7, 2008
Views: 7,610 | Hits 1,107

This article describes how to expand and collapse rows of a GridView using JavaScript....

Open a new window maximized

E-Surfers Weblog, September 30, 2005
Views: 23,311 | Hits 1,038

Just a javascript function used to open a new window maximized: function openwindow(url) {    var options = 'scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no';&n...

Using jQuery to Display Google Maps in a Modal Dialog

BiteTheBullet - Latest 25 Items, April 23, 2008
Views: 5,049 | Hits 952

How to use jQuery and Thickbox to display a Google Map in a modal style dialog....

Multiline TextBox with MaxLength Validation

The Code Project Latest Articles, March 12, 2006
Views: 8,710 | Hits 948

A simple extension of existing TextBox control to attach javascript for maxlength validation....

JavaScript and function.call and function.apply for async execution

Rick Strahls WebLog, August 10, 2006
Views: 5,186 | Hits 867

A while back I posted about a JavaScript issue that I’ve run into quite commonly with callbacks and in working around DOM elements that don’t want to update properly until UI control retur...

Persian Calendar & Date Picker for Web Applications (JavaScript)

The Code Project Latest Articles, November 14, 2007
Views: 8,274 | Hits 855

A library to work with "Persian Calendar", "Hijri Calendar", "Jalali Calendar" and "Gregorian Calendar" with WebForms GUI controls designed for Persian (Farsi) ...

CheckBoxList Select All or None Checkboxes

Andreas Kraus: C#, ASP.NET, SEO, June 26, 2007
Views: 6,867 | Hits 829

Here is an very easy client-side javascript to check or uncheck all your checkboxes from your CheckBoxList at once:function Select(Select){ for (var n=0; n Select All |

Masterpage and Javascript document.getElementById

The Code Project Latest Articles, December 14, 2007
Views: 5,720 | Hits 801

This article talks about the issues faced in accessing the controls inside a Masterpage from Javascript, and points a quick solution...

JavaScript Virtual Keyboard

The Code Project Latest Articles, July 13, 2007
Views: 5,159 | Hits 744

This article presents a Virtual Keyboard - an important addendum to the library of usability tools....

ASP.NET WebResources and GZIP

Rick Strahls WebLog, September 16, 2006
Views: 1,942 | Hits 706

  I wonder if it’s possible to get WebResources.axd to serve GZIP’d content when you provide a resource that is already GZipped.   Yeah I know this sounds kind of harebrained, bu...

Set Print Orientation To Landscape In ASP Pages

EggHeadCafe.com New Articles, September 21, 2006
Views: 9,241 | Hits 632

Actually I'm trying to print a page that has details in the table and that table exceeds width of the A4 page. The height of the page is nearly 1/2 of the height of A4 page. The print in Landscape ap...

Passing Server-Side Values to Client-Side Script

ASPAlliance.com - The #1 ASP.NET Community, May 26, 2006
Views: 4,548 | Hits 625

In this article Peter describes best practices for taking server-side values (whether from a database, web.config or a calculated value) and sending them to the client to be used by JavaScript....

jQuery.position() on Invisible Elements fails

Rick Strahls WebLog, September 20, 2008
Views: 2,332 | Hits 608

Ah, just ran into a tricky issue with jQuerys .position() function. position() returns the top and left position relative to its offset parent. For absolutely positioned elements in most cases this al...

Keep the scroll position of a DIV after postback

Fredrik Norméns Blog, March 30, 2007
Views: 5,095 | Hits 598

Maybe this Tips & Trix will be useful to some of you; at least I have seen that kind of question a lot of times. It’s about how to remain scroll positions in a <DIV> after a postback. ...

Script.aculo.us, Prototype and Asp.Net: Best Friends Forever

ASP.NET Daily Articles, September 9, 2006
Views: 3,219 | Hits 596

Script.aculo.us and Prototype are two incredibly powerful and useful JavaScript frameworks. However, many .Net developers have not heard of them much less put them to use in their applications. This...

Login Page remember me functionality using javascript

The Code Project Latest Articles, September 21, 2007
Views: 5,479 | Hits 595

Remember me functionality using javascript and cookie need to provide user name password will automaticlly read by javscriot function and will add to textbox...

TextBox With Tool Tip Control Implementation

The Code Project Latest Articles, August 6, 2006
Views: 4,630 | Hits 589

How to implement fancy tool tips mechanism for TextBox control...

JavaScript Editors

Rick Strahls WebLog, September 13, 2006
Views: 2,801 | Hits 580

  I’ve been working on refactoring some JavaScript code over the last couple of days. One of the biggest pains in this endeavour is the lack of a decent editor. I’ve been checking out...

Slide menu using JQuery

The Code Project Latest Articles, March 11, 2008
Views: 5,151 | Hits 575

JavaScript Slide Menu with JQuery...

jQuery Selectors

Rick Strahls WebLog, October 27, 2007
Views: 1,694 | Hits 561

One of the things I love about jQuery (and a few other JavaScript libraries) are how selectors can make life very easy when dealing with many objects in the HTML DOM via JavaScript. For example, someo...

Freeze Panes like Excel

The Code Project Latest Articles, August 15, 2007
Views: 4,594 | Hits 540

Freeze Panes in a html tablel cross browser using javascript...

How to calculate difference between two dates using JavaScript

The Code Project Latest Articles, April 8, 2007
Views: 5,690 | Hits 535

This code will give you the diffrence between the two dates in days.Some time it is required in the program to get diff. between two dates.It is so small and very efficient code....

Floating box in javascript

EggHeadCafe.com New Articles, September 29, 2006
Views: 4,037 | Hits 507

Floating Box in Javascript By Pritam Baldota...

Multiline strings in JavaScript

ComponentArt WebLogs, October 17, 2007
Views: 5,284 | Hits 483

Myth: You can't have a string literal stretch across two lines of text in JavaScript.Fact: You can have multiline string literals in JavaScript in all browsers.Multiline (or is it "multi-line...

Trap browser Close Event

The Code Project Latest Articles, September 6, 2007
Views: 4,352 | Hits 465

How to trap browser ( IE / Mozila Firefox) close button and Display alert...

CodeSnip: Handle Browser Close Event on the Server-Side

ASPAlliance.com - The #1 ASP.NET Community, June 7, 2007
Views: 3,776 | Hits 435

In this article Bilal Haidar demonstrates how to handle the close event of the browser on the client side and execute a server side method on the server code....

JavaScript Reorderlist

The Code Project Latest Articles, August 17, 2007
Views: 3,540 | Hits 416

Reorderlist using JavaScript that allows dragging between lists...

Select-Move Rows From HTML Tables Using JavaScript

The Code Project Latest Articles, August 15, 2007
Views: 2,716 | Hits 403

An article on how to select rows from one HTML table and move into another HTML table and then re-order the rows in the second HTML...

Sortable GridView using jQuery's TableSorter

The Code Project Latest Articles, October 9, 2008
Views: 3,427 | Hits 398

A client side sortable grid view using jQuery's plugin Tablesorter...

A note about event bubbling

QuirksBlog, January 26, 2007
Views: 2,923 | Hits 395

Just now I delivered a project during the making of which I noted a feature of event bubbling that, though totally logical, came as a surprise to me. No doubt someone else will be surprised, too, and ...

Drop Down Calendar for the Web

The Code Project Latest Articles, July 25, 2007
Views: 3,387 | Hits 393

a javascript file that provides an easy to use drop down calendar for selecting dates on web pages...

ASP.NET 2.0 Client Validation Javascript Bug

youve been HAACKED, July 14, 2006
Views: 6,416 | Hits 387

I recently ran into a perplexing problem that I believe is a bug in ASP.NET 2.0. Subtext dynamically loads UserControls into the page when fulfilling a request. When commenting on a post, we load a ...

1.x To 2.0 Migration Tip: Where Did WebForm_ DoPostBackWithOptions Go?

AspNetResources.com articles, news and updates, May 3, 2006
Views: 2,764 | Hits 386

We’re finally cutting over from 1.1 to 2.0. As I’ve mentioned a number of times, I prefer the Web Application Project model to the Web Site model. Even though our product is of decent size...

Developing AutoComplete Textbox using ASP.NET AJAX 1.0, Web Service and JavaScript

ASPAlliance.com - The #1 ASP.NET Community, November 26, 2007
Views: 3,004 | Hits 375

This article explains how we can create a Textbox with AutoComplete feature using ASP.NET 2.0 Microsoft AJAX 1.0, Web Services and Javascript. We will see how we can expose a web service so that it ca...

HTML Hyperlink Obfuscation with Client Script

EggHeadCafe.com New Articles, December 30, 2007
Views: 1,562 | Hits 370

Illustrates a simple way to used key-generated XOR obfuscation / deobfuscation of hyperlinks so that when a user hovers over a link it will appear meaningless.  read moreBy Peter Bromberg ...

jQuery CoDe Magazine Editorial Posted

Rick Strahls WebLog, June 10, 2008
Views: 1,709 | Hits 359

My jQuery editorial for the Code Magazine Newsletter went live today. It turned into a rather lengthy affair (what else is new?) even though it's a high level editorial and so doesn't show code. The p...

No Empty Selector in jQuery

Rick Strahls WebLog, October 3, 2008
Views: 1,951 | Hits 345

One thing that bugs me about jQuery selectors is that if you pass a null or empty value into the jQuery constructor you end up with a selection of the document. In other words if you do any of the fol...

jQuery Books Review

Rick Strahls WebLog, May 27, 2008
Views: 1,430 | Hits 342

As you may have noticed if you read this blog on occasion I've been doing quite a bit of work with the jQuery JavaScript library in the last few months. I've kind of fallen into a couple of very clien...

File Search using Javascript

The Code Project Latest Articles, December 13, 2007
Views: 3,769 | Hits 331

Search files in client machine using javascript....

Datagrid for Master/Child or Master/Slave details using ASP.NET and C#

The Code Project Latest Articles, February 7, 2008
Views: 3,503 | Hits 320

Expandable/Collapsable rows in grid using Javascript to show and hide....

A jQuery Client Status Bar

Rick Strahls WebLog, June 13, 2008
Views: 4,245 | Hits 317

Several people have asked about the status bar in my jQuery Photoalbum example I posted recently. This is nothing fancy at all and actually quite simple to do, but since several people have asked me I...

Invoking a Client-side JavaScript Function from the Server-side Code

DevX: .NET Feed, November 12, 2007
Views: 2,558 | Hits 311

.NET allows you to call a JavaScript function from the server-side code. For example, suppose you want to to display a message box to the user. This can be accomplished in two steps....

Improving JavaScript Skills

K. Scott Allen, November 3, 2009
Views: 3,440 | Hits 306

A few people have asked me how to improve their JavaScript ability. Not just learn about syntax and crazy stuff like closures, but how to apply the same design skills they have in their primary langua...

Calender Popup

EggHeadCafe.com New Articles, September 29, 2006
Views: 1,855 | Hits 291

Calender Popup is javascript popup which is used to open calender in popup window. By Pritam Baldota...

JavaScript Expandable / Collapsable Panel Control

The Code Project Latest Articles, September 5, 2008
Views: 3,523 | Hits 284

This article describes how to create an Expandable / Collapsable Panel Control using JavaScript....

JSON Serialization of a DataReader

Rick Strahls WebLog, April 24, 2009
Views: 5,301 | Hits 282

Ive run into a scenario a few times now where I ended up with a DataReader at the end of a service call that I want to serialize into JSON to feed to the client. Dont start -  Im not recommending...

Modals or No more popups

.Avery Blog, October 8, 2007
Views: 1,121 | Hits 281

Back in my post about what I think some best practices are in ASP.NET applications I mentioned that a good web application shouldn't use popup windows. Instead of popup windows I think it is much bett...