help! part of my java script code shows

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • BCFC
    Corporal

    • Jun 2008
    • 18

    help! part of my java script code shows

    can anybody tell me why java script shows when I view it in the browser. I haven't published yet.

    cut and pasted date java script and it shows ok but at the end of the date I can see part of the script like this : -->

    Cant seem to get rid of it......anyone know what to do?
  • DM Owner
    First Lieutenant

    • Apr 2008
    • 158

    #2
    Re: help! part of my java script code shows

    is the java script part of a form? if so try to make the form skin bigger to cover the part of the script shown.

    DM Owner
    www.digitalizedmemories.com

    Comment

    • HalaalPages
      Sergeant Major

      • Aug 2008
      • 85

      #3
      Re: help! part of my java script code shows

      Post the script and that might make it easier to help. It seems like there's something added to the script that does not belong (or missing, for that matter). I had one of such scripts yesterday and had to go line by line to figure out what was wrong.
      HalaalPages.com
      FREE Georgia Muslim Directory

      Comment

      • dwill525
        Private

        • Oct 2008
        • 3

        #4
        Re: help! part of my java script code shows

        My guess is that you have a typo somewhere in your code. If you're seeing "-->" you may have extra or missing // within your javascript tags.
        the basic layout should be as follows

        SCRIPT language="JavaScript">
        <!-- begins javascript comments and hides the script from old browsers
        ......Javascript Statements.......
        //--> This closes the comment section and tells the browser to continue on
        </SCRIPT>

        you could try removing the comment lines to determine if that is the cause ( <!-- and //--> )

        Comment

        Working...
        X