I have found an interesting quirk in the web client (3.5.1) when using the StringReplace function.
I had a simple routine that replaced some variable text if it was there and it works fine in the normal smart client.
var initial=utils.stringReplace(rw_tr_initial,'{hospital}',rw_tr_hospital)
if rw_tr_initial didnt have the {hospital} in it in smart client it just gave you the rw_tr_initial back.
in webclient this doesnt work. it just deletes the whole line and gives you nothing back in var initial.
The workaround is to do a pattern count first and dont do the replace if you dont find the pattern, just make the variable equal to the field.
Just one of those quirky things, i though i would let others know in case they are bangin their head against the desk with similar code.
David