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.

Last updated