Announcement

Collapse
No announcement yet.

help! part of my java script code shows

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

  • 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?

  • #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


    • #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


      • #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