on 08-17-2007 5:20 PM
I'd like to use the same Java applet in my HTML with different types of display templates (and template types - some will be iChart, some iSPCChart, etc)depending on a value that a user picks off a list.
How do I change the 'code=' dynamically?
David,
Your best bet would be to use an iFrame to house an irpt page. Then in the parent html page where the user makes their selection simply pass through the necessary parameters, etc. to the irpt page using the named tokens embedded in the irpt page itself.
For an example you can refer to a predelivered sample on your server: <a href="http://localhost/Lighthammer/Samples/SPC/Servers.irpt">http://localhost/Lighthammer/Samples/SPC/Servers.irpt</a>
Essentially the user choices just set the stage and when they press the 'Go' button you formulate a url and change the src of the iframe. The irpt page does all the necessary search and replace tokens from the request url string and your dynamic page shows up.
Best Regards,
Jeremy Good
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
David,
On your irpt page your applet code will look something like this:
<APPLET NAME="BatchList" CODEBASE="/Illuminator/Classes" CODE="" ARCHIVE="illum8.zip" WIDTH="95" HEIGHT="306" MAYSCRIPT> notice the CODE="" where display is the session variable you will set from the "main" page (the page containing the iframe in Jeremy's scenario).
Joe
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.