Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Syntax Error - Help Please

    Greetings and thanks for reading...

    Dreamweaver CS4 shows a syntax error for this line of script and I don't know JS well enough to spot the issue. Can someone please point it out for me?

    Here's the line:

    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");


    thanks again, KSteele

  • #2
    GŁtkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    I don't see a syntax error there. Please post a few lines before and after that.

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow, great response time - THANKS!

    Here ya go:

    <div id="footer">
    <!--# include virtual="/seo_footer.html" -->
    </div>
    </div>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-1935793-6");
    pageTracker._trackPageview();
    } catch(err) {}</script>
    </body>
    </html>

  • #4
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    BTW - For the webmasters, forums owners and site admins here... Just an FYI... after posting this question I brought up a fresh browser and wanted to search google for my user name to see what and how many results would show up...

    This post was on the 2nd page of google within a matter of 2-3 minutes! Thats pretty incredible...

  • #5
    GŁtkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    No, sorry, I (and the tools I use) can't see a syntax error there. Is the code actually not working? Do you have a link to the site so I can see what Firebug has to say about it?

  • #6
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here's a link: http://www.seoproconsulting.net/seo_...services.shtml

    Maybe Dreamweaver cs4 is the one with the bug!!!

  • #7
    GŁtkodierer
    Join Date
    Apr 2009
    Posts
    2,127
    Thanks
    1
    Thanked 426 Times in 424 Posts
    Firebug doesn't complain either, so it's probably a DW thing.

    But: In your markup there are LOTS of errors; you might want to validate.

  • #8
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    BTW - Venegal, A special TY for your help here! I also should mention that this is a DW warning... and not causing any pages issues that I am aware of. Here's a SS of DW.


  • #9
    New to the CF scene
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks! I thought that might be the case. As far as validation... typically I do the validation before I get to far ahead of myself and use the validated page as the template for all the rest. But this time I let it get away from me and decided to wait until I was finished... But a very gracious thank you for sticking with me here and helping relax the geek in me!

    My very best regards, "K"


  •  

    Tags for this Thread

    Posting Permissions

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