utility.js
Summary: Random, standalone functions.
Function | Summary |
wrt |
An alias for document.writeln() . |
wrtnl |
An alias for document.write() . |
df |
Is the provided variable defined? |
addDelUrlP |
Add or delete a particular url parameter to the provided url-query (?x&y=2&z ) string. |
utility.js
: OverviewRandom, standalone functions.
utility
.wrt()
An alias for document.writeln()
.
See wrtnl()
.
This function also returns the string so you can accumulate the output, and "alert" it all at once.
wrt(s_tring)
utility
.wrtnl()
An alias for document.write()
.
See wrt()
.
This function also returns the string so you can accumulate the output, and "alert" it all at once.
wrtnl(s_tring)
utility
.df()
Is the provided variable defined?
(v_ariable != undefined)
df(v_ariable)
utility
.addDelUrlP()
Add or delete a particular url parameter to the provided url-query (?x&y=2&z
) string.
s_urlq
: The window.location.search
. Assumed to be valid and provided. Must be either empty string (''), or start with a question mark ('?').b_pNeeded
: Is the url parameter desired? If true, yes. If false, no.s_urlp
: The url parameter that should ultimately exist or not exist, depending on the value of b_pNeeded
, in the returned value.s_urlp
in or not in it, as appropriate. For example, if s_urlp
needed but not currently existing, then s_urlp is added to s_urlq
. If it's needed and already there, s_urlq
is returned as is...addDelUrlP(s_urlq, b_pNeeded, s_urlp)