I have a html code in which i had two javascripts. I want to call the function of 1 javascript into another. Below given is the structure of my javascript.
<html>
<head>
<script>
function a()
{
//function code
this.parent["asd"].b(); //problem in dis line
}
</script>
<body>
<script>
var asd= new Asd();
function b()
{
//function code here
}
</script>
</body>
</html>
It works fine when i use it locally or from a web server. But if i upload this page in my facebook application, the parent class points somewhere else since its inside a iframe. How to resolve it. Is there any other way to call the function.