# Display Document

## Syntax

```
$.displayDocument = function (url, contId)
```

## Arguments

<table data-header-hidden><thead><tr><th width="131">Argument</th><th width="128">Data Type</th><th width="345">Description</th><th>Default Value</th></tr></thead><tbody><tr><td><p><em>url</em></p><p> </p></td><td>String</td><td>URI of the action</td><td> </td></tr><tr><td><p><em>contId</em></p><p> </p></td><td>String</td><td><p>If the "embedded pdf" plugin is supported by the browser, then load in specified container section, else new tab</p><p>If browser does not support the plugin "embedded pdf" plugin, then load in new tab.</p></td><td> </td></tr></tbody></table>

## 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aeudoc.gitbook.io/developer/presentation/client-script/display-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
