on 09-22-2008 11:42 PM
I would like to write some javascript code for the onblur event of input_field webitem.
also, For a command button, is there any way that I can combine both a Sript function as well as wizard Instruction commands?
Any help is appreciated!!!!!!!
Hi Madhu,
To combine a wizard instruction with a custom javascript, do the following:
1) Add a script item in your template
2) Edit the javascript for that script item by using the wizard. There's a button to do that
3) Edit the javascript function or call it from your custom function.
There's no standard way to access the onblur even for an input field. You will have to find the ID of the input field that you are interested in by viewing the HTML source in the browser and then use javascript to attach your custom code to that onblur event of that field.
Hope this helps.
Cheers,
Emmanuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Emmanuel,
Thanks for the tip.
I used the script object to generate a function using the wizard.
Then edited that function to add my javascript code to it. Then called it from a command button bypassing the onblur event logic.
Do you think we can create a function with the same name as the one listed against the onblur event in the generated HTML and add custom logic to it? I will try that later and let you know
Thanks very much Though.
-Madhu
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.