Skip to main content

Posts

Showing posts from March, 2013

Accessing parent-child (Iframe) from one another

I was wondering!! O.o, how could we access other page controls from a page using JavaScript/Jquery. But this sample gave me the solution. From Iframe page (child page) access Parent page controls: function AccessParentPage(){             var url = parent.document.referrer;             var obj = parent.document;             // this find can be used to find the control by id or by control type.             // then we can use the control the way usually do with client side              //scripting             $(obj).find(' control  name '); } From Iframe page (child page) access Parent page js methods: This is pretty simple you just need to add "parent" keyword in the beginning to call methods in parent page. eg. if " validate() " was the method in parent page then simply you can call " ...