Loading ...
Sorry, an error occurred while loading the content.

I can't get this to print.....Please Help

Expand Messages
  • Rick
    I m new to this and I thougt I was doing it right, but, I get no printout to the screen. ANyone have any ideas?? Thank you /*
    Message 1 of 6 , Sep 30, 2008
    • 0 Attachment
      I'm new to this and I thougt I was doing it right, but, I get no
      printout to the screen. ANyone have any ideas??
      Thank you



      <script type="text/javascript">
      /* <![CDATA[ */
      var autoDealer = "Cahill Cars";
      function printFinanceOptions()
      {
      document.write("<h1> Financing Options</h1>");
      document.write("<ul>">");
      document.write("<li>24 months: 6.75%</li>");
      document.write("<li>28 months: 7.15%</li>");
      document.write("<li>72 months: 7.50%</li>");
      document.write("</ul>">");
      }
      /*]]>> */
      </script>
      </head>
      <body>

      <script type="text/javascript">
      /* <![CDATA[ */
      printFinanceOption();
      /*]]>> */
      </script>
      </body
      </html>
    • Gregory Hegykozi
      I do know for sure on both of these document.write( ); it should be document.write( ); as there was extra I do not know if that will make a
      Message 2 of 6 , Oct 2, 2008
      • 0 Attachment
        I do know for sure on both of these document.write("<ul>">"); it should be
        document.write("<ul>"); as there was extra >" I do not know if that will
        make a difference but you can try it out

        On Tue, Sep 30, 2008 at 5:45 PM, Rick <fotog4@...> wrote:

        > I'm new to this and I thougt I was doing it right, but, I get no
        > printout to the screen. ANyone have any ideas??
        > Thank you
        >
        > <script type="text/javascript">
        > /* <![CDATA[ */
        > var autoDealer = "Cahill Cars";
        > function printFinanceOptions()
        > {
        > document.write("<h1> Financing Options</h1>");
        > document.write("<ul>">");
        > document.write("<li>24 months: 6.75%</li>");
        > document.write("<li>28 months: 7.15%</li>");
        > document.write("<li>72 months: 7.50%</li>");
        > document.write("</ul>">");
        > }
        > /*]]>> */
        > </script>
        > </head>
        > <body>
        >
        > <script type="text/javascript">
        > /* <![CDATA[ */
        > printFinanceOption();
        > /*]]>> */
        > </script>
        > </body
        > </html>
        >
        >
        >



        --
        May you all be blessed according to your deeds and not by a man's death

        Mordecai Dotan
        Gregory


        [Non-text portions of this message have been removed]
      • Tim Sabin
        The CDATA lines are totally not needed. --Tim Sabin ... --Tim Sabin
        Message 3 of 6 , Oct 2, 2008
        • 0 Attachment
          The CDATA lines are totally not needed.

          --Tim Sabin


          > I'm new to this and I thougt I was doing it right, but, I get no
          > printout to the screen. ANyone have any ideas??
          > Thank you
          >
          >
          >
          > <script type="text/javascript">
          > /* <![CDATA[ */
          > var autoDealer = "Cahill Cars";
          > function printFinanceOptions()
          > {
          > document.write("<h1> Financing Options</h1>");
          > document.write("<ul>">");
          > document.write("<li>24 months: 6.75%</li>");
          > document.write("<li>28 months: 7.15%</li>");
          > document.write("<li>72 months: 7.50%</li>");
          > document.write("</ul>">");
          > }
          > /*]]>> */
          > </script>
          > </head>
          > <body>
          >
          > <script type="text/javascript">
          > /* <![CDATA[ */
          > printFinanceOption();
          > /*]]>> */
          > </script>
          > </body
          > </html>
          >
          >
          >
          > ------------------------------------
          >
          > Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
          >
          >
          >
          >

          --Tim Sabin
        • Jon Stephens
          There s 4 mistakes. All of them are simple typos. Two of them are identical, and result in unterminated strings/broken tags. (Looks like a copy/paste muckup.)
          Message 4 of 6 , Oct 3, 2008
          • 0 Attachment
            There's 4 mistakes. All of them are simple typos.

            Two of them are identical, and result in unterminated strings/broken
            tags. (Looks like a copy/paste muckup.)

            One is in the function name (which must be same the same in both the
            definition and the function call).

            One is a broken HTML tag (not in the JS code).

            Suggestion: Use a text editor that features syntax highlighting. This
            will help you catch typos like these. There are heaps of good text
            editors available out there - try Googling for some. Many of them are free.

            My personal favourite for Windows is UltraEdit (not free, but very
            inexpensive and worth every penny IMO). I know many people who swear by
            jEdit.

            P.S. You probably don't need the CDATA stuff, unless you're coding XHTML
            Strict (admirable, but largely a waste of time since MSIE doesn't
            recognise the correct content-type for it).

            cheers

            jon.

            > I can't get this to print.....Please Help
            > Posted by: "Rick" fotog4@... fotog4
            > Date: Thu Oct 2, 2008 12:10 pm ((PDT))
            >
            > I'm new to this and I thougt I was doing it right, but, I get no
            > printout to the screen. ANyone have any ideas??
            > Thank you
            >
            >
            >
            > <script type="text/javascript">
            > /* <![CDATA[ */
            > var autoDealer = "Cahill Cars";
            > function printFinanceOptions()
            > {
            > document.write("<h1> Financing Options</h1>");
            > document.write("<ul>">");
            > document.write("<li>24 months: 6.75%</li>");
            > document.write("<li>28 months: 7.15%</li>");
            > document.write("<li>72 months: 7.50%</li>");
            > document.write("</ul>">");
            > }
            > /*]]>> */
            > </script>
            > </head>
            > <body>
            >
            > <script type="text/javascript">
            > /* <![CDATA[ */
            > printFinanceOption();
            > /*]]>> */
            > </script>
            > </body
            > </html>




            --
            This message has not been scanned for viruses.

            Since I do not use a Microsoft operating
            system or software, and use only plaintext
            for email, there is little need for me to do so.
          • Tariq
            There were some syntax error in ur code. First: quotation closing error ( ) in tags. Second: spelling mistake in javascript . Third: function
            Message 5 of 6 , Oct 6, 2008
            • 0 Attachment
              There were some syntax error in ur code. First: quotation closing
              error ("") in <ul> tags. Second: spelling mistake in 'javascript'.
              Third: function declaration, gaps were there between braces.
              Try this code. It works fine.

              <html>
              <head>
              <script language="javascript">
              /* <![CDATA[ */
              var autoDealer = "Cahill Cars";
              function printFinanceOptions()
              {
              document.write( "<h1> Financing Options</h1> ");
              document.write( "<ul>") ;
              document.write( "<li>24 months: 6.75%</li>") ;
              document.write( "<li>28 months: 7.15%</li>") ;
              document.write( "<li>72 months: 7.50%</li>") ;
              document.write( "</ul>" );
              }
              </script>
              </head>
              <body>

              <script language="javascript">
              printFinanceOptions();
              </script>
              </body>
              </html>





              --- In JavaScript_Official@yahoogroups.com, "Rick" <fotog4@...> wrote:
              >
              > I'm new to this and I thougt I was doing it right, but, I get no
              > printout to the screen. ANyone have any ideas??
              > Thank you
              >
              >
              >
              > <script type="text/javascript">
              > /* <![CDATA[ */
              > var autoDealer = "Cahill Cars";
              > function printFinanceOptions()
              > {
              > document.write("<h1> Financing Options</h1>");
              > document.write("<ul>">");
              > document.write("<li>24 months: 6.75%</li>");
              > document.write("<li>28 months: 7.15%</li>");
              > document.write("<li>72 months: 7.50%</li>");
              > document.write("</ul>">");
              > }
              > /*]]>> */
              > </script>
              > </head>
              > <body>
              >
              > <script type="text/javascript">
              > /* <![CDATA[ */
              > printFinanceOption();
              > /*]]>> */
              > </script>
              > </body
              > </html>
              >
            • kapil dev
              Program error is now rectified check and let me know. var autoDealer = CahillCars ; function
              Message 6 of 6 , Oct 16, 2008
              • 0 Attachment
                Program error is now rectified check and let me know.

                <html>
                <head>
                <script type="text/javascript">
                var autoDealer = "CahillCars";
                function printFinanceOptions()
                {
                document.write("<h1>Financing Options</h1>");
                document.write("<ul>");
                document.write("<li>24 months: 6.75%</li>");
                document.write("<li>28 months: 7.15%</li>");
                document.write("<li>72 months: 7.50%</li>");
                document.write("</ul>");
                }
                </script>
                </head>
                <body>
                <script type="text/javascript">
                printFinanceOptions( );
                </script>
                </body>
                </html>







                --- On Wed, 1/10/08, Rick <fotog4@...> wrote:
                From: Rick <fotog4@...>
                Subject: [JavaScript] I can't get this to print.....Please Help
                To: JavaScript_Official@yahoogroups.com
                Date: Wednesday, 1 October, 2008, 6:15 AM











                I'm new to this and I thougt I was doing it right, but, I get no

                printout to the screen. ANyone have any ideas??

                Thank you



                <script type="text/javascri pt">

                /* <![CDATA[ */

                var autoDealer = "Cahill Cars";

                function printFinanceOptions ()

                {

                document.write( "<h1> Financing Options</h1> ");

                document.write( "<ul>">") ;

                document.write( "<li>24 months: 6.75%</li>") ;

                document.write( "<li>28 months: 7.15%</li>") ;

                document.write( "<li>72 months: 7.50%</li>") ;

                document.write( "</ul>">" );

                }

                /*]]>> */

                </script>

                </head>

                <body>



                <script type="text/javascri pt">

                /* <![CDATA[ */

                printFinanceOption( );

                /*]]>> */

                </script>

                </body

                </html>



























                Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/

                [Non-text portions of this message have been removed]
              Your message has been successfully submitted and would be delivered to recipients shortly.