Kasturi
Kasturi

Reputation: 3333

Using Java in javascript fails in IE

I am tring to use java.lang.String inside my javascript file. But this fails in IE.

Is there a workaround for IE.

This is what I'm trying to do.

var byteArray = (new java.lang.String("asdf")).getBytes();

Upvotes: 3

Views: 222

Answers (2)

iivel
iivel

Reputation: 2576

Unlike Firefox; IE doesn't have direct access to the Java libraries and it would be somewhat insane to 1.) assume Java is installed 2.) use the Java libraries within client side script.

Upvotes: 1

SLaks
SLaks

Reputation: 888303

Unlike Firefox, Internet Explorer cannot interact with Java.

Upvotes: 5

Related Questions