|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.statichelpers.JSHelper
public class JSHelper
Javascript helper functions
Field Summary | |
---|---|
static java.lang.String |
ALIDOJO_OBJECT
rob: Initialized in common-jsdojo build bea/dnd/dnd.js, probably should move to init.js |
static java.lang.String |
SAFEJSVAR_CONTAINER_NAME
Name of the safe javascript var container variable |
Constructor Summary | |
---|---|
JSHelper()
|
Method Summary | |
---|---|
static HTMLScript |
AddSafeJSVariable(java.lang.String strName,
java.lang.String strValue)
Helper function to define a safe javascript variable. |
static java.lang.String |
escapeJS(java.lang.String s)
Escape JavaScript strings. |
static java.lang.String |
GetSafeJSVariable(java.lang.String strName)
Helper function to retrieve a safe javascript variable. |
static java.lang.String |
GetSafeJSVariableWarn(java.lang.String strName)
Helper function to retrieve a safe javascript variable. |
static HTMLScript |
InitializeSafeJSVarElements()
Create the container to hold the safe variables. |
static java.lang.String |
JSEncodeString(java.lang.String strIn)
Escape single and double quotes, neccessary for javascript variable values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SAFEJSVAR_CONTAINER_NAME
public static final java.lang.String ALIDOJO_OBJECT
Constructor Detail |
---|
public JSHelper()
Method Detail |
---|
public static java.lang.String JSEncodeString(java.lang.String strIn)
strIn
- String to escape
public static HTMLScript AddSafeJSVariable(java.lang.String strName, java.lang.String strValue)
strName
- strValue
-
public static java.lang.String GetSafeJSVariable(java.lang.String strName)
strName
-
public static java.lang.String GetSafeJSVariableWarn(java.lang.String strName)
strName
-
public static HTMLScript InitializeSafeJSVarElements()
public static final java.lang.String escapeJS(java.lang.String s)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |