AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones del navegador
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the user's browser platform.
Ejemplo
// Displays a smartphone-specific page

SWITCH BrowserPlatform()
	CASE BrowserPlatformAndroid, BrowserPlatformBlackBerry, ... 
		BrowserPlatformiPhone, BrowserPlatformMobile
		PageDisplay(PAGE_Details_Mobile)
	OTHER CASE
		PageDisplay(PAGE_Details)
END
// Displays a smartphone-specific page in an AWP site

bBrwVersion is boolean

ConfigureAWPContext(ctxDisk, ctxIDCookie)
DeclareAWPContext(bBrwVersion)

IF bBrwVersion = False THEN
	SWITCH BrowserPlatform()
		CASE BrowserPlatformAndroid, BrowserPlatformBlackBerry, ... 
			BrowserPlatformiPhone, BrowserPlatformMobile
			PageDisplay("List-Travels-smartphones")
		OTHER CASE
			PageDisplay(PAGE_Home)
	END
END
bBrwVersion = True
Sintaxis
<Result> = BrowserPlatform()
<Result>: Integer constant
Browser platform:
BrowserPlatformAndroidThe user displays the site on a Smartphone running Android.
BrowserPlatformBlackBerryThe user displays the site on a BlackBerry.
BrowserPlatformiPadThe user displays the site on an iPad.
BrowserPlatformiPhoneThe user displays the site on an iPhone.
BrowserPlatformMobileThe user displays the site on a Smartphone (other than the mentioned ones).
BrowserPlatformRobotThe user is a search engine robot (and therefore indexes the site).
BrowserPlatformStandardThe user does not use a specific platform (PCs, laptop computers, Mac, ...).
BrowserPlatformWindowsMobileThe user displays the site on a Smartphone running Windows Mobile.
Note: This platform is no longer available from version 27 onwards.
BrowserPlatformWindowsPhoneThe user displays the site on a Smartphone running Windows Phone or Windows 10 Mobile.
Note: This platform is no longer available.
Observaciones
  • The function returns the BrowserPlatformStandard constant if the browser used by the Web user is unknown.
  • For a dynamic site (non-AWP site), the returned value corresponds to the browser used when connecting to the site. If the user changes to another browser (copies and pastes a URL into another browser, for example), this change is not detected.
  • If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event.
Componente: wd300page.dll
Versión mínima requerida
  • Versión 16
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local