richrock Posted October 6, 2011 Share Posted October 6, 2011 I've got some buttons, and for sake of reference, they have comments in them to define them, eg: <button type="submit" name="task" class="button validate signup_prev" style="position: absolute; left: 0px;" value="back"><!--back--></button> <button type="submit" name="task" class="button validate signup_next" style="position: absolute; right: 0px;" value="next"><!-next--></button> You'll notice that the second one has a typo - my bad. Instead of <!-- it's got <!- What I'd like to know is can this cause the button tag to stop working? I've got loads of complaints about the next button not working (although it does on my IE8) and am trying to narrow down potential areas of issue. Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted October 6, 2011 Share Posted October 6, 2011 short answer. yes. the comments in your buttons are absolutely not needed and should be removed anyhow. Quote Link to comment Share on other sites More sharing options...
richrock Posted October 6, 2011 Author Share Posted October 6, 2011 Many thanks - I will update and test. Just needed confirmation of this. Seems Firefox and Chrome just detect the '<!' and add the '--' - Firebug showed this : <!-- -next--> Thanks again :-) Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted October 6, 2011 Share Posted October 6, 2011 question for you.. why did you decide that having comments inside of your element was a good idea? the button values do a good job of indicating what the purpose of the button is, don't you think? Quote Link to comment Share on other sites More sharing options...
richrock Posted October 6, 2011 Author Share Posted October 6, 2011 Well, I'm debugging someone else's code - they've since moved on and left me a whole load of work :-( Quote Link to comment Share on other sites More sharing options...
AyKay47 Posted October 6, 2011 Share Posted October 6, 2011 Well, I'm debugging someone else's code - they've since moved on and left me a whole load of work :-( from the looks of it, you're going to have a fun time at it.. the previous coder doesn't look to have been very efficient.. good luck! Quote Link to comment Share on other sites More sharing options...
richrock Posted October 21, 2011 Author Share Posted October 21, 2011 Right, sent code back to client, and they're still getting issues with this form sending either previous or next. I'm stumped. Works on our machines, can't find any solutions. Here's the code now: <button type="submit" name="task" class="button validate signup_prev" style="position: absolute; left: 0px;" value="back"></button> <button type="submit" name="task" class="button validate signup_next" style="position: absolute; right: 0px;" value="next"></button> Any ideas why this doesn't work in IE? Firefox, Chrome and Safari have all tested okay, and our client's getting shirty Quote Link to comment Share on other sites More sharing options...
floridaflatlander Posted October 21, 2011 Share Posted October 21, 2011 <button type="submit" name="task" class="button validate signup_prev" style="position: absolute; left: 0px;" value="back"></button> <button type="submit" name="task" class="button validate signup_next" style="position: absolute; right: 0px;" value="next"></button> Any ideas why this doesn't work in IE? Firefox, Chrome and Safari have all tested okay, and our client's getting shirty Can you find any other machines anywhere to test this on, some of the people I work for think you just sit down type one or two things on the keyboard and your done. Also Do you style with the class="button validate signup_prev" and next? I know it can have spaces but try it without them, over time all browsers have issues. Can you combine the inline and external style? If it's on the internet and all your client has to do is sit down and look at it thats better, if you have to send it to them and they load it up then find the mistake thats a b. Also if its in their memory and you fix it and they don't reload or refresh it thats a b. I feel sorry for you especially if their machine is the only one it's messing up on. When I was doing the local chambers work it was hard to believe all the little things that people's machine would add to the style. From odd fonts amd font sizes to css drown down menus that didn't work right (should I say it? on AT&Ts IE) Good luck Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.