• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 313
  • Last Modified:

printing a webpage that contains JApplets

Hey experts,

So i am trying to add a print this page button to a perl CGI script, the CGI prints out HTML code with several applets called.

I need to print all the applets together and they are of type JApplet:

class Graph extends JApplet {

I have spoken to a prof of mine and she seems to think that since the print button is part of the HTML:

<input type="button" value="Print this Page" onclick="window.print()">

and not inside the JApplet then the browser should print it fine but i am finding that firefox does not do the job regardless of OS.

I use a Mac and my safari prints everything fine.

I am thinking that perhaps i am missing a function in my JApplet that the browser may need to call.

Any ideas?

Thank!

- Tristan
0
TristanTheHakSoar
Asked:
TristanTheHakSoar
  • 5
  • 3
  • 2
1 Solution
 
Adam314Commented:
That code works fine in my version of firefox.  Is javascript enabled?


Try this... do you get a message box saying "testing"

<input type="button" value="testing" onClick="alert('testing')">

Open in new window

0
 
objectsCommented:
last time I checked that was a limitation in ff, ie. applets on the page do not get printed



0
 
TristanTheHakSoarAuthor Commented:
Hey guys,

So yeah the alert command works perfectly and i tried searching google for a mention of the inability in firefox and it didn't turn up much accept for some linux Sarge problems where nothing would be sent to the printer.

I have today also spoken with a student who mentioned something about including some kind of compatibility code for firefox in the html.

- Tristan
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
objectsCommented:
have you tried printing any other applets from ff?
0
 
Adam314Commented:
If you select print from the file menu in firefox, does it work?
0
 
TristanTheHakSoarAuthor Commented:
Hey guys, sry but my semester is coming to a close and i'm swamped in homework and studies.

Anyways, i have tried printing other websites such as Addictinggames.com with a game loaded and newgrounds.com just the home page. Neither gets java printed.

Also, no the file > print method does not work either so this seems to be a limitation of firefox as mentioned by objects.

Would anyone have an idea as to what firefox needs in order to make an applet printable?

- Tristan
0
 
TristanTheHakSoarAuthor Commented:
Hey all, so my computer's hard disk bit the biscuit but as i am done schooling for the year i now have access to my work's computers full time.
I have already completed rewriting several applets for them but i am still under pressure to get this print button enabled.
I was speaking to a kid at my University who seemed to be on drugs given his blood shot eyes and constant stuttering but he tried to tell me code i could implement to make firefox print the applets followed by a remark that he was smarter than computer scientists.
I have since made it my duty to avoid this individual when i do see him but i am trying to track down the code as we speak with no success.
Anybody have any ideas? this should be really straight forward, making applets printable in firefox.
Thanks,
- Tristan
 
0
 
objectsCommented:
I've never seen ff successfully print any applet

0
 
TristanTheHakSoarAuthor Commented:
Hey experts,

So If FF (along with anything other than Safari) is gonna be a waste of disk space, i guess i know what i'm going to do. I'm gonna try this new thing i found where i can use java to create a pdf file and send that to the printer, it'll be a load of work but i have to do it.

Thanks,
-Tristan
0
 
TristanTheHakSoarAuthor Commented:
Wow man, i can't believe this, it makes me want to cry lol.

- TristanTheHakSoar
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now