I am using $.post to load some js code from a MYSQL database. How do I execute it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Jokes aside. You can use
evalto run a snippet of JavaScript. I’m sure everyone else will tell you whyevalis evil.Ideally though what your doing is bad. There’s a far better way to solve your problem that doesn’t involve grabbing code from a database.