Hi,
I load some javascript functions through a string in to a div of a html file
also i set an onclick event to a td thru setAttribute.
This works fine if there is just an alert or a scripts without functions (in this case the string is passed asit is).
the string is with function and statement inside it is written inside a div with creating script tags at he begging and end . Now When i assing the function to the td thru setAttribute the function inside the div is not called.
I tried it to insert into the Head tag also even then its not working.
the error is : the function is not defined.
Any Suggestions PLS
.... Looking Forward.
I load some javascript functions through a string in to a div of a html file
also i set an onclick event to a td thru setAttribute.
This works fine if there is just an alert or a scripts without functions (in this case the string is passed asit is).
the string is with function and statement inside it is written inside a div with creating script tags at he begging and end . Now When i assing the function to the td thru setAttribute the function inside the div is not called.
I tried it to insert into the Head tag also even then its not working.
the error is : the function is not defined.
Any Suggestions PLS
.... Looking Forward.
Comment