How to evaluate a full function string (including params) in javascript?

I think eval will help.. in the condition. w3schools.com/jsref/jsref_eval.asp But please be careful about using eval and check conditions if its fits in your case.

Use this fn to create a fn from string function createFunctionFromString(fnName, noOfParameters) { var _params = ; for (i = 0; I ToString(","), "return " + fnName + "(" + _params. ToString(",") + ");") : null; _params. Length = 0; return _fn; } //Now use above fn in your change event var convertedFn=createFunctionFromString($("#id-select-action option:selected").val(),'SomeInteger'); convertedFn(); http://jsfiddle.net/praveen_prasad/fk8fh.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions