Embedded Kindeditor online editor problem in ASP website backstage

Source: Internet
Author: User

<iframe id= "Kindeditor1" src= "Kindeditor/asp/demo.asp?id=nr&style=standard" frameborder= "0" SCROLLING= "no" Width= "550" "height=" ></IFRAME> position change <input name= "nr" type= "hidden" id= "nr" value= "<%=request.form ("NR")%> "/>input in front, you first try this, if not, it is your back-end ASP code has a problem. Replace it with the following. <input name= "nr" type= "hidden" id= "nr" value= "<%=request.form (" nr ")%>"/><iframe id= "Kindeditor1" src= "Kindeditor/asp/demo.asp?id=nr&style=standard" frameborder= "0" scrolling= "no" width= "550" HEIGHT= "><" /iframe>


The wrong wording:

<iframe id= "Kindeditor1" src= "Kindeditor/asp/demo.asp?id=nr&style=standard" frameborder= "0" SCROLLING= "no" Width= "550" height= "></iframe"

The correct wording. Write the JS code directly on the Web page


<form name= "MyForm" method= "post" action= "Saveaddproduct.asp?action=add" onsubmit= "return Checkkk ()" ><link Rel= "stylesheet" href= "Kindeditor-4.1/themes/default/default.css"/> ... and so on. Intermediate various Input<link rel= "stylesheet" href= "Kindeditor-4.1/plugins/code/prettify.css"/><script charset= "Utf-8" Src= "Kindeditor-4.1/kindeditor.js" ></script><script charset= "Utf-8" src= "Kindeditor-4.1/lang/zh_ Cn.js "></script><script charset=" Utf-8 "src=" Kindeditor-4.1/plugins/code/prettify.js "></script ><script>kindeditor.ready (function (K) {var editor1 = k.create (' textarea[name= "bookcontent"] ', {csspath: ') Kindeditor-4.1/plugins/code/prettify.css ', Uploadjson: ' kindeditor-4.1/asp/upload_json.asp ', FileManagerJson: ' Kindeditor-4.1/asp/file_manager_json.asp ', allowfilemanager:true,aftercreate:function () {var = this; K.ctrl (document, function () {self.sync (); K (' form[name=myform] ') [0].submit ();}); K.ctrl (Self.edit.doc, +, function () {Self.synC (); K (' form[name=myform] ') [0].submit ();});}); Prettyprint ();}); </script><textarea name= "bookcontent" style= "Width:700px;height:200px;visibility:hidden;" > </textarea><span style= "font-family:arial, Helvetica, Sans-serif;" ></form> note the correspondence between Bookcontent and MyForm </span>


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Embedded Kindeditor online editor problem in ASP website backstage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.