lift / lift/framework

general before/after JavaScript mechanism

Open
#1,187 4 comments 0 reactions 1 assignee Claimed by @dpp View on GitHub
P:Normal T:Enhancement WebKit
Dominant language
Scala
Stars
1.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

"Lunching with JavaScript returns:
http://groups.google.com/group/liftweb/browse_thread/thread/b3469ab5eb55c7f5/32a6b3f8f482a8b7

I think we need a general before/after JavaScript mechanism... and I have an idea of how it can be done with only 2 API calls:

SHtml.beforeAjax(jsCmd) {
SHtml.afterAjax(jsCmd) {
code that creates an AjaxCall
}
}

Those two calls will wrap the pre and post execution of the Ajax call and will work across all the Ajax call mechanisms. Further, they answer the need for an "in call" spinny control located near the item that's doing the Ajax call rather than the global spinny thing for Ajax calls."

See related thread
http://groups.google.com/group/liftweb/browse_thread/thread/c0fa111d87a8beac

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.