cancel
Showing results for 
Search instead for 
Did you mean: 

Applet name

Former Member
0 Kudos

hi all,

how to get applet name in browser?

murali

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Applet Name? Not clear since ur Q is not sufficient to get helping hands.

U mean the name of Applet defined in the Applet Tags in Web Page? or wat?

Well, say u hv following applet tags

<b>

<APPLET NAME="MyApplet" WIDTH="640" HEIGHT="400" CODE="iChart" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="<Query Template Path>">

<PARAM NAME="DisplayTemplate" VALUE="<Display Template Path>">

</APPLET>

</b>

Then in javascript codes, u can use this method <b>document.MyApplet.getQueryObject().<MethodYouWishToUse></b>

If my assumption on ur Q is not right, then pls raise a Q with DETAILS

Please read the Thread (<b>Read Before You Post</b>) written by Alin Pene, specially note the <u>point No. 5

Former Member
0 Kudos

som,

i have a chart, following is applet code for that chart.

<APPLET NAME="testapp" CODEBASE="/Illuminator/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="640" HEIGHT="400" MAYSCRIPT id="fg">

<PARAM NAME="QueryTemplate" VALUE="PAT/Query1/SIVE/gran_dilu">

<PARAM NAME="DisplayTemplate" VALUE="PAT/Display1/SIVE DISP/GRAN_DIUL">

<PARAM NAME="SelectionEvent" value="Hard1">

</APPLET>

if i click the chart i want to get the applet name like "testapp".

can you tell me the method to get the applet name?

-murali

Former Member
0 Kudos

I feel that you can use the selection event of the applet and return the static value in the function

As all applets will have different events associated with them.... So i don't think it will be possible to have generic function which returns the name of the applet....

Former Member
0 Kudos

Murali

Itz very strange that u want to get the name of Applet itself.

Can u explain the reason/purpose to get the name of Applet? or is there any necessity to get the name of Applet?

Though i din't use such rare case, u may try this by following

<b>document.getElementById('testID').name;</b>

<APPLET NAME="testapp" <b>id="testID"</b> CODEBASE="/Illuminator/Classes" CODE="iChart" ARCHIVE="illum8.zip" WIDTH="640" HEIGHT="400" MAYSCRIPT id="fg">

<PARAM NAME="QueryTemplate" VALUE="PAT/Query1/SIVE/gran_dilu">

<PARAM NAME="DisplayTemplate" VALUE="PAT/Display1/SIVE DISP/GRAN_DIUL">

<PARAM NAME="SelectionEvent" value="Hard1">

</APPLET>

Regards

Som

Former Member
0 Kudos

thanks som

why i want this one is, to set some conditions based on the applet name,

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

To generate applet code you can use dynamic page generator and get the applet code by looking into the source of webpage......

Initially the applet name will be "untitled" .... you can have to define the applet name when using in browser....

<APPLET NAME="MyApplet" WIDTH="640" HEIGHT="400" CODE="iChart" CODEBASE="/Illuminator/Classes" ARCHIVE="illum8.zip" MAYSCRIPT>

<PARAM NAME="QueryTemplate" VALUE="<Query Template Path>">

<PARAM NAME="DisplayTemplate" VALUE="<Display Template Path>">

</APPLET>