Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Hiding Java advertisement (Read 2973 times)
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
Hiding Java advertisement
Nov 21st, 2007 at 8:29am
Print Post  
Dear All,
has anyone of you managed to hide the "visit us at Java.com" when using the Java applet in NetDiagram?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hiding Java advertisement
Reply #1 - Nov 21st, 2007 at 8:46am
Print Post  
Have they started displaying advertisements? My version of the Java plugin displays only the Java cup logo while loading. And then when you visit the page the next time, the applet is loaded immediately from the cache and you don't see even the logo? Yet, it might be possible to hide it by starting with a very small applet, and then increasing the size from the AppletStarted event. I will try this and let you know if it works.

Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Hiding Java advertisement
Reply #2 - Nov 21st, 2007 at 8:55am
Print Post  
This does the trick - set the Width and Height attributes of the FlowChart to 1 pixel, and assign the following JavaScript function to AppletStartedScript:

function onAppletStarted()
{
     var fcApplet = <%= fc.AppletElement %>;
     fcApplet.width = 750;
     fcApplet.height = 400;
}

Replace the size values above with your original width and height. You might have to add a fixed-size div around the flowchart, to prevent the user from seeing the page elements moving around when the applet is resized.

Stoyan
  
Back to top
 
IP Logged
 
KBalquis
YaBB Newbies
*
Offline


Senior developer

Posts: 12
Joined: Nov 19th, 2007
Re: Hiding Java advertisement
Reply #3 - Nov 21st, 2007 at 9:06am
Print Post  
Thank you very much.
It works Perfectly. Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint