Well tested locally, but not displayed after porting to the server, what is the reason?
Reply to discussion (solution)
Is the path wrong?
Is the path wrong?
I have a few editors, are the same situation, even if the full use of the download, the local test is normal, a move to the server is not displayed, and I use the Google Chrome browser debugging to see the status of 200, how to explain it?
The information provided is too small to say
The information provided is too small to say
I used the Kindeditor editor on the side here, http://download.csdn.net/detail/boboxiaopangde/2752980
Upload to server, test display
But on the local is
What do you think is the path to the source file?
What do you think is the path to the source file?
Source file path I must have written it right, because you look at the top of the first figure, is showing a few words, just don't show the editor
Check the next path, probably is the problem.
You should check for any JS errors. Check out the chrome console.
Check the next path, probably is the problem.
I use the debugging tool, display is not a path problem ah?
You should check for any JS errors. Check out the chrome console.
If JS is wrong, why does the local display normally, and function properly?
You should check for any JS errors. Check out the chrome console.
If JS is wrong, why does the local display normally, and function properly?
See if file size is a problem?
When I copy the contents of the JS file to the HTML file can be displayed, this is the path of the problem, but my path should be no wrong, look at the Web source file, you can open the inside of the JS file, what is the matter?
You change the IE test, if you can then indicate that only MIME type is incorrect
The type in at least two maps is inconsistent
You change the IE test, if you can then indicate that only MIME type is incorrect
The type in at least two maps is inconsistent
With IE also does not show, then what is this reason?
You should check for any JS errors. Check out the chrome console.
If JS is wrong, why does the local display normally, and function properly?
See if file size is a problem?
Do you mean the file name or the code case in the document? JS is supposed to be case-sensitive.
Then you put out the URL
Everybody, has anyone ever come across this kind of problem?
To display the page:
D:\PHPnow-1.5.6\htdocs\kindeditor\examples\demo-01.html
demo-01.html call three JS files are:
D:\PHPnow-1.5.6\htdocs\kindeditor\src\kindeditor-core.js
D:\PHPnow-1.5.6\htdocs\kindeditor\src\plugin-all.js
D:\PHPnow-1.5.6\htdocs\kindeditor\src\lang\zh_CN.js
The path I wrote was:
Then you put out the URL
Http://automation.shu.edu.cn:5001/kindeditor/examples/demo-01.html
Local debugging Apache? Is the server IIS?
Local debugging Apache? Is the server IIS?
It's all Apache.
You try to change the absolute path.
CSS path is also broken
You try to change the absolute path.
You try to change the absolute path.
You mean, in exchange for
It is possible to refer to the path association between JS files, it is recommended that you put the Kindeditor src directory files in your JS folder in the main directory to try.
Very slow, very slow, very slow!
But it can still be displayed.
The absolute path to the root directory is OK. Do not write physical paths.
CSS path is also broken
Nor does it show
If your site Directory is/e:/phpnow-1.5.6/htdocs/
Instead, replace
It is possible to refer to the path association between JS files, it is recommended that you put the Kindeditor src directory files in your JS folder in the main directory to try.
Okay, I'll try.
Can work, it proves that the code, configuration is not a problem
But there's no way to know where you're going.
Very slow, very slow, very slow!
But it can still be displayed.
Can you use IE? I use IE and googlechrome are not normal display, where Chrome appears as follows:
The absolute path to the root directory is OK. Do not write physical paths.
When you change to an absolute path and the relative path shows the same situation
ie no problem, Google can't
ie no problem, Google can't
It's weird, I can't do this.
You try to change the absolute path.
You try to change the absolute path.
You mean, in exchange for
This path is loaded by the browser, the absolute path you write should be the domain name + virtual directory + file directory
How can it be written as a local roadbed, and the D drive is out?
The editor was tested locally for a compatible browser, but after it was moved to the server, Google Chrome and IE did not display properly, and ultimately, no reason was found.
I also encountered the same problem, solved!