(it seems my last post was messed up by the code, have put it in attachments)
I have been trying to solve this problem for the last 10 hours and it is driving me nuts. I have been using this as my guidelines:
http://teamsite.iblogger.org/formapi/I have attacted a simple cfg, containing a dropdown list and a browser
I have also attached some simple javascript.
By using javascript im trying to put an "onItemChange" eventlistener on the dropdownlist to make the inputbrowser read-only.
After having placed alerts i know that the init method is called but the showInputForSelected function is not called when i use the drop down list.
If i add parentheses to showInputForSelected:
IWEventRegistry.addItemHandler("InformationBox/content/Choose_box_type", "onItemChange", showInputForSelected());
showInputForSelected is called once on pageload (?!), setting the inputbrowser to readonly, but never again.
I have tried many more combinations of parentheses, parameters, new functions etc nothing will let me place an eventlistener on the dropdown list.
I really hope someone can help me out here i feel like i have tried everything possible.
Thanks