faizan ahmad

Usually the things which were not a straight Google

  Home  |   Contact  |   Syndication    |   Login
  15 Posts | 0 Stories | 55 Comments | 0 Trackbacks

News

Archives

Post Categories

.NET

ASP.NET

Web Development: Front End

A JavaScript object can be of great help when you need to pass multiple values to a Modal Window. E.G. var objArgs = new Object(); objArgs.Value1 = "Value 1"; objArgs.Value2 = 2; var modalWindowFeatures = 'dialogHeight:600px;dialogW... url = 'relative/path/to/page'; var returnValue; returnValue = window.showModalDialog(url,... );
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

If you have a gridview/repeater control or other tabular data within a div, scroll bar appears when height of data gets bigger than that of DIV. If you want to scroll down to a certain position, you can use 'Element.scrollTop' property in Javascript: document.getElementById(div... = PixelsToScroll; Calculating the PixelsToScroll may vary depending on scenerio, In my case, I wanted to scroll down to a selected row within Repeater control. Row was selected using RadioButton and page...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati