Displaying 1 result from an estimated 1 matches for "myjsonobject".
2006 May 24
2
newbie oo question
...lt to a JSON
object that has the convention of: id of element + ''Data'', so if you
have this object in your javascript you don''t have to do anymore work.
If you want to pass in a different object though you can do so like:
new myObject(''elementID'',{data: myJSONObject})
It works great if no object is passed as an argument, but when I try
to pass a data param through nothing happens. I don''t even get an
error. I can pass other things through like:
new myObject(''elementID'',{foo: myJSONObject})
and I''ll be able to alert out my...