Converting text to js-asp code

Discussion in 'ASP General' started by Phil, Apr 5, 2004.

  1. Phil

    Phil Guest

    I have a site which uses javascript in an asp document to draw the content
    for part of the site from an external .js file.

    I want to be able to have a web interface where i can input text, and
    convert then save the file to the *.js format. This would involve adding
    "document.writeln(' "to the start of each line, and " ');" to the end. This
    would also involve adding <!-- to the start of the whole thing, and //--> to
    the end.

    Would this be possible, and if so how would I go about doing it, are there
    any scripts out there that I have missed, or is there a simple way to do it
    manually?

    Thanks
    Phil, Apr 5, 2004
    #1
    1. Advertising

  2. Do you mean that, you will place a textarea inside a webpage
    and you will input javascript inside that textarea
    then you maybe click on a button and save the text, which inside the
    textarea, to a *.js file.

    right?

    "Phil" <> wrote in message
    news:...
    > I have a site which uses javascript in an asp document to draw the content
    > for part of the site from an external .js file.
    >
    > I want to be able to have a web interface where i can input text, and
    > convert then save the file to the *.js format. This would involve adding
    > "document.writeln(' "to the start of each line, and " ');" to the end.

    This
    > would also involve adding <!-- to the start of the whole thing, and //-->

    to
    > the end.
    >
    > Would this be possible, and if so how would I go about doing it, are there
    > any scripts out there that I have missed, or is there a simple way to do

    it
    > manually?
    >
    > Thanks
    >
    >
    Utada P.W. SIU, Apr 21, 2004
    #2
    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. Nathan Sokalski
    Replies:
    6
    Views:
    4,075
    Nathan Sokalski
    Aug 29, 2006
  2. dominant

    Converting Vbasic code to C code

    dominant, Sep 11, 2003, in forum: C Programming
    Replies:
    10
    Views:
    616
    T.M. Sommers
    Sep 14, 2003
  3. Alfredo Agosti
    Replies:
    3
    Views:
    341
    Aaron Bertrand - MVP
    Sep 19, 2003
  4. Mike Green

    converting vertical text to horizontal text

    Mike Green, Feb 1, 2005, in forum: Perl Misc
    Replies:
    9
    Views:
    375
    Arndt Jonasson
    Feb 2, 2005
  5. Replies:
    2
    Views:
    157
    Tad McClellan
    Mar 22, 2005
Loading...

Share This Page