on 10-08-2007 7:31 AM
hi all,
how to get applet name in browser?
murali
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.