on 10-24-2007 6:38 AM
Hi,
I have a requirement for disabling the copy paste option for INPUTFIELD in BSP application using HTMLB.
I got the required javascript code but i dont have onBlur,onChange, keyDown,keyPress etc events in htmlb.
can any one suggest me how can i use the inputfield events in htmlb.
Thanks & Regards
hi siva ,
ENTER THE CODE INTO THE BODY OF YOUR PAGE/SITE
<body onpaste="return false";>
<body oncopy="return false";>
hope this helps
Thanks ,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva ,
If this is not the case ur looking for then try the below code ,
<%
data : tmp_string type string.
concatenate `<input onCopy="return false;"` `onPaste="return false;"` into tmp_string.
%>
<bsp:findAndReplace find = "<input"
replace = "<%= tmp_string %>" >
<htmlb:inputField id = "Inf1"
value = "test"/>
</bsp:findAndReplace>
Hi Siva,
If you cant to do this for a specific InputField, then you will have to use the findAndReplace Extension....
For Eg.
<%
data : tmp_string type string.
concatenate `<input onCopy="return false;"` `onPaste="return false;"`
%>
<bsp:findAndReplace find = `<input`
replace = "<% tmp_string %>" >
<htmlb:inputField id = "Inf1"
text = "Some text here"/>
</bsp:findAndReplace>
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.