yes , its still not clear from the post that what exactly your script is trying to achieve.explain that too and this is not the complete code i guess..
network18
Practically a Master Poster
619 posts since Sep 2009
Reputation Points: 29
Solved Threads: 76
Where is your implementation for saveUpdateCodes? My guess is that your bug is in that function.
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244
that javascript wasn't waiting for a response from the web service
I know, that's why I wanted to see your js implementation of saveUpdateCodes(). My guess is you are sending an asynchronous request be do not have a callback function to determine the completion of the request.
Alternatively you can execute a synchronous request.
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244