Vertical Split view functions

The Vertical Split view functions facilitate a side-by-side view of the Code and Design or Code and Code Layout modes. The functions also enable users to choose and switch between the horizontal and vertical orientations of Split view and Split code.

dreamweaver.getSplitViewOrientation()

Availability

Dreamweaver CS4.

Description

This function displays the current Split view orientation. The orientation can be retrieved even if the view is not split. In such a case, the return value indicates the orientation if the view is changed to Split view or Split code.

Arguments

None.

Returns

A string value that specifies the orientation. Returns the value vertical or horizontal depending on the current orientation.

dreamweaver.setSplitViewOrientation()

Availability

Dreamweaver CS4.

Description

This function changes the current Split view orientation. The orientation can be changed even if the view is not split. In such a case, the argument indicates the orientation the next time the view is changed to Split view or Split code.

Arguments

A string value that indicates the orientation. Use vertical or horizontal respectively to indicate the orientation. This argument is required.

Returns

A Boolean value: true if successful, false if an error occurs.

dreamweaver.getPrimaryView()

Availability

Dreamweaver CS4.

Description

This function gets the name of the primary view. In Split view or Split code, the primary view is the top window or the left window, depending on the Split view orientation.

Arguments

None.

Returns

A string that contains the name of the primary view, which is one of the following values:

Value

Description

code

The primary view is the Code window.

design

The primary view is the Design window.

related file

The primary view is the related file window. This value is returned when the document view is Split code and a related file has been opened.

dreamweaver.setPrimaryView()

Availability

Dreamweaver CS4.

Description

This function changes the primary view. In Split view or Split code, the primary view is the top window or the left window depending on the Split view orientation.

Arguments

A string that contains the name of the primary view, which is one of the following values:

Value

Description

code

The primary view is the Code window.

design

The primary view is the Design window.

related file

The primary view is the related file window. This value is used when the document view is Split code and a related file has been opened.

Returns

A Boolean value: true if successful, false otherwise.

dom.isRelatedFileViewOpen()

Availability

Dreamweaver CS4.

Description

This function determines if the view contains a related file view.

Arguments

None.

Returns

A Boolean value: true if a related file view is open, false otherwise.

Get help faster and easier

New user?