Re: submit Form
Alex Russell <[email protected]> Fri, 28 May 2004 22:06:25 +0900
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
Hey guys, I don't have any time to look into this one until I get back from Japan. Dee? Michael? Care to take a look? Regards Christian Boulanger wrote: > Hi Alex, > > I am still getting > > Error: sNode.type.toLowerCase is not a function > Source File: > http://localhost/zophe/lib/netWindows/winScripts/environ_core.js > Line: 2107 > > when submitting a form. This is what I do: > > __env__.submitForm( > formNode, > refUrl, > splitPane.pane2obj.contentNode > ); > > the form looks like this: > > <form name="refForm" method="get"> > <input type="hidden" name="action" > value="save"> > <input type="hidden" name="reference_id" > value="393"> > <input type="hidden" name="datasource" > value="mysql"> > <input type="hidden" name="folderId" > value="4"> > <input type="hidden" name="rowNo" value="6"> > <table> > <tbody><tr> > <td style="font-weight: > bold; vertical-align: top;">reftype</td> > <td> > > > <select > name="reftype" style="width: > 100px;"><option>article</option><option>book</option><option>booklet</option><option>collection</option><option>conference</option><option>inbook</option><option>incollection</option><option>inproceedings</option><option>manual</option><option>mastersthesis</option><option>misc</option><option>phdthesis</option><option>proceedings</option><option>techreport</option><option>unpublished</option><option>journal</option></select> > </td> > </tr><tr> > <td style="font-weight: > bold; vertical-align: top;">author</td> > <td> > <input > name="author" value="sdfgsdfgsdf" type="text" style="width: 100%;"> > > > </td> > </tr><tr> > <td style="font-weight: > bold; vertical-align: top;">title</td> > <td> > > <textarea > name="title" cols="80" wrap="virtual" style="height: > 24px;">sdfgsdfgsdfg</textarea> > > </td> > > <!-- snip --> > </tr> > </tbody></table> > <script type="text/javascript" > language="javascript"> document.refForm['reftype'].options[9].selected = > true</script> > </form> > > I had this error before. It did not occur when I used "POST" method. > POST worked fine on Mozilla, but did nothing on IE. > > Best, > > Christian > _______________________________________________ The netWindows developers list: [email protected] http://netwindows.org/mailman/listinfo/devel_netwindows.org