HttpVDir Element
The HttpVDir element returns the root directory of the current subweb. For example, for http://myserver/myweb/home.htm
, the HttpVDir element would return http://myserver/myweb/
.
Syntax
<HttpVDir
URLEncodeAsURL = "TRUE" | "FALSE">
</HttpVDir>
Attributes
Name | Description |
---|---|
URLEncodeAsURL | Optional Boolean. TRUE if special characters, such as spaces, are converted to quoted Unicode format (e.g. %u0020) in a path component of a URL. |
Related Elements
Parent Elements |
---|
Case, Default, ListFormBody, ListFormButtons, RenderPattern, RowLimitExceeded, ScriptQuote, Then, Toolbar, ViewBody, ViewEmpty, ViewFooter |
Remarks
Adding <ows:HttpVDir/>
to a page would return something like http://myserver/myweb/
.
Example
This example, a selection from STDVIEW.XML, uses the HttpVDir element to insert the root directory in an <IMG> tag for a view footer.
<ViewFooter>
<HTML>
<![CDATA[ <tr><td height="5"><img src=" ]]>
</HTML>
<HttpVDir />
<HTML>
<![CDATA[ /_layouts/images/blank.gif" width="1"
height="5"></td></tr></table> ]]>
</HTML>
</ViewFooter>