Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pop-up subform
Message
General information
Forum:
ASP.NET
Category:
Web forms
Title:
Miscellaneous
Thread ID:
00696344
Message ID:
00696352
Views:
20
>Could someone point me to a resource on how to make a pop-up subform and how to return a value from it? I am creating a find dialog, that allows a person to input a value, then returns the primary key associated with that value. Similar to the inputbox control in VFP7.

You can do this using JScript.

Here is a code that opens up a new window..
function createWindow(cWindName,nHeight,nWidth) 
{
	window.open("",cWindName,"height=" + nHeight + ",width=" + nWidth + ",top=35,left=35,toolbar=no,menubar=no,resizable=yes,scrollbars=yes") ;
}	
The following fn is called from Command Button that returns selected value and closes the form.
function SelectPOValue(toPO)
{
  loCurrentRow = toPO.parentNode.parentNode;
  window.opener.document.OpenOrder.txtPO.value = loCurrentRow.cells(0).firstChild.nodeValue;
		window.close();
	}
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform