[parenscript-devel] XMLHttpRequest

Vladimir Sedach vsedach at gmail.com
Thu Apr 14 15:52:39 UTC 2011


I recommend using funcall, and setting your readtable-case to :invert
to get case-sensitive symbols (see
http://common-lisp.net/project/parenscript/reference.html#section-symbolconv
and http://www.cliki.net/Case%20sensitivity):

(var xhr (new (funcall (@ window XMLHttpRequest))))

Vladimir

On Wed, Apr 13, 2011 at 7:39 PM, Theam Yong Chew
<senatorzergling at gmail.com> wrote:
> On 4/14/11, Haris <fbogdanovic at xnet.hr> wrote:
>> I wrote:
>> (var xhr (new (@ window -x-m-l-http-request)))
>> but I get:
>> var xhr = new window.XMLHttpRequest;
>> without trailing parenthesses: ()
>> How do I do it right ?
>
> More parens! :-)
>
> (var xhr (new ((@ window -x-m-l-http-request))))
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>




More information about the parenscript-devel mailing list