|
hello
im having an issue with a couple of javascript objects which are behaving quite strangely, could someone tell me if the following is standard behaviour, and if so, how can i change it.
i have 2 Objects in my code. when a user makes changes to a form a function is called which stores all of the current form selections into Ob1, then the form selections are validated and IF the new selection is permitted and validation passes, i make Ob1=Ob2;. Otherwise Ob2 remains as it was before the function was called.
Following this function i reload all of the form selections according to the info stored in Ob2.
The problem is that as soon as i make Ob1=Ob2, subsequent changes to Ob1 affect Ob2 automatically. Is this what should be happening? If so, is there a way i can stop it?
thanks
mark m
|