0

I'm using this override to get the content of a js file as a string.

Content of the variable where the js file is loaded into:

<html>
<body>
//META{"name":"testPlugin"}*//
function testPlugin() {
    var settings = {
        testSettingBool : true,
        testSettingInt : 123,
        testSettingStr : "Test String",
    }
}
testPlugin.prototype.getName = function() { return "Test"; };
testPlugin.prototype.getDescription = function() { return "Test Description"; };
testPlugin.prototype.getVersion = function() { return "1.0"; };
</body>
</html>

Now i only want to eval a special function in that string like

testPlugin.prototype.getVersion();

Thanks for any help :)

Community
  • 1
  • 1
Bluscream
  • 255
  • 1
  • 3
  • 18

0 Answers0