I have some mockup in HTML
When i sent the request i got the response from the server
With this mockup i have as a response to a request from ajax that sends my code to the server
Well, everything is fine but when I click on the link the browser wants to open the function as link; meaning after click I see the address bar as
means browser thing that's url if I want to do this in firebug that's work. Now i want to do that then when anyone clicks the link then the browser tries to call the function already loaded in the dom instead of trying to open them in browser.
That syntax should work ok, but you can try this alternative.
UPDATED ANSWER FOR STRING VALUES
If you are passing strings, use single quotes for your function's parameters