dynamic javascript and html using javascript

P

parez

Hi all,


i have a page page.aspx which spits out javascript.
something like this..

document.write("<html>");
document.write("<body>")
document.write(Stuff)
document.write("</body>")
document.write("</html>")



Page2.html
<script src="page.aspx"></script>

Stuff is controlled by me.


Now i have to make change so that user can uploadtheir own html and
javascript.
and i get errors with user defined javascript in Stuff mostly because
of qoutes.
e.g var a ="safdf" + "df";
in stuff will be a problem.
Is there a way around this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top