On your SP1 version, might there be offending code preceding your setReadOnly that would cause Javascript to stop its processing? Some context would be nice preceding the setReadOnly statement.
How are you defining "api"? I happen to be on SP1 and I declare it with the following:api = parent.getScriptFrame();So, what happens if you were to do "alert(api)" right before your setReadOnly statement? I'm wondering if JS even recognizes it as an object.
Okay, this is starting to bug me (as I'm sure it's been bugging you for a while). Could you post your DCT and any other applicable code (like this script, for instance) so I can see if I could find anything. The release notes for SP2 don't mention anything about setReadOnly().
I understand about the privacy stuff, etc.I don't find that at all in either the SP1 or SP2 release notes. What page are you on (presumably in the SP2 release notes)?It sounds like you're doing the right thing giving frequent alerts to debug the code but what about alerting:alert(api.IWDatacapture.getItem("/COMP").isReadOnly());Again, I'm still unclear as to why you're escaping the quotation marks.
OH, I'm sorry. For whatever reason, I thought you were referring to 6.5 even though you very clearly stated that you were on 6.1. Your usage of the escape character makes complete sense when you put it in context, but I'm afraid there's not much more I can say about this issue. I don't have a 6.1 box to test stuff out on and I think you'll get what you need by using excessive JS alerts.Please post the solution when (not if, but when) you find out what the problem is.Dave
As far as escaping the quotation marks is concerned it is used... because of the api is being called from a cgi file as:print "api.IWDatacapture.getItem(\"/COMP\").setReadOnly(false);\n";
print qq{api.IWDatacapture.getItem("/COMP").setReadOnly(false);\n};
print qq{Isn't this "nice"?\n};