Reputation: 10049
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 don't get that error?
Upvotes: 0
Views: 123
Reputation: 4448
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.
Upvotes: 1