I have a problem with my JavaScript code. I’m starting with some more complex things right now, seemed to find some answers on the net, but unfortunately I can’t get it fixed. The problem is:
I want the variables sGetMobileField and ValMob to get in the parameters, but like this it isn’t working:
var oFieldValues = { sGetMobileField:) { Value: ValMob } };
Variables don’t seem to work as a object property. Anybody can help me fix it?
Thanks,
Dane
Try this
You can use variables as property identifiers, but not inside an object literal. You have to create the object first, and may then add dynamic properties using