cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent::Calling Applet from JavaScript

Former Member
0 Kudos

Hi all,

In my application form(Abstract Portal Component) in PDK, after the user clicking the submit button, the control goes to java script and it verifies for validation. After validations completed successfully, i need to call a Applet. Can anyone help me to do that.

If you provide some code also it will be very helpful to me.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can call an applet from javascript using the following type of code within the javascript function:

window.document.write('<applet code="ImageUploadControl.class" codebase="http://'location.host'/imageupload/upload" width="220" height="230" viewAsText name=Applet'i'> <param name="imginit" value="http://'location.host'/imageupload/upload/sos-logo-xsmall.jpg"></applet>');

if my suggetion is helpfull.... please reward with points.

Thanks

Ritu

Former Member
0 Kudos