transparent
Programmer
I am writing an Ajax component for .NET.
It is a button, which when clicked makes an Ajax request to the server.
<input type="image" onclick="AjaxRichControls.ImageButton.Clicked('7');" />
The server will return a string that contains javscript function calls i.e. deliminated by |
I want to write a function that will execute all of the returned functions i.e.
<input type="image" onclick="ExecuteJavascript(AjaxRichControls.ImageButton.Clicked('7'));" />
function ExecuteJavascript(string)
{
//split the string into an array based on the delimiator |
// iterate through the array
//execute item in the array
}
How can I execute each javascript command in the array???
It is a button, which when clicked makes an Ajax request to the server.
<input type="image" onclick="AjaxRichControls.ImageButton.Clicked('7');" />
The server will return a string that contains javscript function calls i.e. deliminated by |
I want to write a function that will execute all of the returned functions i.e.
<input type="image" onclick="ExecuteJavascript(AjaxRichControls.ImageButton.Clicked('7'));" />
function ExecuteJavascript(string)
{
//split the string into an array based on the delimiator |
// iterate through the array
//execute item in the array
}
How can I execute each javascript command in the array???