JavaScript Utilities

Version 1.0

Download

Features:

String Utilites  

  • stripHTML(originalStr)
  • stripHTML(originalStr, replacerStr)
  • isValidEmail(sText)
  • isValidUrl(originalStr)
  • isEmpty(text)
  • stripHTMLAndTrim(text)
  • trim()
  • ltrim()
  • rtrim()
  • format()

Cookie Utilities

  • readCookie(name)
  • createCookie(name, value, days)
  • eraseCookie(name)

HTTP Request Utilites

  • getHttpRequestObject()

General JS Utils

  • getElementValue(eid)
    setElementValue(eid, val) 

Script Injection for JSON   

  • injectScript(url)

Html Utilities

  • getMetaContents(meta_name)
  • getQueryStringValue(parameterName) 


Last edited Dec 14, 2010 at 4:27 PM by pinalbhatt, version 3