save or print string

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • occam

    save or print string

    I form an 'html' string interactively that can be output by `xx.html` as
    'document.write (string)' which shows the html and the html source.
    I can also see the string using `alert("string "+string);`
    But how can I save that string or print that string?

    db


  • sbriet

    #2
    Re: save or print string

    If you do a: document.write( "string") you can print your page and also
    to a file.

    If you use Firefox, for example, you can select the string and ask to
    see the code.
    Select the display on your page, right click and do "view selection
    source"
    Then you can see your code.

    Comment

    • occam

      #3
      Re: save or print string

      Done.
      Thanks!

      db

      "sbriet" <sbriet@hotmail .com> wrote in message
      news:1104268779 .860079.198540@ z14g2000cwz.goo glegroups.com.. .[color=blue]
      > If you do a: document.write( "string") you can print your page and also
      > to a file.
      >
      > If you use Firefox, for example, you can select the string and ask to
      > see the code.
      > Select the display on your page, right click and do "view selection
      > source"
      > Then you can see your code.
      >[/color]


      Comment

      • eh

        #4
        Re: save or print string

        Hello occam

        I'm intersted to know how to do that as well without user intervention.

        I have an ASP.NET application that produces html strings which should
        be wither emailed or printed. The email is easy. I cannot manage to do
        printing without going through a file, which I prefer not to.

        Thanks,
        eh

        occam wrote:[color=blue]
        > Done.
        > Thanks!
        >
        > db
        >
        > "sbriet" <sbriet@hotmail .com> wrote in message
        > news:1104268779 .860079.198540@ z14g2000cwz.goo glegroups.com.. .[color=green]
        > > If you do a: document.write( "string") you can print your page and[/color][/color]
        also[color=blue][color=green]
        > > to a file.
        > >
        > > If you use Firefox, for example, you can select the string and ask[/color][/color]
        to[color=blue][color=green]
        > > see the code.
        > > Select the display on your page, right click and do "view selection
        > > source"
        > > Then you can see your code.
        > >[/color][/color]

        Comment

        • eh

          #5
          Re: save or print string

          Hello occam

          I'm intersted to know how to do that as well without user intervention.

          I have an ASP.NET application that produces html strings which should
          be wither emailed or printed. The email is easy. I cannot manage to do
          printing without going through a file, which I prefer not to.

          Thanks,
          eh

          occam wrote:[color=blue]
          > Done.
          > Thanks!
          >
          > db
          >
          > "sbriet" <sbriet@hotmail .com> wrote in message
          > news:1104268779 .860079.198540@ z14g2000cwz.goo glegroups.com.. .[color=green]
          > > If you do a: document.write( "string") you can print your page and[/color][/color]
          also[color=blue][color=green]
          > > to a file.
          > >
          > > If you use Firefox, for example, you can select the string and ask[/color][/color]
          to[color=blue][color=green]
          > > see the code.
          > > Select the display on your page, right click and do "view selection
          > > source"
          > > Then you can see your code.
          > >[/color][/color]

          Comment

          • eh

            #6
            Re: save or print string

            Hello occam

            I'm intersted to know how to do that as well without user intervention.

            I have an ASP.NET application that produces html strings which should
            be wither emailed or printed. The email is easy. I cannot manage to do
            printing without going through a file, which I prefer not to.

            Thanks,
            eh

            occam wrote:[color=blue]
            > Done.
            > Thanks!
            >
            > db
            >
            > "sbriet" <sbriet@hotmail .com> wrote in message
            > news:1104268779 .860079.198540@ z14g2000cwz.goo glegroups.com.. .[color=green]
            > > If you do a: document.write( "string") you can print your page and[/color][/color]
            also[color=blue][color=green]
            > > to a file.
            > >
            > > If you use Firefox, for example, you can select the string and ask[/color][/color]
            to[color=blue][color=green]
            > > see the code.
            > > Select the display on your page, right click and do "view selection
            > > source"
            > > Then you can see your code.
            > >[/color][/color]

            Comment

            Working...