createDocument( )

Creates a document.

Interface

PODSDocumentMgr

IDL definition
PODSDocument createDocument(
  PODSString url,
  PODSDocumentContentType type
);
JavaScript synopsis

Not applicable

C synopsis
PODSDocument* PODScreateDocument(
  PODSDocumentMgr* docmgr,
  PODSString url,
  PODSDocumentContentType type
);
Parameters
  • docmgr   The PODSDocumentMgr object.

  • url   [in] The URL for the document.

  • type   [in] Document content type, from the following list (defined in pods.h file): PODS_REDIRECT_TYPE, PODS_UNKNOWN_TYPE, PODS_SCRIPT_TYPE, PODS_IMAGE_TYPE, PODS_HTML_TYPE

Returns

The document created.

Remarks

Specifying PODS_HTML_TYPE for type automatically creates a document object, on which you can call the PODSDocument object's dom.

See also

PODSDocument object's dom