Have a situation where I need to retrieve a parent variable but am unable to modify the parent source code. I also want to apply any solution in a cross domain situation but using PHP coding techniques.
<div class='userbox'> <div class='avatar'><div class='element_avatar simple medium '><a href="http://thetemplars.enjin.com/profile/2819806" data-minitooltip="Noesis"><img src="http://assets-cloud.enjin.com/users/2819806/avatar/medium.1362825808.png"></a></div></div> <div class='username'><a href='/profile/2819806' class='element_username'>Noesis</a></div> <a class='logout' href='/logout'>Logout</a> </div>
I'm using PHP as my coding platform and believe there could be useful techniques to extract data from the above that doesn't require the preferred method of a listener or simply isn't possible in the case of a java process from the child when cross domains are in use.
Ideally the textual part associated with the class "element_username" or the "data-minitooltip" value could be used as per the username displayed on the parent frame.
Could anyone advise of useful techniques how I could extract this information with only being able to apply coding changes in the child php code?
Edited by Noesis, 19 November 2013 - 04:08 PM.