>
> > (send-script
> > "
> > var map = new OpenLayers.Map('map');
> > var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
> > "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
> > map.addLayer(wms);
> > map.zoomToMaxExtent();
> > ")
>
> I hope you don't mind that I have also moved this e-mail to weblocks
> group, perhaps someone will know. I have tried this with the
> "send-script", and first I had to escape the quote \", and then I got
> the following backtrace, which, if I read it correctly, tries to
> append some paths and stuff into the to-be-rendered web page, and it
> fails.
>
>
> ------var-wms-=-new-openlayers.layer.wms(-'openlayers-wms',
> ----------'http://labs.metacarta.com/wms/vmap0',-{layers:-'basic'}-);
> ------map.addlayer(wms); ------map.zoomtomaxextent(); //-]]>
> </script>.css ^
>
I guess send-script works differently from what I thought (was there a
change from weblocks 0.8.2 to current weblocks-dev?). The code above looks
like something parenscript would do...
Try using ps:ps instead of ps:ps* (in your original code)
* (ps:ps* (defun bar () (+ 2 1)))
=> "bar;"
whereas
* (ps:ps (defun bar () (+ 2 1)))
=>
"function bar() {
return 2 + 1;
};"
--
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/weblocks?hl=en.