POST
requests. This class utilizes varags to reflect the JavaScript callback function in an optimal way. However, varargs can be tricky. You can always omit passed parameters from right to left but any violation may result in an exception or a failed callback.
For example: window.parent.OnUploadCompleted(101,'some/url/file.img','file.img','no error')
can be mapped with UploadResponse ur = new UploadResponse(SC_SOME_ERROR,"/some/url/file.img","file.img","no error")
.
But window.parent.OnUploadCompleted(101,'some/url/file.img','no error')
is an illegal callback and will fail.
POST
requests. This class utilizes varags to reflect the JavaScript callback function in an optimal way. However, varargs can be tricky. You can always omit passed parameters from right to left but any violation may result in an exception or a failed callback.
For example: window.parent.OnUploadCompleted(101,'some/url/file.img','file.img','no error')
can be mapped with UploadResponse ur = new UploadResponse(SC_SOME_ERROR,"/some/url/file.img","file.img","no error")
.
But window.parent.OnUploadCompleted(101,'some/url/file.img','no error')
is an illegal callback and will fail.
|
|
|
|
|
|
|
|