Web Analytics Made Easy -
StatCounter Javascript (+) & (-) buttons - CodingForum

Announcement

Collapse
No announcement yet.

Javascript (+) & (-) buttons

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

  • Javascript (+) & (-) buttons

    Hello. I am a new user.
    I have got a website, www.eastbourneinks.co.uk where the quantity buttons (+) & (-) do not work on most computers where I have had feedback. Is there any way of making them work on any/all computers. This is one of the pages:

    Many thanks.
    Phil.

  • #2
    Internet Explorer shows a script error in its console, the other main browsers appear OK. If you wrote the code then you can start debugging from there, otherwise you know where to turn.

    Comment


    • #3
      Hi Thanks for that.
      I did not create the website. The guy who did does not know why this is happening, he says the problem is with the other peoples computers, ie their browser is out of date or they don't have javascript installed.
      Seems strange that so many people have a problem where I am sure they all generally use the web. No don't know what to do next.
      Phil
      Last edited by Philipclear; Sep 10, 2011, 12:24 PM. Reason: add a bit extra

      Comment


      • #4
        the problem is with the way that IE handles rounded corners (ie, it freaks out and crashes).

        the jquery code that makes those buttons relies on the browsers ability to recognize the css rounded corner attribute that *most* but not all browsers support.

        Maybe the website creator is half right and maybe IE9 can "do" rounded corners- I haven't checked. But it seems to me that being that many IE users have not yet upgraded to 9, if that is the only place that the website uses them the really simple solution would be to change those + and - divs for clickable images.

        Comment


        • #5
          Originally posted by Philipclear View Post
          Hi Thanks for that.
          I did not create the website. The guy who did does not know why this is happening, he says the problem is with the other peoples computers, ie their browser is out of date or they don't have javascript installed.
          Then he has no business taking money for what he does.

          To fix the problem, find the two lines below:
          Code:
             $("#_tb_search").corner("round 8px");
             $("#_tb_search2").corner("round 8px");
          and replace them with this code:
          Code:
                      try
                      {
                        $("#_tb_search").corner("round 8px");
                        $("#_tb_search2").corner("round 8px");
                      }
                      catch(e){};
          These lines are causing the error on I.E. - I'm not inclined to fnd out why.

          Comment


          • #6
            Thanks guys.
            I will pass this information on to my guy and get his comments. Do you think it is possible find software/website that can analise my website and tell me if there are other errors?
            Thanks again, good to know there are willing helpers out there.
            Phil.

            Comment


            • #7
              The browser tends to tell you - if you look at the page you gave a link for in IE, you will see a little yellow triangle at the bottom left. That means there is an error. If you click on that triangle, it will give you a message about what went wrong. Firefox and Chrome have error consoles in the tools menu.

              The problem (as I guess you found out) is that different browsers react differently to the same page. Good developers (and I'm not saying I'm one of them) check for cross-browser compatibility - google that for lengthy discussions on the subject - to see if the page works and displays OK in the browsers that people tend to use. I check in Firefox, Chrome and IE 7 and 8, but if I were doing e-commerce I would probably check in others, too. There's not much point in having a fancy looking page if half your users can't get past step one.

              Comment


              • #8
                Well done and thanks. Even on my PC I have to use Firefox which I'm not used to because in IE9 when I click checkout, it's empty, in FF its got the right products in it.
                Do you know how I can have the whole site checked?
                Thanks again
                Phil

                Comment


                • #9
                  Originally posted by Philipclear
                  Do you know how I can have the whole site checked?
                  um... hire a developer who knows what they're doing?

                  joking... kind of...

                  no, not really... what I do is go through and interact with the page (on *all* the browsers that I'm interested in) as if it were the first time I'd ever seen it - people do dumb and crazy things and you have to second-guess a bit. I don't know if you can automate that process. I think you can to a degree, but computers are kind of dumb in the end and you have to tell them what to do. If you have money to throw at it, I would just hand it off to someone to check and correct. The cheaper way would be checking yourself, making note of the problems, trying to fix them yourself (if you are willing) and then hiring someone to deal with the specific problems you have identified and can't handle yourself.

                  Comment

                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎