I've got an ND HTML page that performs a search. On the page there are several
criteria - some text field, combo box and
check boxes, and a 'search' button (ND Submit button) and a 'Clear' button (ND
Submit).
There is also a repeated to display the result after a search. That repeated is
bound to the data object columns.
I have 2 problems:
1. When I click on the 'Search' button the code under the 'btnSearch_onWebEvent'
is executed - which does the execution of the data object based on the query
and
return back the result to the same page. While the search is being performed
it
is possible to click on the 'Search' button again which will send another web
event
to the server.
How can I disable the 'Search' button while it is performing a search (but enable it
again after the result is loaded back to the page)?
2. After entering the criteria and clicking on a Search button will perform a search
based on the entered criteria. But if the entered key is clicked instead of 'search'
button, while the focus is on one of the criteria fields /check boxes, all the
criteria are ignored and the
form is resubmitted and displayed ALL the
records in the repeated. Basically I
believe it is executing the data object that
is bound to the repeated.
How do I force the code under the'Search' button_onWebEvent to be executed when the
enter key is clicked?
I tried to do it in java script - onSubmit event of the page I called a function that
invoke the click() of the ND submit button.
document.forms.pgProductSelection.elements
['btnSearch_onWebEvent(btnSearch)'].click();
But the ND code under the 'btnSearch_onWebEvent' which does the search
and reloaded the page, does not seem to get fired. Instead the page was re-submitted
&
executed the results ignoring the criteria on the page again.
Thank you for your help in advance.
Regards
Cho Cho Aung
_________________________________________________________________________
To unsubscribe from this mailing list please send an email to:
[EMAIL PROTECTED]
Please remember to use the same email address you subscribed with.
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]