In my app, I need to open an iFrame, whose content comes from the same domain and uses the same protocol, and port number.
For the content in the iFrame, I want to have mouse click events, and I need to catch these events by using JQuery's $('#my-item").click(function(){ ..... }). The javscript code is in a file loaded TOGETHER with the iFrame content.
However, the mouse click event is not caught by my javascript code. I am kind of confused. I really want to KNOW and LEARN about how to do Javascript within content in an iFrame. I am not talking about javascript code loaded with the iFrame's parent.
Thanks for any input and pointers.
Regards.