dynamic javascript and html using javascript

Discussion in 'Javascript' started by parez, Sep 11, 2007.

  1. parez

    parez Guest

    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.
    parez, Sep 11, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    7
    Views:
    1,035
  2. Adam Akhtar
    Replies:
    9
    Views:
    523
    Florian Gilcher
    Aug 16, 2008
  3. wolfgang wagner

    Dynamic HTML and javascript functions

    wolfgang wagner, Nov 17, 2003, in forum: Javascript
    Replies:
    0
    Views:
    143
    wolfgang wagner
    Nov 17, 2003
  4. srinivas
    Replies:
    0
    Views:
    889
    srinivas
    Nov 18, 2005
  5. howa
    Replies:
    2
    Views:
    90
    Dr J R Stockton
    Dec 7, 2006
Loading...

Share This Page