Announcement

Collapse
No announcement yet.

Missing ;

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

    Missing ;

    Hi
    Can anyone spot a missing ; in the following code please.

    I have no idea when it comes to js. Firfox have pointed out to me that it is missing so I was kinda hoping someone on here would know where from. Many thanks

    <div class='fragment-text'>
    <center><a class="twitter-timeline" href="https://twitter.com/cwfurnishings" data-widget-id="474175619064799232">Tweets by @cwfurnishings</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)<Actinic:Variable Name = '0'/>,p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"file:///C:/ProgramData/SellerDeck 2013/Site1/PreviewHTML_Administrator/://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></center>
    <br /><br /></div></td></tr></table>
    </div>


    kind regards
    Jo
    Thank you
    Kind regards
    Joanne

    www.ukcurtainpoles.co.uk

    #2
    That is the code generated by SellerDeck. It would be better to show us the code you're trying to use and tell us where you're putting it.

    It also helps a lot to paste code snippets between [c o d e] and [/c o d e] tags (type them without the spaces) as this displays it more readably.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman - always wondered how to do that - heres the code again
      Code:
      <div class='fragment-text'>
      <center><a class="twitter-timeline" href="https://twitter.com/cwfurnishings" data-widget-id="474175619064799232">Tweets by @cwfurnishings</a>
      <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)<Actinic:Variable Name = '0'/>,p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"file:///C:/ProgramData/SellerDeck 2013/Site1/PreviewHTML_Administrator/://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></center>
      <br /><br /></div></td></tr></table>

      The above code is on one of my fragments on my home page which is for my Twitter widget

      When I look at my home page in Firefox and use the webmaster tools, it tells me that there is a ; missing in this code.
      Thank you
      Kind regards
      Joanne

      www.ukcurtainpoles.co.uk

      Comment


        #4
        The above cannot be the original code from Twitter. E.g. it contains <Actinic:Variable Name = '0'/> and file:///C:/ProgramData/SellerDeck 2013/Site1/PreviewHTML_Administrator/:

        Can you post the original code you got from Twitter, not the code you see in your Fragment?
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Sorry - I think this is it

          Code:
          <a class="twitter-timeline"  href="https://twitter.com/cwfurnishings"  data-widget-id="474175619064799232">Tweets by @cwfurnishings</a>
              <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
          Thank you
          Kind regards
          Joanne

          www.ukcurtainpoles.co.uk

          Comment


            #6
            Or (with a lot of guessing) try this:
            Code:
            <div class='fragment-text'>
            <center><a class="twitter-timeline" href="https://twitter.com/cwfurnishings" data-widget-id="474175619064799232">Tweets by @cwfurnishings</a>
            <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[ 0 ],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets%2ejs";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></center>
            <br /><br /></div></td></tr></table>
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              This should work:
              Code:
              <a class="twitter-timeline" href="https://twitter.com/cwfurnishings" data-widget-id="474175619064799232">Tweets by @cwfurnishings</a>
                  <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[ 0 ],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets\x2ejs";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Originally posted by NormanRouxel View Post
                Or (with a lot of guessing) try this:
                Code:
                <div class='fragment-text'>
                <center><a class="twitter-timeline" href="https://twitter.com/cwfurnishings" data-widget-id="474175619064799232">Tweets by @cwfurnishings</a>
                <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[ 0 ],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets%2ejs";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></center>
                <br /><br /></div></td></tr></table>
                I tried this one and it seems to be ok now.

                MAny thanks for your help
                Thank you
                Kind regards
                Joanne

                www.ukcurtainpoles.co.uk

                Comment


                  #9
                  I'd lose the
                  Code:
                  </td></tr></table>
                  As it's completely unmatched by any opening tags.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Originally posted by NormanRouxel View Post
                    I'd lose the
                    Code:
                    </td></tr></table>
                    As it's completely unmatched by any opening tags.
                    Hi
                    I went from the centre tags
                    Thank you
                    Kind regards
                    Joanne

                    www.ukcurtainpoles.co.uk

                    Comment

                    Working...
                    X