On Wed, Dec 8, 2010 at 13:13, Nandan Bagchee <[email protected]> wrote:
>>  (with-javascript
>>                 (ps:ps*
>>                  `(progn
>>                     (defvar wms
>>                       ((ps:@ OpenLayers 'Layer 'WMS)
>>                        "OpenLayers WMS"
>>                        "http://labs.metacarta.com/wms/vmap0";
>>                        (ps:create :layers 'basic)))
>>                     ((ps:@ map 'addlayer) wms)))))
>>
>> But all i get is the text
>>
>> </script>
>
> That indicates that the result of with-javascript is being returned. Perhaps
> you want ps:ps (no *) or the send-script function/macro?

Well, I'd like something that will return and embedd javascript code
into html page. :-) I hoped that it would work this way, but all I can
see in the souce code of the generated page is that </script> tag, and
nothing else. I am probably also using wrong terminology to understand
what I did wrong.

-- 
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.

Reply via email to