Invoke function of an object in javascript dynamically
<p>I am trying to write an generic function which will take the following params :
object of an javascript class(type object), method name(type string) and passing param (type object) . somewhat like below i have written my function named InvokeFunction :</p>

<pre><code>function InvokeFunction(objPerson , eventName, objParam)
{
 // now here i want to invoke an function(eventName) which is present in  objPerson(an javascript class) and also pass an objParam as it is an parametrized funtion
}
</code></pre>

<p><strong>Need to Do this :</strong></p>

<p>As i want an one common place where i will pass just an object and event name and an parameter need of that function.</p>

<p>It will be handled inside try catch block so if the event name passed is not present in teh object i will handle the exception.</p>

<p>Thanks in advance for any help or suggestion .</p>
