简体   繁体   中英

Javascript: How to call this inner function?

This is my JS file: ezee.se/quickfilter.js

In an external file I am calling it like this:

<script type="text/javascript" src="quickfilter.js"></script>

function refresh_the_list2()
{
quickfilter_mafiaafire.request_xml();
var status = document.getElementById("refre");
 status.innerHTML = 'Done! Use the above link to view the blocklist.';
}

but I keep getting this error:

Error: quickfilter_mafiaafire.request_xml is not a function

How do I call it so I dont get that error?

Thanks!

Looking at your code, my guess would be:

quickfilter_mafiaafire.main.request_xml();

since request_xml is defined as a property of quickfilter_mafiaafire.main on line 139.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM