I've made an url-list widget which is accessing a store which contains
the url, title, time clicked, and number of times clicked. I would
like to store this information when the user clicks on the href, but I
can't get it to follow the link. I've tried something like this
(called by mapcar over the result of find-persistent-objects in render-
widget-body):
(defun render-url-item (urlitem)
(with-html
(:li
(:a :href (url urlitem) (str (render-link
(lambda (&rest args)
(declare (ignore args))
(format *standard-output* "clicked ~S,~S~%" (name urlitem)
(url urlitem))
)
(name urlitem)
:ajaxp nil))))))
Replacing the str form with (name urlitem) makes it work like a
regular link, but then of course there will be no action called and
the click will not be registered.
What is the suggested way of implementing something like this in
Weblocks?
--
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.