Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe03.iad.POSTED!83aa503d!not-for-mail From: Daniel Pitts User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: JSObject.call(method, ARGS) with Safari References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 23 Message-ID: X-Complaints-To: abuse@newsrazor.net NNTP-Posting-Date: Sat, 21 Apr 2012 22:48:24 UTC Date: Sat, 21 Apr 2012 15:48:23 -0700 X-Received-Bytes: 1503 Xref: csiph.com comp.lang.java.programmer:13768 On 4/21/12 3:12 AM, Richard Maher wrote: > Hi. > > 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 :-( > > Firefox, IE, Chrome, and Opera are all onboard and ok. > > Cheers Richard Maher Not sure if this helps, but in the past I've had to do some hacky work-arounds to work with JSObject. Check out: Hope this helps, Daniel.