# External Interface.call question

**URL:** <https://forum.kirupa.com/t/external-interface-call-question/220120>\
**Category:** flash\
**Created:** [March 22, 2007, 9:28pm UTC](https://forum.kirupa.com/t/external-interface-call-question/220120 "2007-03-22T21:28:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mummra1](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mummra1](https://forum.kirupa.com/u/mummra1)\
**Post date:** [March 22, 2007, 9:28pm UTC](https://forum.kirupa.com/t/external-interface-call-question/220120/1 "2007-03-22T21:28:43Z")

</div>

Hello everyone,  
I’m using the ExternalInterface.call method to call a javascript method, which loads a page into a frame. It works in every single freakin’ browser except the IE family (IE6,IE7), including MAC browsers. It’s pretty simple. The actionscript is:

```auto
var sourceName = ExternalInterface.call("getSource");

```

this calls the getSource function in javascript, which looks like:

```auto
function getSource() {
var sourceName = top.main.document.getElementById('sourceName').innerHTML;
return sourceName;    
//no rocket science here!

}

```

the sourceName variable is then returned (theoretically) to the actionscript and is used in the following:

```auto
this.getURL(sourceName+"/somepage.html","main");

```

,which loads the new page into the ‘main’ frame.

I know here it is a relative URL, and I have tried using absolute URLs to fix this, to no avail. I think that the variable is not getting passed back to the .swf file properly in IE. Does anyone have any experience using the ExternalInterface.call method to communicate with javascript variables? Thanks in advance…🙂
