garyennis
asked on
printing from VRML frame
I have a kiosk application based around a VRML model (running cosmoplayer2 in win95) - this means that
the user does not have access to the print command under the file menu.
Is it possible to set up some sort of HTML/Javascript/Java/Vrml
functionality that allows me to print the VRML frame without accessing
the menu bar??
Preferably, I would like to be able to print from a defined button in
the HUD, but any suggestions would be considered.
the user does not have access to the print command under the file menu.
Is it possible to set up some sort of HTML/Javascript/Java/Vrml
functionality that allows me to print the VRML frame without accessing
the menu bar??
Preferably, I would like to be able to print from a defined button in
the HUD, but any suggestions would be considered.
Do you mean, clicking - say - an Anchor inside the world to print... what? the html page, or the VRML itself?
ASKER
Yes - I mean clicking on part of the world itself, in order to print the VRML frame.
ASKER
Yes - I mean clicking on part of the world itself, in order to print the VRML frame.
Ok, if you can find the javascript code to print, i can tell you how to use it from the VRML world.
ASKER
Perhaps this -
<a href="dummy" onclick="document.print()" >Link</a>
<a href="dummy" onclick="document.print()"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers Julio....
Havnt tried it out yet - need to install NN4 but sure it'll work fine.
HUD means Head Up Display (meaning geometry that stays in the viewport at all times - like what a pilot sees through his visor!).
Cheers!!
Havnt tried it out yet - need to install NN4 but sure it'll work fine.
HUD means Head Up Display (meaning geometry that stays in the viewport at all times - like what a pilot sees through his visor!).
Cheers!!
ASKER
Forgot to ask - any workaround for Netscape Navigator 3???
No, i'm afraid there's no workaround; in fact, that scheme (calling Javascript from an Anchor) workes on any browser supporting Javascript, but it is the print() method itself that has been implemented in NN4; no ways to print in previous versions.
BTW, thanks for your explanation :)
Bye, julio
BTW, thanks for your explanation :)
Bye, julio
Huh, forgot to tell; to get rid of the browser version problem, you could investigate wether a Java applet is allowed to print; in that case you could still avoid EAI by having your Anchor call a JS function (as i've shown) and that JS function call a Java function to print (LiveConnect is much more simple and reliable than EAI).