Hi, Alain,
1. The reason for using two models with javascript functions is to use the eXist capability of sending some data after receiving a HTTP POST request. Of course, it would be easier to send the HTTP POST request to server, reset the model (only one model) and send to server a HTTP GET request for the general data wanted.
But I wanted to save this new HTTP GET request and do all job with only one request to server.
Of course, this costs me a lot of precessing client-side, namely: receive data after HTTP POST request, transfer it to model2, reset model1, transfer data to model1.
If you think that I act in a too complicated manner, tell me, please.
2. I don't want to rush. I want to gradually transfer my XForms pages to XSLTForms. So, I will be patient and you will receive due observations from me.
Thank you,
Claudius
|