Vishal Hegde wrote:I am unable to understand the below code in .js file, here is the var declared as jsonString , is it simply a variable or is it something predefined.
jsonString is just a variable to which a string is assigned.
if jsonString is simply a variable , then how is the value assigned to it like '{"Opportunity_id" : "'+oppId+'"}';
Don't know what you are asking here. It's simply a string. It represents a JSON object.
Does that mean json is acceptiong String value?
It just means that a variable is being assigned a string.
And what does postAction mean and do?
No way of knowing. it might be a function defined elsewhere in the page, or by an included script. It is not part of standard JavaScript or the DOM API.
Please note:i am using Structs framework
You must mean
Struts. Please take more care when posting.