Skip to Content
0
Former Member
Jul 30, 2008 at 12:07 PM

Accessing same function from different Applets

20 Views

Hi All,

I have 12 iBrowser as Defect Reason and another 12 iBrowser as Defect Code

selection event on Defect Reason iBrowser should set code in Defect Code iBrowser

I want to call one common function for all the 12 applets but how can i pass applet name ?

example

<APPLET NAME="DefectReasonBrowserSh1" WIDTH="130" HEIGHT="60" CODE="iBrowser" CODEBASE="/XMII/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="A/SlittingDefectQuery">

<PARAM NAME="DisplayTemplate" VALUE="A/SlittingDefectReasonBrowser">

<param NAME="SelectionEvent" VALUE="countNumber">

</APPLET>

<APPLET NAME="DefectReasonBrowserSh2" WIDTH="130" HEIGHT="60" CODE="iBrowser" CODEBASE="/XMII/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="A/SlittingDefectQuery">

<PARAM NAME="DisplayTemplate" VALUE="A/SlittingDefectReasonBrowser">

<param NAME="SelectionEvent" VALUE="countNumber">

</APPLET>

Both the applets are same only the name of the applet varies and both of them call the same function

Problem is how could one know which Applet is selected if one have to access the method

"document.appletname.getQueryObject"

How can applet name be passed dynamically for the function countNumber

Thanks

Namita