Platforms to show: All Mac Windows Linux Cross-Platform

/Main/Web Loadbalancer Example/MyApp


Required plugins for this example:

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Main/Web Loadbalancer Example/MyApp

This example is the version from Mon, 6th Nov 2022.

Project "MyApp.xojo_binary_project"
Class App Inherits WebApplication
EventHandler Function HandleURL(Request As WebRequest, Response As WebResponse) As Boolean #Pragma BackgroundTasks False If Request.Path = "Status" Then Dim j As New JSONItem Dim a As app = app j.Value("MemoryUsed") = runtime.MemoryUsed j.Value("ObjectCount") = runtime.ObjectCount j.Value("SessionCount") = a.SessionCount j.Value("Name") = a.ExecutableFile.Name Response.write j.ToString Response.Status = 200 Return True End If End EventHandler
End Class
Class Session Inherits WebSession
Const ErrorDialogCancel = "Do Not Send"
Const ErrorDialogMessage = "This application has encountered an error and cannot continue."
Const ErrorDialogQuestion = "Please describe what you were doing right before the error occurred:"
Const ErrorDialogSubmit = "Send"
Const ErrorThankYou = "Thank You"
Const ErrorThankYouMessage = "Your feedback helps us make improvements."
Const NoJavascriptInstructions = "To turn Javascript on, please refer to your browser settings window."
Const NoJavascriptMessage = "Javascript must be enabled to access this page."
End Class
Class WebPage1 Inherits WebPage
Control Label1 Inherits WebLabel
ControlInstance Label1 Inherits WebLabel
End Control
End Class
Sign
End Sign
End Project

See also:

The items on this page are in the following plugins: MBS Main Plugin.


The biggest plugin in space...