No, there isn't, but you can send back an FDF file from the server that
contains JS code, which will be executed upon arrival after a successful
Is there a way to test the connection to the server?
I don't think so.
You'd test the connection in the same way. Submit something... anything... and use a timer to wait for a change in the file that the returned FDF triggered. After the timeout, if the FDF didn't change the file, the server can't be reached.