|
8#
楼主 |
发表于 2007-8-20 10:06:15
|
只看该作者
谢谢您的回复!
采用第二种方法将问题解决了,但是我不明白这个函数的作用,能否解释一下。
另外,这两种方法有什么不同,各应用在什么情况下呢?
下面是测试页面的部分源码:
<form name="articleForm" method="post" action="/articles.do?method=saveArticleBelongColumn" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" border="0" class='border'>
<tr class='title'>
<td colspan="2" align="center"><strong>增 加 文 章</strong></td>
</tr>
<tr class='tdbg2'>
<td width="10%">标题</td>
<td width="90%"><input name='titles' type='text' size='37'
maxlength='50' /> <font color="red">*</font> </td>
</tr>
<tr class='tdbg'>
<td scope="row">标题图片</td>
<td><input type="button" name="button1" value="上传图片"
onClick="MM_openBrWindowA('/articles/upload.jsp','','width=320,height=200','0')">
<input name='titlepicture' type='hidden'
value="" />
</td>
</tr>
<tr class='tdbg'>
<td>关键字</td>
<td><input name='keywords' type='text' size='37' maxlength='50'>
</td>
</tr>
<tr class='tdbg2'>
<td>原始连接地址</td>
<td><input name='links' type='text' size='37' maxlength='50'> </td>
</tr>
<tr class='tdbg'>
<td>发布时间</td>
<td><input name='pubtime' type='text' size='37'
onClick="calendar(document.articleForm.pubtime)" maxlength='50'> </td>
</tr>
<tr class='tdbg2'>
<td>内容</td>
<td>
<input type='hidden' name="conetents">
<div><input type="hidden" id="conetents" name="conetents" value=""><input type="hidden" id="conetents___Config" value=""><iframe id="conetents___Frame" src="/FCKeditor/editor/fckeditor.html?InstanceName=conetents&Toolbar=Default" width="100%" height="500" frameborder="no" scrolling="no"></iframe></div>
</td> </tr>
<tr class='tdbg'>
<td>内容简介</td>
<td><textarea name='intro' rows="5" cols="40" maxlength="1000"></textarea> </td>
</tr>
<tr class='tdbg2' align='center'>
<td colspan="2"><input type='hidden' name='pubstate' value='0'> <input
name='Add' type='submit' value=' 确 定 '>
<input name='Cancel' type='button' id='Cancel' value=' 取 消 '
onClick="javascrpit:cback()" style='cursor:hand'></td>
</tr>
</table>
</form> |
|