Documentation
SolutionDeveloperComplianceProjects
  • Getting Started
  • Technology
    • Application Framework
    • Object-Relational Mapping
    • Security Framework
    • Architecture Pattern
    • API Management
  • Environment
    • Development Tool
    • Database Server
    • Web Server
  • PRESENTATION
    • Design Material
    • HTML Helpers
    • Icon Images
    • Custom CSS
    • JQuery Plugin
      • DataTables
      • Tabs
      • Date Picker
      • Calendar
      • Chart
      • Treeview
    • Client Script
      • Open Modal
      • Close Modal
      • Handle return data
      • Load Content
      • Change Hash
      • Change Title
      • Get actual Hash
      • Get Content
      • Update Content
      • Delete Content
      • Get Partial Content
      • Get Partial Content Async
      • Update Partial Content
      • Update Partial Content Async
      • Delete Partial Content
      • Get Action
      • Update Action
      • Delete Action
      • Cascading Dropdown
      • Display Document
    • MVC View
  • BACKEND
    • Base Controller
    • Controller
    • Base Model
    • View Model
    • Class Utility
      • Constant Values
      • Global Properties
      • Option Helper
      • Setting Helper
    • Data Repository
      • Read Columns
      • Read All Columns
      • Read First Record
      • Read by Primary Key
      • Find Record
      • Insert Record
      • Update Record
      • Delete Entity
      • Delete by Criteria
      • Delete by Primary Key
      • Counting Record
      • Check Exist
      • Generate Row-Id
    • Unit Of Work
    • Data Entity
  • Application Features
    • Account Management
    • Navigation Editor
    • Access Control
  • Examples
    • Simple Page
    • Master Detail
    • Editor Template
Powered by GitBook
On this page
  • Syntax
  • Arguments
  • Description
  • Example
  1. PRESENTATION
  2. Client Script

Display Document

Syntax

$.displayDocument = function (url, contId)

Arguments

url

String

URI of the action

contId

String

If the "embedded pdf" plugin is supported by the browser, then load in specified container section, else new tab

If browser does not support the plugin "embedded pdf" plugin, then load in new tab.

Description

Loads a pdf file into the Page Section specified in the parameter “contId” by sending an HTTPGET request to the action of the URI specified in “url”.

If browser does not support this type of loading, a new tab will be opened and the pdf file will be loaded into the new tab instead.

Example

The following program illustrates the function call:

$.displayDocument("main/loadpdf/", "pdf-container");

Function will send a request to “main/loadpdf” and load the returned pdf file into the Page Section by the id of “pd-container” replacing the content that is currently displayed in that Page Section. If browser does not support this, a new tab is opened where the pdf file gets loaded instead.

PreviousCascading DropdownNextMVC View

Last updated 2 years ago