André Vieira wrote:
can you please share the java script a bit more. like how
?
osjs(document).ready(function() { osjs('form').prepend('<input type="submit" onclick="return false;" style="display:none;" />'); });
onclick
false
Hi all,
I copied the JavaScript solution suggested by Miguel Ventura, and that alone didn't do the job. Then I set Default to No for the buttons involved, and that worked.
But we are a couple of years and a few versions further now ... does anyone know if there is a more elegant solution available in version 10? Preferably working in all modern (versions of the) browsers?
Hello guys, FYI, I used this to disable an enter for a input wigdet:
I was wondering, if I want to use the same disability for the all eSpace. I tryed the code above but it didn't work.
João Bernardes wrote:
Thank you Joao ... it works great !
Happy to hear that :)
In the marked solution above ....it says: ..."to prevent any postback include an handler for the onclick event with the code 'return false;' this will prevent the action of the button to be completed, meaning no postback is done. "
First: I don't see whereand how in the Properties pane I can connect this onclick event to a handler.....can anyone tell me in practical terms what steps are needed here to fill in...... (Use in OS Traditional Web app)
Secondly : Depending on the browser does this suppress the POST of the whole page when the Enter key
is hit in the screen from within any Input field in this same screen?
- Thx for any assistance offered