on 05-02-2006 1:42 PM
Hi All,
Can u give me the solution to work with client side eventing with HTMLB with a jsp page but not with a dynpage.
Regards,
sireesha.
Hi sireesha,
Check this.
<%@ taglib uri="tagLib" prefix="hbj" %>
<%@ page import="com.sapportals.htmlb.enum.EventTrigger,com.sapportals.htmlb.event.Event" %>
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<script language="Javascript">
function checkinput(){
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var inputfield1 = eval(func("inf1"));
var input1 = inputfield1.getValue();
if (input1==""){
alert("Enter mandatory fields");
}
}
</script>
<hbj:form>
<hbj:textView id="tv1" text="Name"/>
<hbj:inputField id="inf1"
type="String"
required="true"
jsObjectNeeded="true">
<% inf1.setClientEvent(EventTrigger.ON_BLUR, "checkinput()"); %>
</hbj:inputField>
<br>
<hbj:textView id="tv2" text="City"/>
<hbj:inputField id="inf2" type="String"/>
<hbj:button id="b1" text ="submit" onClick="onSubmitclicked"/>
</hbj:form>
</hbj:page>
</hbj:content>
Regards,
Harini S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.