Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use LDAPApllet in html-javascript page

Status
Not open for further replies.

bakakaba

Programmer
Jun 9, 2005
3
FR
Hi,

I wrote an LdapApplet which can work properly. Then I want to be able to call it from webpage. For the moment, here's the code I use:

<html>
<head>
<script type="text/javascript">
function runApplet(string){
var telephoneNumber;
var alias = string;
telephoneNumber = document.LdapApplet.search("alias=jbeltran");
return telephoneNumber;
}
</script>
</head>
<body>
<applet code="HtmlLdapApplet.class" name="LdapApplet" width=320 height=220></applet>
<script type="text/javascript">
var phoneNo = runApplet("alias=jbeltran");
document.location.href = "viewLdap2.html?pn="+ phoneNo
</script>
</body>
</html>

and it doesnt work by informing the fault: NoClassDefFoundError

I think it's because IE doesnt support LDAP classes yet. I found an ebook saying that: we must creat a CAB file. I tried it but it didnt work.

Could anybody help me to figure out what I have to do to make my LdapApplet running on the webpage, please?

Thanks a lot for reading this message,

have a nice day
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top