javascript error in ie7
Line: 16
Error: Expected hexademical digit

javascript debugging code area:

<script type="text/javascript">
<!--//--><![CDATA[//><!--
MappingKit.settings.fileDirectoryTemp = 'D:\xampp\tmp';

//--><!]]>
</script>

also sometimes in firefox firebug:
MappingKit.settings has no properties
[Break on this error] MappingKit.settings.fileDirectoryTemp = 'D:\xampp\tmp';
modules (line 17)

XAMPP setup winXP, tmp dir works ok but somehow unrecognised from mappingkit settings

Comments

jpulles’s picture

Assigned: Unassigned » jpulles

Interesting error, it's easily reproducible that IE returns "Expected hexadecimal digit" for a "jsvar = 'D:\xampp\tmp';" statement.

The MappingKit.settings.fileDirectoryTemp is meant for downloadable content and should be a web accessible folder. A good default value for it is 'sites/default/files/temp'; it can be changed in the /?q=admin/settings/file-system page. If the temp folder is not web accessible, the print to pdf function can not work.

Apart from that, the code needs to be fixed for cases where the folder is not web accessible.

Regards,
John

jannalexx’s picture

xampp/drupal used it as the default local temp directory

error is off, thanks
maybe this will also solve other side effects

jpulles’s picture

Status: Active » Fixed

Check is done to confirm that temporary directory is accessible. If it is not, the javascript variable is not written.

jpulles’s picture

Title: Error: Expected hexademical digit » Javascript error: Expected hexademical digit
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.