Never saw your reply FND.
I was not using a plugin for allowing a macro nested into an html form
and that was my big issue. Also my syntax was not xhtml compliant but
I don't think that would have helped much.
So I wrote my solution as a new macro selectfromlist creating my
dropdownlist from items of a particular tag. I created another one
called htmlify that I use to wrap the rest of my input tags with. Here
they are:
config.macros.selectfromlist = {
handler: function
(place,macroName,params,wikifier,paramString,tiddler) {
var prms = paramString.parseParams(null, null, true);
var name = getParam(prms, "name");
var list = getParam(prms, "tag");
var output;
var tiddlers = store.getTaggedTiddlers(list);
var nPlugins = tiddlers.length;
for(var i=0; i<nPlugins; i++) {
var p = getPluginInfo(tiddlers[i]);
output += "<option value=\""+p.title+"\">"+p.title+"</
option> ";
}
wikify("<html><select name="+name+"> "+output+" </select></
html>",place);
}
};
config.macros.htmlify = {
handler: function
(place,macroName,params,wikifier,paramString,tiddler) {
var parm = params.length > 0 ? params[0] : "world";
wikify("<html>"+parm+"</html>",place);
}
};
An example of using both in a tiddly:
|Faction: |<<htmlify '<input name=faction type=text />' >>|
|Morph: |<<selectfromlist name:morph tag:Morph>>|