Javascript Text  Utilities 

 The Javscript namespace mvcct.text contains the following text and javascript manipulation utilities

  • trim(x). Returns the x string trimmed.
  • globalEvalScriptAndDestroy(htmlNode). Collects all javascript contained in htmlNode and in its descendents nodes, executes it and remove it from the DOM.
  • collectScriptAndDestroy. Collects all javascript contained in htmlNode and in its descendent nodes, returns  it as a string (without the script tags) and remove it from the DOM.

Last edited Jun 22, 2014 at 11:00 AM by frankabbruzzese, version 5

Comments

No comments yet.