Over the past few days I have been looking at gadget to gadget RPC calls and I am kind of puzzled.
If gadget 1 wants to make and RPC call to gadget 2 it needs to know the "id" of gadget 2. I believe, after looking through the code, that the "id" is actually the iframe id. However this doesn't make sense to me because there is no way when you're in the context of gadget 1 to find the iframe of gadget 2. I guess the over arching question is how would one gadget know the id of another gadget in order to make the RPC call to it. If the ids are equal to the iframe id, than those ids could potentially be different in every container. Without a service provided by the container to provide the gadget id for a gadget, it would be very difficult to do gadget to gadget RPC calls. Maybe gadget to gadget RPC calls are easier when the gadgets are cajoled? Is pub sub a better way to do gadget to gadget communication? Should RPC only be used for gadget to container communication? -Ryan Email: rjbax...@us.ibm.com Phone: 978-899-3041 developerWorks Profile