Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13744
| From | Arved Sandstrom <asandstrom3minus1@eastlink.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JSObject.call(method, ARGS) with Safari |
| References | <jmu16i$ij2$1@speranza.aioe.org> <jmu1cm$j47$1@speranza.aioe.org> <jmu6kv$det$1@news.albasani.net> |
| Message-ID | <49ykr.15811$FQ1.5673@newsfe12.iad> (permalink) |
| Organization | Public Usenet Newsgroup Access |
| Date | 2012-04-21 09:57 -0300 |
On 12-04-21 08:45 AM, Lew wrote:
> Richard Maher wrote:
>>> Has anyone been able to pass the ARGS parameter to JSObject's "call"
>>> method *and* pass arguments via the "args" parameter? An example of your
>>> work-around perhaps?
>>>
>>> I'm having no trouble calling methods on all sorts of complex Javascript
>>> objects but when it comes to passing the arguments array I keep getting
>>> nullpointerexception [sic] :-(
>
> Maybe if you showed us any code, or better yet, an SSCCE, we could help.
>
> All I can say at this point is that you're passing it wrong.
>
>>> Firefox, IE, Chrome, and Opera are all onboard and ok.
>
>> Don't know if this is relevant: -
>>
>> JSValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object,
>> JSObjectRef thisObject, size_t argumentCount, const JSValueRef
>> arguments[],
>> JSValueRef* exception)
>> {
>>
>>
>> JSValueRef result = toRef(jsObject->call(exec, jsThisObject,
>> argList));
>> // returns NULL if object->implementsCall() is false
>>
>> . . . and if so, how one specifies "implementsCall()" as "true"
>
> That isn't Java code.
>
True, it's not, it's JavascriptCore. So this is a multi-language problem
with both Java (netscape.javascript.JSObject) and JavaScript being
involved. I think we can handle that.
I spent a month earlier this year doing an integration for a customer in
an Oracle Forms environment that involved Java, Oracle Forms PL/SQL, and
some JavaScript. Much of last year was Java EE web apps where Java, XML,
XSLT, XHTML, CSS and SQL figured. Right now I am working ESB
integrations where Java is important but less than 50 percent.
Most of us spend quality time doing hybrid work. Sometimes a problem is
a one-language problem but often it's not. We can't get too picky about
what we'll look at and what we won't. As long as Java is involved to
some extent I think it's worth a first look.
I agree that an SSCCE is called for in any case.
AHS
--
A fly was very close to being called a "land," cause that's what they do
half the time.
-- Mitch Hedberg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JSObject.call(method, ARGS) with Safari "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-04-21 18:12 +0800
Re: JSObject.call(method, ARGS) with Safari "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-04-21 18:15 +0800
Re: JSObject.call(method, ARGS) with Safari Lew <noone@lewscanon.com> - 2012-04-21 04:45 -0700
Re: JSObject.call(method, ARGS) with Safari Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-21 09:57 -0300
Re: JSObject.call(method, ARGS) with Safari "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-04-21 21:30 +0800
Re: JSObject.call(method, ARGS) with Safari Lew <noone@lewscanon.com> - 2012-04-21 13:07 -0700
Re: JSObject.call(method, ARGS) with Safari Lew <noone@lewscanon.com> - 2012-04-21 13:00 -0700
Re: JSObject.call(method, ARGS) with Safari Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-04-21 15:48 -0700
Re: JSObject.call(method, ARGS) with Safari "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-04-22 12:46 +0800
Re: JSObject.call(method, ARGS) with Safari "Richard Maher" <maher_rj@hotspamnotmail.com> - 2012-04-22 15:07 +0800
Re: JSObject.call(method, ARGS) with Safari Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-22 21:17 -0300
Re: JSObject.call(method, ARGS) with Safari Richard Maher <maherrj@googlemail.com> - 2012-04-22 23:40 -0700
Re: JSObject.call(method, ARGS) with Safari Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-04-23 20:40 -0300
csiph-web