Hello there,
My script (below) tries to get the user name, but doesn't. I've got
the idea from Code from the Core.
What am i doing wrong here?
thanks for any tips.
ALex
My Script
=======
<script show>
var who = parseParams({{config.options.txtUserName}});
alert(who);
</script>
Code from the Core
===============
{{{
// Process a string list of macro parameters into an array. Parameters
can be quoted with "", '',
// [[]], {{ }} or left unquoted (and therefore space-separated).
Double-braces {{}} results in
// an *evaluated* parameter: e.g. {{config.options.txtUserName}}
results in the current user's name.
String.prototype.readMacroParams = function()
{
var p = this.parseParams("list",null,true,true);
var n = [];
for(var t=1; t<p.length; t++)
n.push(p[t].value);
return n;
};
}}}
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.