I'm working on the design for a new application that will interact with a Java Applet on the web page. I imagine I can load the applet simply enough with an HTML container, but I don't want the applet to reload and re-initialize every time a button or other action returns control to my RPG program and it re-displays the screen. Is there a way to make part of my application "static" so I can write a format to the screen only once with the Java applet in it so that other screen interactions won't affect it?
Would simply placing the applet in its own record format, writing that format once, and using overlay on all the other screens accomplish this?
--Bryan
"Static" Java Applet on page?
-
- Profound User
- Posts: 72
- Joined: Fri Oct 01, 2010 5:07 pm
- First Name: Bryan
- Last Name: Leaman
- Company Name: InVue Security
- Phone: 704-752-6513 x221
- Address 1: 15015 Lancaster Hwy
- City: Charlotte
- State / Province: North Carolina
- Zip / Postal Code: 28277
- Contact:
- Alex
- Profound Logic Staff Member
- Posts: 233
- Joined: Fri Jan 04, 2008 12:10 pm
- First Name: Alex
- Last Name: Roytman
- Company Name: Profound Logic Software
- Contact:
Re: "Static" Java Applet on page?
Overlaying a format will not accomplish what you want. The original format is still resent with every interaction from the user.
However, you can modify the global HTML template used by Profound UI to accomplish this. The original template we ship is called start.html. You will want to make a copy of it before making your modifications.
You can find details here on how to accomplish this:
http://www.profoundlogic.com/docs/displ ... start.html
However, you can modify the global HTML template used by Profound UI to accomplish this. The original template we ship is called start.html. You will want to make a copy of it before making your modifications.
You can find details here on how to accomplish this:
http://www.profoundlogic.com/docs/displ ... start.html
-
- Profound User
- Posts: 72
- Joined: Fri Oct 01, 2010 5:07 pm
- First Name: Bryan
- Last Name: Leaman
- Company Name: InVue Security
- Phone: 704-752-6513 x221
- Address 1: 15015 Lancaster Hwy
- City: Charlotte
- State / Province: North Carolina
- Zip / Postal Code: 28277
- Contact:
Re: "Static" Java Applet on page?
I was afraid that using overlay wouldn't work, and have since verified it. I've created a custom start page for just this application, and that aspect is working fine. New roadblock in a separate thread, since it doesn't apply to the "static" applet question.
Thanks!
--Bryan
Thanks!
--Bryan
-
- Profound User
- Posts: 72
- Joined: Fri Oct 01, 2010 5:07 pm
- First Name: Bryan
- Last Name: Leaman
- Company Name: InVue Security
- Phone: 704-752-6513 x221
- Address 1: 15015 Lancaster Hwy
- City: Charlotte
- State / Province: North Carolina
- Zip / Postal Code: 28277
- Contact:
Re: "Static" Java Applet on page?
Using a custom copy of start.html for this application was more trouble than it was worth. I opted to use javascript to append my applet to the document.body, which places it outside the pui div. I didn't like how I had to link to the application nor that it apparently had to be enabled for anonymous calls.
So my program does "exfmt WAIT." The WAIT format appends the applet, then waits for it's initialization to complete and does a "pui.click()" to progress to the next screen, which is where the "real" application logic resides.
--Bryan
So my program does "exfmt WAIT." The WAIT format appends the applet, then waits for it's initialization to complete and does a "pui.click()" to progress to the next screen, which is where the "real" application logic resides.
--Bryan
Who is online
Users browsing this forum: No registered users and 4 guests