Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #16688
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2012-10-17 09:12 -0700 |
| Message-ID | <352fc896-b38a-401b-bdc9-9a342d52a8ed@googlegroups.com> (permalink) |
| Subject | function argument type |
| From | Michele Da Ros <boeszyslak@gmail.com> |
hi to all
I'm trying to call an applet method from a js script
this is the code
function jump() {
var x = 1374795;
var y = 5700582;
var z = 170;
document.xnavigator.jumpToCoordinate(x,y,z);
}
the problem is that it works only on some browsers (firefox on Linux)
In other browsers the applet throws an illegalarguments exception, but this version works
function jump() {
var x = 1374795.001;
var y = 5700582.001;
var z = 170.001;
document.xnavigator.jumpToCoordinate(x,y,z);
}
Have you ever had an issue like this? Is there a workaround?
How can I get control about variable's type?
Thank you
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
function argument type Michele Da Ros <boeszyslak@gmail.com> - 2012-10-17 09:12 -0700 Re: function argument type Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-17 17:39 +0000 Re: function argument type Danny <dann90038@gmail.com> - 2012-10-17 13:11 -0700
csiph-web