[parenscript-devel] XMLHttpRequest
Hi. How to make a XMLHttpRequest object to contact the Hunchentoot server ? Thanks
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 ?
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@gmail.com> wrote:
On 4/14/11, Haris <fbogdanovic@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@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
H> I wrote: H> (var xhr (new (@ window -x-m-l-http-request))) H> but I get: H> var xhr = new window.XMLHttpRequest; H> without trailing parenthesses: () H> How do I do it right ? You don't need "window." here -- it is implied.
participants (4)
-
Alex Mizrahi
-
Haris
-
Theam Yong Chew
-
Vladimir Sedach