ColdFusion General :: KTML in safe mode

This thread was displayed: 172 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Pankaj Singh
07-19-2006 00:36:16 GMT +2

I have downloaded the trial version of KTML and wanted to try out the text editor. I have been following all the instructions so far. However when I tried running my first file, I am getting an error. The error file and the original cfm file which I am using is attached along with this post. Any ideas???

Thanks

 

Back | Reply | Quote | Top
Ionut MOICIANU
07-19-2006 18:48:29 GMT +2

Hello,

I think the problem is related to the fact that you are using DW templates in your page, that may break the HTML. My advice would be to use MX Includes instead, for abetter compatibility.

Could you attach here a zip with the .cfm file containing the KTML and the template file(s)? Also, please include the database .sql script file in order to make a test.

Regards,
Ionut

ps: don't use a .doc file for attaching the code

Reply | Quote | Top
Pankaj Singh
07-19-2006 19:09:37 GMT +2

 

Thanks for the response. I have the trial edition and wanted to test it. I am just using only one ktml textarea and nothing else in the code. I am not sure what you mean by database.sql script file as I am not using any database now.

One important thing which I forgot to mention is that we use Fusebox. I don't know if that would be a problem.

Anyhow I am attaching the zip file with the cfm file and the error screen.

-Pankaj.

 

Reply | Quote | Top
Ionut MOICIANU
07-19-2006 19:45:26 GMT +2

Hi,

I see a possible problem within the page - I think this code:

        "path": "includes/ktm/",

should be:

        "path": "../includes/ktm/",

Please tell me also what is the version of your ColdFusion server.

Ionut

Reply | Quote | Top
Pankaj Singh
07-19-2006 20:21:44 GMT +2

I have changed the code as mentioned by you. I still see the same error message. The CF server which we are using has the following version

ColdFusion Server Standard 6,1,0,63958

Reply | Quote | Top
Ionut MOICIANU
07-20-2006 19:39:48 GMT +2

I presume you can't give me a test URL (maybe FTP access too)?

At least, load the page into the browser, go to "view source" and save the html output to a file and attach it here.

Ionut

Reply | Quote | Top
Pankaj Singh
07-21-2006 21:22:38 GMT +2

The source code is as follows. I have removed the blank spaces.

<!-- date / time functions -->
<!-- utilities -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Trial1 Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- InstanceEditableHeadTag -->
<script src="../includes/common/js/base.js" type="text/javascript"></script>
<script src="../includes/common/js/utility.js" type="text/javascript"></script>
<script src="../includes/ktm/core/ktml.js" type="text/javascript"></script>
<script src="../includes/resources/ktml.js" type="text/javascript"></script>
<link href="../includes/ktm/core/styles/ktml.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript">
 ktml_init_object = {
  "debugger_params": false,
  "path": "../includes/ktm/",
  "server": "cfm"
 };
</script>
<script type="text/javascript">
 textarea_config = {
  "width": 450,
  "height": 350,
  "show_toolbar": "load",
  "show_pi": true,
  "background_color": "#FFFFFF",
  "strip_server_location": false,
  "auto_focus": true,
  "module_props": { },
  "buttons": [
   [1, "standard", ["cut", "copy", "paste", "undo", "redo", "find_replace", "toggle_visible", "toggle_editmode", "toggle_fullscreen", "help"]],
   [1, "formatting", ["bold", "italic", "underline", "align_left", "align_center", "align_right", "align_justify", "numbered_list", "bulleted_list", "outdent", "indent", "clean_menu", "foreground_color", "background_color", "superscript", "subscript"]],
   [2, "styles", ["heading_list", "style_list", "fonttype_list", "fontsize_list"]],
   [2, "insert", ["insert_link", "insert_anchor", "insert_table", "insert_image", "insert_file", "horizontal_rule", "insert_character"]],
   [3, "form", ["insert_form", "insert_textfield", "insert_hiddenfield", "insert_textarea", "insert_checkbox", "insert_radiobutton", "insert_listmenu", "insert_filefield", "insert_button", "insert_label", "insert_fieldset"]]
  ]
 };
  
    
  
  if (typeof(KtmlVersion)!="undefined" && KtmlVersion!="4.1.0")  alert("Please empty your browser cache. You have an older version than the current version on the server. On the server: 4.1.0; on the client:" + KtmlVersion);
  
  
   
  if (typeof textarea_config['module_props']['media'] == 'undefined') {
   textarea_config['module_props']['media'] = {};
  }
    
    
  textarea_config['module_props']['media']['AllowedFileTypes'] = 'bmp, jpg, jpeg, gif, png';
    
    
    
  textarea_config['module_props']['media']['UploadFolderUrl'] = '/uploads/media/';
   
  if (typeof textarea_config['module_props']['file'] == 'undefined') {
   textarea_config['module_props']['file'] = {};
  }
   
    
  textarea_config['module_props']['file']['AllowedFileTypes'] = 'doc, pdf, csv, xls, rtf, sxw, odt';
    
  textarea_config['m

View full message
Reply | Quote | Top
Dan Popa[InterAKT]Adobe Systems Romania staff
07-27-2006 12:17:56 GMT +2

Make sure there's no content above the DOCTYPE tag; otherwise the page will render in quirks mode, not standards mode.

To force KTML to run in quirks mode, open your includes/ktm/ktml4.config.cfm file and set the skip_doctype_check variable to true:

<cfset Request.KTML4_GLOBALS["skip_doctype_check"] = "true">

Regards,
Dan POPA


Reply | Quote | Top
Sign In
Sign In to see your information.
© Adobe Systems Romania. All rights reserved.