# Problem calling ext js functionS?

**URL:** <https://forum.kirupa.com/t/problem-calling-ext-js-functions/252874>\
**Category:** programming\
**Created:** [February 24, 2008, 9:01pm UTC](https://forum.kirupa.com/t/problem-calling-ext-js-functions/252874 "2008-02-24T21:01:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubermeowmix](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@Ubermeowmix](https://forum.kirupa.com/u/Ubermeowmix)\
**Post date:** [February 24, 2008, 9:01pm UTC](https://forum.kirupa.com/t/problem-calling-ext-js-functions/252874/1 "2008-02-24T21:01:28Z")

</div>

I have these functions relating to both .html and .php pages and neither of them are calling the functions properly. It works fine when I pop the code into the page, but not when I nest it in the external files.

Is this an innerHTML issue?

CODE:

var text\_work = “blady blady bla”;  
function display\_work(){  
document.getElementById(“main\_content”).innerHTML = text\_work;  
}

(then obviously a div named main\_content on the page)!
