[parenscript-devel] return in onclick

Philipp Marek philipp at marek.priv.at
Tue Oct 9 15:49:13 UTC 2012


Another question: the tutorial has

    :onclick (ps (previous-image) (return false))

but the reference says

    RETURN can only be used to return a value from a function

and indeed, when trying to use return in a

    (:a :href "..."
        :onclick (ps (my-func) (return false)))

I get a warning

    Returning from unknown block nilBlock


What's the typical way for PS use in an onclick handler?


Thank you for your patience!


Regards,

Phil







More information about the parenscript-devel mailing list