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 AJAX
  • Reminder
  • Older browsers
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
AJAXCancelAsynchronousCall (Function)
Cancels the automatic execution of the browser procedure called by AJAXExecuteAsynchronous. The server procedure called by AJAXExecuteAsynchronous will continue to run.
Reminder Line: The browser procedure is used to process the result returned by the server procedure. When AJAXCancelAsynchronousCall is called, the result of the server procedure will not be processed
Ejemplo
// Is AJAX supported by the current browser?
IF AJAXAvailable() = True THEN
	// Run the server procedure named "MyProc"
	// As soon as the result of the "MyProc" server procedure
	// will be available, 
	// the "ProcResult" browser procedure will be run
	Res is int
	Res = AJAXExecuteAsynchronous(MyProc, ProcResult)
	// The following processes are run without waiting for the result
	...
	// Progress of the server procedure named "MyProc"
	IF AJAXAsynchronousCallPending(Res) = True THEN
		// Cancel the execution 
		// of the "ProcResult" browser procedure
		// The result of the "MyProc" server procedure 
		// cannot be processed
		AJAXCancelAsynchronousCall(Res)
	END
ELSE
	// Processes without using AJAX
	... 
END
Sintaxis
AJAXCancelAsynchronousCall(<Identifier of server procedure>)
<Identifier of server procedure>: Integer
Identifier of the server procedure whose result will not be processed. This identifier was defined by AJAXExecuteAsynchronous.
Observaciones

Reminder

AJAXAsynchronousCallPending is used to find out whether a server procedure called by AJAXExecuteAsynchronous is currently run.

Older browsers

La función AJAXAvailable permite determinar si el navegador actual soporta AJAX. Si un proceso que utiliza AJAX se ejecuta en un navegador que no es compatible con esta tecnología, el proceso se ejecuta "como si" no utilizara AJAX (por ejemplo, se actualiza toda la página).
Componente: WDJS.DLL
Versión mínima requerida
  • Versión 10
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