Re: problem with method reset()



On Apr 28, 12:48 am, artev <mailnotspa...@xxxxxxxxxxx> wrote:
if in a page I have a search form and I want use the method reset()
for reinsert the default values, I notice that after a research, for
the method reset(), the default values aren't more that first time loaded
in the form but that of the form set for the search (I think so);

see that the form is inner the same result's page, pheraphs
the reset() 'see' how default values only the last form and not those
that is loaded initially;

is there some tip?

Method reset() will set all values back to what it was ON page LOAD,
so if you want it to behave the way you describe (if I understand it
correctly) you can:
1) provide your own reset() function
example code
<input type="..." defaultValue="..." value="..." />
....
<input type="reset" onclick="myReset()" ... />
in you function take values from defaultValue attribute and assign it
to value attribute...
2) if you DO NOT want to override the reset() function you can load
the page with default values and set current (search specific) values
in onLoad script, then std reset() will work the way you want...
.



Relevant Pages

  • Re: Strange z196 LOAD behavior
    ... Since IPL Text is at the other end of ... we always performed a RESET. ... walk-around - LPAR re-Activation). ... After that, a LOAD is performed. ...
    (bit.listserv.ibm-main)
  • Re: Multiple drivers problem with a simple set-enable counter process
    ... the timer is not decrementing. ... declaration and load line, ... clk, reset: in std_logic; ... architecture arch of ps2_rx is ...
    (comp.lang.vhdl)
  • Re: long/short sensitivity list
    ... The correct sensitivity list is "Reset, ... happens when the signal "Load" changes. ... a change in 'Load' so you've caused the simulator to needlessly waste cycles ... synthesis tool will report this as a warning about an incomplete sensitivity ...
    (comp.lang.vhdl)
  • Re: Power-On Reset
    ... >We don't want to load either of the xtal pins, ... I just did the RESET logic inside a CPLD. ... You can load the osc-out pin of the 8051 with a CMOS gate without causing ... fix a broken subtract. ...
    (sci.electronics.cad)
  • Re: Power-On Reset
    ... >We don't want to load either of the xtal pins, ... I just did the RESET logic inside a CPLD. ... You can load the osc-out pin of the 8051 with a CMOS gate without causing ... fix a broken subtract. ...
    (sci.electronics.design)