Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13742
| Path | csiph.com!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Lew <noone@lewscanon.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: JSObject.call(method, ARGS) with Safari |
| Date | Sat, 21 Apr 2012 04:45:36 -0700 |
| Organization | albasani.net |
| Lines | 34 |
| Message-ID | <jmu6kv$det$1@news.albasani.net> (permalink) |
| References | <jmu16i$ij2$1@speranza.aioe.org> <jmu1cm$j47$1@speranza.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net SPlUD3OmRRQFpfJDUJwQd3Wd0bV77M7TJ2sRB+DV0tf9zQgimRtTPbzSBa/L94g0ShP9UnTmcXBDEgzVpPen7WTC0ubuJCk8cX9Tjou8gARorRkzUKjNeAoPLFd0fVIL |
| NNTP-Posting-Date | Sat, 21 Apr 2012 11:45:35 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="Ir/+IfR2T6HjD2Qh/0rvipSL0B4o2EaI7NSmpABrtASHHEjs0MNfl1wFTU1K5hHuQpM9QF4Nx7tc1Tn0kXPD4g7NtyOGS6Pyp/zD5cBzFo0kMJ7Nq5Yphwg+s00rTbum"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 |
| In-Reply-To | <jmu1cm$j47$1@speranza.aioe.org> |
| Cancel-Lock | sha1:rt3LX9eJCHBOU6F6Fo2MnV3iaqs= |
| Xref | csiph.com comp.lang.java.programmer:13742 |
Show key headers only | View raw
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.
--
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
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