This is how you can create the problem:
At refs swiki, template newLink, seperate its
statements into:
statement 1:
<form action="<?toNew?>">
statement 2:
<input type="hidden" name="name"
value="<?newSendName?>"><b><?newShowName?>:</b> <input
type="submit" value="create">
statement 3:
</form>
At web browser, create a new page and given the
following contents:
*This is a New Page*
<html>
<form name=myform>
DATA: <input type=text size=80 name=inp
value="JavaScript;Is;A;Web;Language"><br>
SEPERATOR: <input type=text size=4 value=";" name=sep>
<input type=button name=toArray value="to Array"
onClick="javascript:
to_array(myform.inp.value,myform.sep.value,myform.result);"><br>
Result:<br>
<textarea name=result rows=20 cols=80></textarea>
</form>
<script lang=javascript>
function to_array(str,sep,result) {
var a = str.split(sep.charAt(0));
var ss = ""
var i = 0;
var x
for (i=0; i < a.length; i++) {
ss += "Index " + i + ": " + a[i] + "\n"
}
result.value = ""
result.value = ss;
}
</script>
</html>
Note: You must put *This is a New Page* ahead of
<html><form> ... </form></html>. Alos, if you remove
<html></html> tags, then no nested <form> craeted.
Thanks,
Alex
--- "Jochen F. Rick" <[EMAIL PROTECTED]> wrote:
> I have no idea what you mean here. Why would there
> be nested forms?
>
> Peace and Luck!
>
> Je77
>
> On Sat, Oct 06, 2001 at 07:52:57PM -0700, tak Kang
> wrote:
> > Hi,
> >
> > The contents of page will be in out-of-order if
> you
> > contain <form> ... </form> statements and the
> action
> > "newLink" has more than one line of statement.
> >
> > Currently, the refs swiki's "newLink" action has
> only
> > one line:
> > <form action="<?toNew?>"><input type="hidden"
> > name="name"
> >
>
value="<?newSendName?>"><b><?newShowName?>:</b> <input
> > type="submit" value="create"></form>
> >
> > if you insert <cr> among the page, your page will
> be
> > formated wrong with nested forms:
> >
> > <form action="/docs/13.new">
> > ....
> > <form name=myform>
> > ..
> > </form>
> > ...
> > </form>
> >
> > Question: How can you fix it?
> > The parser process page contents is Swiki or
> Comanche?
> >
> > Thanks,
> > Alex
> >
> > __________________________________________________
> > Do You Yahoo!?
> > NEW from Yahoo! GeoCities - quick and easy web
> site hosting, just $8.95/month.
> > http://geocities.yahoo.com/ps/info1
__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1