I am having trouble with the getproperty in 4.1, and not sure how to fix this. I tried a number of different things, but never is working. Below is just one example of the problem, this happens with every getProperty I have on my website. If you can tell me how to fix this that would be good.
This is what I get in the debugger:
API: Invalid argument type in call to API function "getProperty", argument 1: expected "[controller]", but was "[object]". anonymous()
function anonymous(vars) {
return bb.getProperty(document.getElementById("user_name"), "value");
}
return bb.getProperty(document.getElementById("user_name"), "value");
}

getProperty need a Controller object
19 November, 2007 - 08:28 — huanhoHello ShawnRisk,
In many backbase functions, you must use a controller object instead of a DOM object. A example:
Get a DOM object : document.getElementById("user_name");
Get a backbase Controller : bb.document.getElementById("user_name");
Your code must get a backbase controller :
return bb.getProperty(bb.document.getElementById("user_name"), "value");
}
Thanks.
19 November, 2007 - 19:22 — ShawnRiskThanks for the information, this worked out. I noticed that I needed this for both of my variables, and forget that.
I understand what you mean about DOM object and backbase controller now.