Skip to content

Commit 7facc87

Browse files
update to internal commit 8de13e36
1 parent 41a08a4 commit 7facc87

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

faq/change-reference-path.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default-layout
33
noTitleIndex: true
44
needAutoGenerateSidebar: true
55
title: How can I change the reference path to the Dynamsoft's resources in my project?
6-
keywords: Dynamic Web TWAIN, Project Deployment and End-user Installation, reference path
6+
keywords: Dynamic Web TWAIN, Project Deployment and End-user Installation, reference path, resources path, 2803, 2804
77
breadcrumbText: How can I change the reference path to the Dynamsoft's resources in my project?
88
description: How can I change the reference path to the Dynamsoft's resources in my project?
99
permalink: /faq/change-reference-path.html
@@ -13,6 +13,10 @@ https://www.dynamsoft.com/web-twain/docs/faq/#project-deployment-and-end-user-in
1313

1414
# How can I change the reference path to the Dynamsoft's resources in my project?
1515

16+
This also applies if you see the following errors in browser console, please make sure that the ResourcesPath is set correctly in *dynamsoft.webtwain.config.js* (Step 3 Below).
17+
>{"code": -2803, "message": "Loading the WebTwain JavaScipt source files failed."} <br>
18+
>{"code": -2804, "message": "Loading the WebTwain css files failed."}
19+
1620
<strong>Scenario: </strong> For customers who are using Dynamic Web TWAIN, to change the location of the 'Resources' folder, or to rename it, please following the steps below:
1721

1822
<strong>Steps:</strong> In the below example we will assume the original Resources folder is located at '<strong>../{Project Directory}/Resources</strong>', and you want to change it to '<strong>../{Project Directory}/Newfolder/ResourcesTest</strong>'.
@@ -21,18 +25,18 @@ Step 1. Please make sure the structure inside 'Resources' folder stay unchanged.
2125

2226
Step 2. Change the relative path in your page where you reference the js files, for example:
2327

24-
```javascript
28+
```html
2529
<script src="Resources/dynamsoft.webtwain.initiate.js"></script>
26-
// or your own operation js file
30+
<!-- or your own operation js file -->
2731
<script src="Scripts/DWTSample_BasicScan.js"></script>
2832
<script src="Resources/dynamsoft.webtwain.config.js"></script>
2933
```
3034

3135
Modify as below:
3236

33-
```javascript
37+
```html
3438
<script src="Newfolder/ResourcesTest/dynamsoft.webtwain.initiate.js"></script>
35-
// or your own operation js file
39+
<!-- or your own operation js file -->
3640
<script src="Scripts/DWTSample_BasicScan.js"></script>
3741
<script src="Newfolder/ResourcesTest/dynamsoft.webtwain.config.js"></script>
3842
```

0 commit comments

Comments
 (0)