This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet and JavaScript interaction in Safari Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet and JavaScript interaction in Safari" Watch "Applet and JavaScript interaction in Safari" New topic

Applet and JavaScript interaction in Safari

niqi li

Joined: Jul 02, 2009
Posts: 3
Hi Guys

I am developing an embedded Instant Messenger for my client's site. It seems to be crazy but I've done it on a PHP Mysql site using Applet and Javascript.

It really comes a long way to do it and it doesn't work very stably. I've been able to make it work in IE, FF and Opera; However, in Safari 4, I've experienced the following problem: no protocol:
at<init>(Unknown Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at sun.plugin.liveconnect.SecureInvocation.checkLiveConnectCaller(Unknown Source)
at sun.plugin.liveconnect.SecureInvocation.access$000(Unknown Source)
at sun.plugin.liveconnect.SecureInvocation$ Source)
at Method)
at sun.plugin.liveconnect.SecureInvocation.CallMethod(Unknown Source)

It wasn't only me having this problem who uses Javascript and Java. I've searched the web and every site who teaches how to use JS + Java has this error message in Console. So I guess it's something wired only in Safari 4.

So far, I can only think, the problem is because the URL doesn't have a "http://" etc. as a protocol. "Javascript: " isn't a valid protocol that accepted by Java. Please let me know if I am wrong.

I need some help to guide me for this problem. Please.


Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42956
What is "the URL"? What is the code doing that is causing the exception?
Consider Paul's rocket mass heater.
subject: Applet and JavaScript interaction in Safari
It's not a secret anymore!