Get [Data] variable from GetObjectHTML - Forum

Forum Navigation
You need to log in to create posts and topics.

Get [Data] variable from GetObjectHTML

Hi,

i'm trying to get the value from [Data] variable after click on boton send form but i can't. I need to manipulate the response if it's OK or NOT.  i'm using: exito,(data,status) and fallo,(data,status)

Example:

GetObjectHTML "Container1" [Data]
If [Data] === "Autenticado"
GotoPage "crea_user_pag"
SetVar [user_connect] [usuario]
EndIf

i have try with this to: GetObjectHTML "Container1" [Data]

but with no results.

What could be wrong ?

 

Regards,

Sam

Ok i respond my self :-D, the problem was that after send form the script finish OK with status 200 but i i'm calling a python script in backend, so that is the one that fails but the response received is still 200, not -1. Thats why i can't handle the exception, because for appl it's always returnig 200 (OK). i have to figure out other way.

Regards,

Sam

A 200 return code means the communication between client and server is Ok, but it doesn't mean the code is working as expected.
You should return and process your own error messages to get track about whats happening on server side.
Regards.