Geeks With Blogs
faizan ahmad Usually the things which were not a straight Google March 2009 Entries
Pass Multiple values to Modal Window
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;dialogWidth:600px;scroll:no;status:no;resizable:no';
  url = 'relative/path/to/page';
  var returnValue;

  returnValue = window.showModalDialog(url,objArgs,modalWindowFeatures );

Posted On Wednesday, March 25, 2009 5:16 PM

Copyright © faizanahmad | Powered by: