Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, June 20, 2018 3:15:36 PM(UTC)
Anthony Northrup

Groups: Registered, Tech Support, Administrators
Posts: 199

Was thanked: 27 time(s) in 27 post(s)

Several of our HTML5 demos are all built using the same source code, they are just run using a different mode. The default mode is our Document Viewer:
https://demo.leadtools.com/JavaScript/DocumentViewer/

The possible configurations are as follows:

There are three methods for specifying the configuration to use:

  • Using the configuration name in the URL path: http:// demo.leadtools.com/JavaScript/<ConfigurationName>/
    Note: This will require hosting the same files in several locations (either by copying to separate folders, or redirecting multiple paths)

  • Specifying the configuration name for the "mode" parameter
    For example, to enable the SVG configuration, use the following: https://demo.leadtools.com/JavaScript/DocumentViewer/?mode=SVG

  • The "mode" parameter will also accept the index of a configuration (in parenthesis in the list above)
    To enable the Barcode configuration (an index of 3), use the following: https://demo.leadtools.com/JavaScript/DocumentViewer/?mode=3

  • If no configuration is found using the above methods, it uses "Default" which is the standard Document Viewer demo

The checkDemoMode method handles choosing the configuration. The source for this method can be found in the following files shipped with the SDK:

  • JavaScript: LEADTOOLS 20\Examples\JS\Documents\DocumentViewer\Clients\Apps\App1\site\Main\Main.js (lines 353 through 401)
  • Typescript: LEADTOOLS 20\Examples\JS\Documents\DocumentViewer\Clients\Apps\App1\ts\Main\Main.ts (lines 479 through 540)
Anthony Northrup
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2019, Yet Another Forum.NET
This page was generated in 0.092 seconds.