Results 1 to 15 of 15

Thread: Error in header.html

  1. #1
    Join Date
    Jul 2004
    Posts
    67

    Exclamation Error in header.html

    Hi


    I have installed a counter code in the header.html

    <script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1">
    <!--
    //-->
    </script>

    It is giving me an error.

    How to fix this problem?

    Thanks
    Last edited by SKh; 03-29-2007 at 04:39 AM.
    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  2. #2
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    do you have an example of the error?

    I could be wrong,
    but i dont know what the

    <!--
    //-->

    is doing there... maybe try taking that out .. but thats just a guess.. im no expert... but worth a try.


    Cheers Ezy

  3. #3
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    whats the error? i use ccount without any probs.

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    I suppose the question should be "What is giving you an error?"

    Is it Internet Explorer or another browser, is it the W3C Validation tools that are giving you an error, the webserver (apache or?).

  5. #5
    Join Date
    Jul 2004
    Posts
    67

    Default

    If you go to
    SyrianSites Directory - All what you could imagine about Syria!.

    you can find the (Error on page) triangle
    at the bottom of IE browser
    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  6. #6
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    its showing up as line 2 char 1 as the error in my IE...

    but the page displays fine... does that error go away when you take that tracking out???? because its not even on line 2...

    Cheers Ezy

  7. #7
    Join Date
    Jul 2004
    Posts
    67

    Default

    yes
    without this counter
    my page has no error
    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  8. #8
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    I added the code to mine, and i dont get the errors....

    Can you take out only that code, and then ill recheck for errors ...

  9. #9
    Join Date
    Jul 2004
    Posts
    67

    Default

    I took it out now


    line 2 after the <body> exactly is the menu on the top left

    <script type="text/javascript">
    function Go(){return}
    </script>
    <script type="text/javascript" src="HVmenu/Vmenu_var.js"></script>
    <script type="text/javascript" src="HVmenu/menu_com.js"></script>
    <noscript>Your browser does not support script</noscript>
    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  10. #10
    Join Date
    May 2004
    Location
    New Zealand
    Posts
    600

    Default

    yeh there is abit of javascript floating around there.. maybe its clashing with the other ones....

    have you tried putting just that script in a html page.... and then trying that on its own.. then slowly adding the other ones.. to see if it is a clash?

    Cheers Ezy

  11. #11
    Join Date
    Jul 2004
    Posts
    67

    Default

    It is in all other pages

    for example
    SyrianSites : Web Hosting
    SyrianSites: Banner Advertising

    etc
    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  12. #12
    Join Date
    Jul 2004
    Posts
    67

    Default

    I have the code back
    and get the Error back also

    is it because
    <script language="Javascript"

    while the other scripts whcih does not make error are
    <script type="text/javascript">

    ??

    it is 03:00 at morning
    I will go to sleep now
    thanks
    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  13. #13
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    Hmm, that's a click counter right? Why did you put it in your header - the way you use that script is :

    <script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1"> Banner goes here </script>

    i cant see how it counts anything where you have it, because its not wrapped around anything that's click able.
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  14. #14
    Join Date
    Jul 2004
    Posts
    67

    Default

    .: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
    -==[ Believe or Not Believe !! ... That is the Question ]==-

  15. #15
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Change
    Code:
    <script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1"></script>
    
    <script>
    //Hide status bar msg II script- by javascriptkit.com
    to

    Code:
    <script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1"></script>
    
    <script language="Javascript">
    //Hide status bar msg II script- by javascriptkit.com
    Running this through the W3C validator would have told you this problem.

    You can't assume a browser knows what "code" is unless you tell it what it is by specifying javascript or xml or java or flash or anything else.

    Yes some browsers are smart enough to figure it out, others point out your mistakes.

Similar Threads

  1. --modifiction --in header.html --5.3.0
    By webandlinkscom in forum Blocks and Modification
    Replies: 0
    Last Post: 03-19-2007, 01:43 PM
  2. Header.html + dreamweaver + smarty
    By ezykiwi in forum v5.x
    Replies: 4
    Last Post: 08-30-2006, 08:21 PM
  3. header error
    By lb6364 in forum v5.x
    Replies: 3
    Last Post: 02-09-2005, 06:21 AM
  4. <%total_link%> in the header.html
    By marengo in forum v5.x
    Replies: 0
    Last Post: 06-23-2004, 04:19 AM
  5. Editing the header.html template
    By mcyates in forum v5.x
    Replies: 5
    Last Post: 12-28-2002, 09:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •