• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ragarding IE browser

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The question which bothers me is like how to import java packages through javascript that to through IE browser.
like eg:
var r=new java.awt.Frame("Testing");
while running this on IE is giving java is undefined.
If anyone has solution please send me at dbnaveen@rediff.com.
 
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't import java packages with javascript. Java and Javascript are two completely different things. Netscape wanted to get on the Java name when they created thier client side scritping so they named it javascript.
Also, I am moving this to javascript / html forum as this doesn't belong in the JDBC forum. Maybe someone there will know something I don't.
Bill
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
boy you are lost!...have you heard of Applets? maybe thats what you want.

-manav
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Communicating between javascript and java is done through what they call Live Connect. I havent used it.


LiveConnect provides three ways for JavaScript to communicate with Java:
Call Java methods directly.
Control Java applets.
Control Java plug-ins.


Here are some links to info on Live Connect.
http://home.netscape.com/eng/mozilla/3.0/handbook/javascript/
chapter 4
http://developer.netscape.com/docs/manuals/communicator/jsguide4/index.htm
chapter5
http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm
chapter 14
[This message has been edited by Randall Twede (edited May 01, 2001).]
 
devara naveen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai manav
the thing what i wanted is not from applets i want it from javascript if you get it from applets it's not great i think doing this applets is not very difficult because it comes under basics in applets.
I am giving the code which works in Netscape
var frame=new Packages.java.awt.Frame("Java script");
frame.add(new Button("Test"));
frame.pack();
frame.show();
Try to work it through IE browser in Netscape i have got it.
hoping for correct reply.
 
manav kher
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think you can do something like this with the LiveConnect plug in, but there is no such plug in for IE (or not that I am aware of). But is there are particular reason you are using Java...most of what seems from the code can be done in HTML/JavaScript as well?/
-manav
 
devara naveen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai again manav,
What i can tell is similar to Live Connect in Netscape IE provides Active X controls.
 
reply
    Bookmark Topic Watch Topic
  • New Topic