javascript - Same code but output different when access as local file then from WAMP? -
i stuck in weird problem ie when right click open test.html following code
<!doctype html> <!-- copyright (c) 2003-2013, cksource - frederico knabben. rights reserved. licensing, see license.html or http://ckeditor.com/license --> <html> <head> <meta charset="utf-8"> <title>api usage — ckeditor sample</title> <script src="../ckeditor.js"></script> </head> <body> <textarea cols="100" id="editor1" name="editor1" rows="10"><p>this <strong>sample text</strong>. using <a href="http://ckeditor.com/">ckeditor</a>.</p></textarea> <script> // replace <textarea id="editor1"> ckeditor instance. ckeditor.replace( 'editor1'); </script> </body> </html>
i no black border when text selected inside ckeditor . when put exact same code inside text.php , access through wamp black border around selected text . problem ie , chrome , firefox works.
can apache or php headers effect ie output ?
btw using ckeditor version 4 can downloaded http://ckeditor.com/download .
php instead of plain html shoudn't affect ie output php, once interpreted, goes ie plain html.
opening "open" command forces ie load "file://" protocol in local context , affected context protection (trusted sites or file context instead of http in cases affects js, won't work expected or limited in functions).
just try open .html thru wamp should work php one, on ie
try "http://localhost/test.html"
otherwise should @ ie docs , try understand kind of protections/limitations occours on "file:///" protocol instead of "http://".
hope help.
Comments
Post a Comment