Doing a Javascript function after S.error

22 views
Skip to first unread message

DoomPirate

unread,
Aug 23, 2011, 3:58:13 AM8/23/11
to lif...@googlegroups.com
After S.error("stuff"), the error message now appears in the html.
I want to perform some javascript function foo(){ .... } 
right after the error text is actually displayed on the html.

How can I accomplish this? The Jquery .click event obviously happens too fast :(

Sorry, because this is not really related to lift. I tried a lot of google searching to find an answer but I am not really sure what I am supposed to be looking for.

David Pollak

unread,
Aug 23, 2011, 8:45:02 AM8/23/11
to lif...@googlegroups.com
Try:

S.error(<xml:group>Stuff{Script(Raw("foo();"))}</xml:group>)  That'll send a script tag along with the text error message.

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To view this discussion on the web visit https://groups.google.com/d/msg/liftweb/-/AsxaZ_d986IJ.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



--
Lift, the simply functional web framework http://liftweb.net
Reply all
Reply to author
Forward
0 new messages