Press the F7 pop-up supplier selection dialog box on the text box, double click back to the supplier name

xiaoxiao2021-03-06  50

//asp.net javascript

//[*/***]index.aspxfunction SearchSupply (supplyName) {var ret = window.showModalDialog ( 'showsupply.aspx pSupplyName =?' supplyName, window, 'scroll: no; status: no; Center: Yes; Dialogheight: 280px; DialogWidth: 480px; '); if (ret! = null) {var newret = ret.split (",") Document.all.txtSupplyName.Value = newret [1];}}

Function onhelpkeyDown () {if (event.keycode == 118) {var vsupplyname = document.all.txtsupplyName.Value; event.srcelement.value = "Inquiry, please wait ..."; if (Event .srcelement.id == "txtsupplyname") {searchsupply (vsupplyname);}}}

Manufacturer name

//[**/**]Index.aspx.csprivate void page_load (Object sender, system.eventargs e) {txtsupplyname.attributes ["onkeydown"] = "onhelpkeydown ();";

//[***/*]showsupply.aspx (WINDOW.RETURNVALUE = Document.all.ListBox1.Value; window.ListBox1.Value; window.opener = null; window.opener = null; window .close ();}

转载请注明原文地址:https://www.9cbs.com/read-117073.html

New Post(0)