April 2008 Entries
In my previous project i was using window.showModalDialog to open a modal window (ASPX Page) from parent ASPX page using JavaScript. But whenever the postback occurs in the modal window during <save > button click, it would spawn off a new window. When searching turned up my Colleagues with same problem who managed to work with window.open.Finally i found a solution which is very simple by just including below tag line in the <head> html of the modal window. <base target=_self>...
Formatting numbers for currency display and more. Formatting numbers so they conform to a specific format can be deceivingly tricky. For example, one of the most common tasks is to format a number for currency display- an integer followed by two decimals. There are more subtitles in such a task than many might think. In this tutorial, I'll discuss formatting numbers in JavaScript, such as number rounding, formatting a number for currency display, and more. Number rounding in JavaScript Lets first...