X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

eval function (Javascript) doesnt run on Firefox for Android plugin

GaL
Posted

I'm trying to migrate a desktop plugin into a Firefox for Android plugin , and I need to use the 'eval' function. When I run the plugin on mobile, it crashes when eval(). This is what I need to do:

String adaptionFunction = getConcreteFunctionName(); eval (adaptionFunction);

The first line returns something like this: __Application__.newList() I also tryed this, but didn't work:

var tmpFunc = new Function(adaptionFunction); tmpFunc();

What I can do? This same code runs fine on desktop. Thanks for your time,

GaL

Chosen solution

There was a logic problem, and eval works fine. I can't delete this post, so I answer here.

Read this answer in context 1

Additional System Details

Application

  • User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0

More Information

Chosen Solution

There was a logic problem, and eval works fine. I can't delete this post, so I answer here.