Difference between revisions of "WebPage"

From Xojo Documentation

 
Line 23: Line 23:
  
 
<dynamicTable id="Methods" super="WebView" class="methodTable" title="Methods" columns="3" exclude="Close">
 
<dynamicTable id="Methods" super="WebView" class="methodTable" title="Methods" columns="3" exclude="Close">
{{Method | name=Close | link=Close_Method | description=Close the web page.}}
+
{{Method | name=Close | link=Close_Method | description=Close()&#x0A;Close the web page.}}
{{Method | name=Controls | description=Allows you to iterate through the controls on the layout.}}
+
{{Method | name=Controls | description=Controls() As Iterable&#x0A;Allows you to iterate through the controls on the layout.}}
 
{{Method | name=LastControlIndex | description=LastControlIndex() As Integer&#x0A;Returns the index of the last control added to the page.)}}
 
{{Method | name=LastControlIndex | description=LastControlIndex() As Integer&#x0A;Returns the index of the last control added to the page.)}}
 
{{Method | name=ScrollTo | description=ScrollTo (x as Integer, y as Integer )&#x0A;Scrolls the window to the specified coordinates.}}
 
{{Method | name=ScrollTo | description=ScrollTo (x as Integer, y as Integer )&#x0A;Scrolls the window to the specified coordinates.}}

Latest revision as of 14:31, 11 March 2021

Class (inherits from WebView)


New in 2010r4

A page of the application. This is the equivalent of a Window in a desktop application.

Events
Closed Opening Shown
ContextualMenuSelected Overflowed
Hidden Resized
Properties
AllowTabOrderWrap fa-lock-32.png LastControlIndex Style
ContextualMenu LayoutDirection TabIndex
ControlID fa-lock-32.png LayoutType Title
Enabled Left Tooltip
Height MinimumHeight Top
Indicator MinimumWidth Visible
IsImplicitInstance fa-lock-32.png Name fa-lock-32.png Width


Methods
AddControl ExecuteJavaScript SetFocus
Close GotoURL Show
ControlAt LastControlIndex UpdateBrowser
Controls ScrollTo

Notes

One important difference, of course, is that several pages may be displayed in the same browser window (though not at the same time, of course). But in other respects, a WebPage is very much like a desktop window. In both cases, the state of controls is managed automatically. You will only lose state when you call the Close method of a page or when the application quits. Page state is managed on a per session/per page basis. See the WebSession object. That means two sessions (two users) would each have their own state per page.

Bookmarking

Hash Tags (aka anchors or URL fragments) are used to create bookmarks to specific pages or areas of your web apps. This is an example hash tag:

http://www.example.com/#HashTag

The WebSession.HashTag property is used to change a hash tag and WebSession.HashTagChanged event is used to know when a hash tag has been changed.

For more information on hash tags, refer to the WebSession class.

See Also

WebSession, WebDialog, WebContainer and Window classes.