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
    Sep 2011
    Posts
    4
    Thanks
    5
    Thanked 0 Times in 0 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:
    http://eastbourneinks.co.uk/product/...nk-cartridges/
    Many thanks.
    Phil.

  • #2
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    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.

  • Users who have thanked Logic Ali for this post:

    Philipclear (09-10-2011)

  • #3
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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; 09-10-2011 at 05:24 PM. Reason: add a bit extra

  • #4
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,925
    Thanks
    56
    Thanked 549 Times in 546 Posts
    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.

  • Users who have thanked xelawho for this post:

    Philipclear (09-10-2011)

  • #5
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    Quote 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.

  • Users who have thanked Logic Ali for this post:

    Philipclear (09-10-2011)

  • #6
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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.

  • #7
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,925
    Thanks
    56
    Thanked 549 Times in 546 Posts
    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.

  • Users who have thanked xelawho for this post:

    Philipclear (09-10-2011)

  • #8
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    4
    Thanks
    5
    Thanked 0 Times in 0 Posts
    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

  • #9
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,925
    Thanks
    56
    Thanked 549 Times in 546 Posts
    Quote 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.

  • Users who have thanked xelawho for this post:

    Philipclear (09-10-2011)


  •  

    Posting Permissions

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