The full code work

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

    #1

    The full code work

    Hi at all,
    please take a look to this code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD>
    </HEAD> <BODY>
    <SCRIPT LANGUAGE="javas cript" src="http://www.lachiesa.it/liturgiaoggi.tx t">
    </SCRIPT>

    <SCRIPT LANGUAGE="javas cript"
    src="http://www.santiebeati .it/santidioggi.txt ">
    </SCRIPT>
    ..
    </BODY> </HTML>

    It do not work.

    I token it from the site www.lachiesa.it where it work well.

    my question are
    1) why my source code do not work?
    2) Why the original work?
    Thank in advance and best regard.
    P.Pietro


  • Michael Winter

    #2
    Re: The full code work

    On Mon, 30 Aug 2004 07:28:17 GMT, Anna Maria <NOSPAM@eurotim e.it> wrote:
    [color=blue]
    > Hi at all,
    > please take a look to this code:
    > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>
    > <HEAD>[/color]

    HTML documents require a TITLE element (even if it's just empty). This
    won't make this page work, but it will make it valid.
    [color=blue]
    > </HEAD> <BODY>
    > <SCRIPT LANGUAGE="javas cript"[/color]

    The language attribute is deprecated in favour of the (required) type
    attribute. The former should not be used any more.

    <script type="text/javascript" ... >
    [color=blue]
    > src="http://www.lachiesa.it/liturgiaoggi.tx t">[/color]

    I'm not sure if it would really make a difference, but you should give
    javascript files a .js extension. As .txt, they'll probably be served as
    text/plain, which isn't the correct MIME type.
    [color=blue]
    > </SCRIPT>
    >
    > <SCRIPT LANGUAGE="javas cript"
    > src="http://www.santiebeati .it/santidioggi.txt ">
    > </SCRIPT>[/color]

    The comments above apply here, too.

    [snip]
    [color=blue]
    > It do not work.[/color]

    Could you be more specific? What doesn't work?

    I couldn't download either of the two files, so you might want to check
    that first. If it's a script error, there's no way I could suggest what's
    wrong without actually seeing the code.
    [color=blue]
    > I token it from the site www.lachiesa.it where it work well.[/color]

    Do you have permission to do that? Unless it states clearly that the code
    may be redistributed, you could be commiting an offense. Not that anyone
    would notice, really.

    [snip]

    Good luck,
    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    • Anna Maria

      #3
      Re: The full code work


      "Michael Winter"
      wrote:
      [color=blue]
      > Could you be more specific? What doesn't work?[/color]
      I canot download the .txt file source code but only the result of that it
      contain.
      The text fuke contain html code.
      [color=blue]
      > Do you have permission to do that?[/color]

      Yes.[color=blue]
      >
      > Good luck,
      > Mike
      >[/color]
      g l
      P.P.


      Comment

      • Michael Winter

        #4
        Re: The full code work

        On Mon, 30 Aug 2004 17:09:42 GMT, Anna Maria <NOSPAM@eurotim e.it> wrote:
        [color=blue]
        > "Michael Winter" wrote:
        >[color=green]
        >> Could you be more specific? What doesn't work?[/color]
        >
        > I canot download the .txt file source code but only the result of that
        > it contain.[/color]

        Well, if you couldn't download the source code, neither could your browser
        and what it can't read, it can't execute. Now that the code appears to be
        accessible, you should be able to load your page with no problems.

        I've been able to see the source code, and it's nothing special. In fact,
        I don't understand the point of it at all: it's simply a series of
        document.write( ) calls, though all the text is static.

        Why on earth would you want to use that code, or was it just a test?

        [snip]

        Mike

        --
        Michael Winter
        Replace ".invalid" with ".uk" to reply by e-mail.

        Comment

        • Anna Maria

          #5
          Re: The full code work


          "Michael Winter"
          wrote:[color=blue]
          > Why on earth would you want to use that code, or was it just a test?[/color]


          because it'ld produce a box with a link that I must insert into a web page
          and I want to be sure that it do not hide some thing.[color=blue]
          > [snip]
          >
          > Mike
          >
          > --
          > Michael Winter
          > Replace ".invalid" with ".uk" to reply by e-mail.[/color]


          Comment

          Working...