Dynamically set read-only/read-write for a component on the page
Document. getElementById ("custName"). readOnly = false;
Document. getElementById ("custName"). readOnly = true;
Dynamically hide/display a widget on the page
Tdid. style. display = "block" // tdid is the Control id... none is not displayed. block is displayed
Tdid. style. display = "none"
Run at intervals
SetTimeout (aa (), time) // The number of milliseconds the specified function can call itself to achieve an infinite loop.
Display the page in the specified rack
<A href = "url" target = "xxx"> // The url webpage is displayed in the frame with the frame name.
Automatic page loading execution Method
<Body onload = aa ()> // automatically load the aa () method
Trigger event in the drop-down list...
<Select name = "mainResult" id = "mainType" onChange = "selectSubResult (this. value)">
Get Component Object
Var a = document. getElementById ("xx") // xx component id
Dwr Methods
Fill in elements in the drop-down list
DWRUtil. addOptions ("xx", p) // xx indicates the drop-down list id, and p indicates the Map object.