Branch: Tag:

1999-11-28

1999-11-28 21:39:53 by Martin Stjernholm <mast@lysator.liu.se>

Kludge for problem with getting separate wizard instances for each
page with IE.

Rev: server/base_server/wizard.pike:1.102

1: - /* $Id: wizard.pike,v 1.101 1999/11/28 07:18:46 per Exp $ + /* $Id: wizard.pike,v 1.102 1999/11/28 21:39:53 mast Exp $    * name="Wizard generator";    * doc="This file generats all the nice wizards";    */
476:    ([ "cvar":wizard_tag_var,    "help":parse_wizard_help]), id, foo );    +  // We commonly feed the action variable both from the URL with +  // "...?action=foo.pike" and with an <input> tag from the previous +  // page. Netscape ignores one of them, but IE sends both. Thus we +  // have to discard the extra value in the IE case. (We simply assume +  // both values are the same here; maybe it could be done better.) +  id->variables->action = (id->variables->action/"\0")[0]; +     res = ("\n<!--Wizard-->\n"    "<form method=\"get\">\n"    "<input type=\"hidden\" name=\"action\" value=\""+id->variables->action+"\" />\n"