<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: HTML button is not useful</title>
	<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/</link>
	<description>The writings of John Snyders, mostly about software.</description>
	<pubDate>Thu, 20 Nov 2008 22:11:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Peter</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-103</link>
		<author>Peter</author>
		<pubDate>Thu, 15 Mar 2007 07:18:45 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-103</guid>
					<description>Just run into this same problem, what a pain in the ...

the following seems to work



not elegant but seems to do the job</description>
		<content:encoded><![CDATA[<p>Just run into this same problem, what a pain in the &#8230;</p>
<p>the following seems to work</p>
<p>not elegant but seems to do the job</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Peter</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-104</link>
		<author>Peter</author>
		<pubDate>Thu, 15 Mar 2007 07:23:14 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-104</guid>
					<description>oops, not auto-escaping?

&#60;button onclick=&#8221;this.name='myButtonName'&#8221; type=&#8221;submit&#8221; value=&#8221;v1&#8243;&#62;Label&#60;/button&#62;</description>
		<content:encoded><![CDATA[<p>oops, not auto-escaping?</p>
<p>&lt;button onclick=&#8221;this.name=&#8217;myButtonName&#8217;&#8221; type=&#8221;submit&#8221; value=&#8221;v1&#8243;&gt;Label&lt;/button&gt;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Michiel Toneman</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-499</link>
		<author>Michiel Toneman</author>
		<pubDate>Mon, 14 May 2007 18:11:47 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-499</guid>
					<description>I've gathered up some neat ideas found around the web into a generic workaround at:

http://www.kopz.org/public/documents/css/multiple_buttons_ie_workaround.html

The main advantage of this solution is that it doesn't require any changes to the markup or the names of the form fields (which would require server side changes). Also if javascript is disabled, it doesn't affect non-IE6 browsers.

Cheers,

Michiel</description>
		<content:encoded><![CDATA[<p>I&#8217;ve gathered up some neat ideas found around the web into a generic workaround at:</p>
<p><a href="http://www.kopz.org/public/documents/css/multiple_buttons_ie_workaround.html" rel="nofollow">http://www.kopz.org/public/documents/css/multiple_buttons_ie_workaround.html</a></p>
<p>The main advantage of this solution is that it doesn&#8217;t require any changes to the markup or the names of the form fields (which would require server side changes). Also if javascript is disabled, it doesn&#8217;t affect non-IE6 browsers.</p>
<p>Cheers,</p>
<p>Michiel</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: z850310</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-517</link>
		<author>z850310</author>
		<pubDate>Thu, 17 May 2007 00:04:56 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-517</guid>
					<description>i am currently workin on a pop up and it has say 12 buttons on it but those buttons are for some special function. im going to paste the code here: please tell me on how the buttons should copy the value onto the text box, i used the advanced button function on micorsoft frontpage and it is copying the html code instead not the value on the textbox. please tell me what are the correction or the codes.

code is





		self.moveTo(0,0)
			var isOpener = opener;
			var refurl = !isOpener ? "none" : "yes";
			var winurl = document.location;
			if(refurl == "none"){
				window.open(winurl,'','height=921,width=291,resizable=0,scrollbars=1,menubar=0,toolbar=0, titlebar=no,location=0,status=0');
				window.opener = this;
				window.close();
			}
		



TMGv2:












if (document.all){

actualtitle=document.title;

var scroller; //scroll down to set it

var ampm;

function antiMilitaryTime()

{

if (hr == "12"){

ampm="P.M."

}

else if (hr == "13"){

hr="1"

ampm="P.M."

}

else if (hr == "14"){

hr="2"

ampm="P.M."

}

else if (hr == "15"){

hr ="3"

ampm="P.M."

}

else if (hr == "16"){

hr = "4"

ampm="P.M."

}

else if (hr == "17"){

hr = "5"

ampm="P.M."

}

else if (hr == "18"){

hr = "6"

ampm="P.M."

}

else if (hr == "19"){

hr = "7"

ampm="P.M."

}

else if (hr == "20"){

hr = "8"

ampm="P.M."

}

else if (hr == "21"){

hr = "9"

ampm="P.M."

}

else if (hr == "22"){

hr = "10"

ampm="P.M."

}

else if (hr == "23"){

hr = "11"

ampm="P.M."

}

else if (hr == "24"){

hr = "12"

}

}

function addZero(){

if (min 





	&lt;!--webbot bot="SaveResults" U-File="C:\Documents and Settings\Bloodfeast\Desktop\TMGv2\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --&gt;

 
function copy(TAG)
  {
     document.getElementById("txtArea").value=TAG
     
     document.Form1.txtArea.focus();

     document.Form1.txtArea.select(); 

     CopiedTxt = document.selection.createRange();

     CopiedTxt.execCommand("Copy");

  }
	    


	
		
			
			
		
		
						&lt;a href="tools.htm" rel="nofollow"&gt;&lt;/a&gt;
		
		
			 
			
			&lt;b&gt;Dispatch Out 
			: &#124;&#160;&#160; &lt;/b&gt;
			
			 
			
		
		
			
			
			&lt;b&gt;Left Active in Error : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Ticket Failed V repair : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Netway Closed IR : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Netway Closed Modem : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Netway Closed NA : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Central Office : Frame : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Service Orders : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;CFA : Recap : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Engineering : Cable : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;MCO Outage : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Manual Ticket Creation : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;GAT Error : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
			
			
			&lt;b&gt;Mentor Edit : &#124;&#160;&#160; &lt;/b&gt;
			
		
		
		
			
			
		

function CopyToClipboard()

{

   document.Form1.txtArea.focus();

   document.Form1.txtArea.select(); 

   CopiedTxt = document.selection.createRange();

   CopiedTxt.execCommand("Copy");

}



		
		
			
			 &#160; 
		
		
			&#160;
		
		
			&#160;
		
		
			&#160;
		
		
			&#160;
		
		
			&#160;
		
		
			
			
				
			
&#160;
		
		
			&#160;
		
	
	&#160;
	&#160;
	&#160;
	&#160;
	&#160;




</description>
		<content:encoded><![CDATA[<p>i am currently workin on a pop up and it has say 12 buttons on it but those buttons are for some special function. im going to paste the code here: please tell me on how the buttons should copy the value onto the text box, i used the advanced button function on micorsoft frontpage and it is copying the html code instead not the value on the textbox. please tell me what are the correction or the codes.</p>
<p>code is</p>
<p>		self.moveTo(0,0)<br />
			var isOpener = opener;<br />
			var refurl = !isOpener ? &#8220;none&#8221; : &#8220;yes&#8221;;<br />
			var winurl = document.location;<br />
			if(refurl == &#8220;none&#8221;){<br />
				window.open(winurl,&#8221;,&#8217;height=921,width=291,resizable=0,scrollbars=1,menubar=0,toolbar=0, titlebar=no,location=0,status=0&#8242;);<br />
				window.opener = this;<br />
				window.close();<br />
			}</p>
<p>TMGv2:</p>
<p>if (document.all){</p>
<p>actualtitle=document.title;</p>
<p>var scroller; //scroll down to set it</p>
<p>var ampm;</p>
<p>function antiMilitaryTime()</p>
<p>{</p>
<p>if (hr == &#8220;12&#8243;){</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;13&#8243;){</p>
<p>hr=&#8221;1&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;14&#8243;){</p>
<p>hr=&#8221;2&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;15&#8243;){</p>
<p>hr =&#8221;3&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;16&#8243;){</p>
<p>hr = &#8220;4&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;17&#8243;){</p>
<p>hr = &#8220;5&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;18&#8243;){</p>
<p>hr = &#8220;6&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;19&#8243;){</p>
<p>hr = &#8220;7&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;20&#8243;){</p>
<p>hr = &#8220;8&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;21&#8243;){</p>
<p>hr = &#8220;9&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;22&#8243;){</p>
<p>hr = &#8220;10&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;23&#8243;){</p>
<p>hr = &#8220;11&#8243;</p>
<p>ampm=&#8221;P.M.&#8221;</p>
<p>}</p>
<p>else if (hr == &#8220;24&#8243;){</p>
<p>hr = &#8220;12&#8243;</p>
<p>}</p>
<p>}</p>
<p>function addZero(){</p>
<p>if (min </p>
<p>	<!--webbot bot="SaveResults" U-File="C:\Documents and Settings\Bloodfeast\Desktop\TMGv2\_private\form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" --></p>
<p>function copy(TAG)<br />
  {<br />
     document.getElementById(&#8221;txtArea&#8221;).value=TAG</p>
<p>     document.Form1.txtArea.focus();</p>
<p>     document.Form1.txtArea.select(); </p>
<p>     CopiedTxt = document.selection.createRange();</p>
<p>     CopiedTxt.execCommand(&#8221;Copy&#8221;);</p>
<p>  }</p>
<p>						<a href="tools.htm" rel="nofollow"></a></p>
<p>			<b>Dispatch Out<br />
			: |&nbsp;&nbsp; </b></p>
<p>			<b>Left Active in Error : |&nbsp;&nbsp; </b></p>
<p>			<b>Ticket Failed V repair : |&nbsp;&nbsp; </b></p>
<p>			<b>Netway Closed IR : |&nbsp;&nbsp; </b></p>
<p>			<b>Netway Closed Modem : |&nbsp;&nbsp; </b></p>
<p>			<b>Netway Closed NA : |&nbsp;&nbsp; </b></p>
<p>			<b>Central Office : Frame : |&nbsp;&nbsp; </b></p>
<p>			<b>Service Orders : |&nbsp;&nbsp; </b></p>
<p>			<b>CFA : Recap : |&nbsp;&nbsp; </b></p>
<p>			<b>Engineering : Cable : |&nbsp;&nbsp; </b></p>
<p>			<b>MCO Outage : |&nbsp;&nbsp; </b></p>
<p>			<b>Manual Ticket Creation : |&nbsp;&nbsp; </b></p>
<p>			<b>GAT Error : |&nbsp;&nbsp; </b></p>
<p>			<b>Mentor Edit : |&nbsp;&nbsp; </b></p>
<p>function CopyToClipboard()</p>
<p>{</p>
<p>   document.Form1.txtArea.focus();</p>
<p>   document.Form1.txtArea.select(); </p>
<p>   CopiedTxt = document.selection.createRange();</p>
<p>   CopiedTxt.execCommand(&#8221;Copy&#8221;);</p>
<p>}</p>
<p>			 &nbsp; </p>
<p>			&nbsp;</p>
<p>			&nbsp;</p>
<p>			&nbsp;</p>
<p>			&nbsp;</p>
<p>			&nbsp;</p>
<p>&nbsp;</p>
<p>			&nbsp;</p>
<p>	&nbsp;<br />
	&nbsp;<br />
	&nbsp;<br />
	&nbsp;<br />
	&nbsp;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: John Snyders</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-518</link>
		<author>John Snyders</author>
		<pubDate>Thu, 17 May 2007 00:34:13 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-518</guid>
					<description>I have no idea what to make of that code other than the antiMilitaryTime is silly. I hope it was not created by a human.
I don't know frontpage at all. The problem I was describing is a browser problem. It can be worked around on the server side or client side. I have no idea how it interacts with frontpage.</description>
		<content:encoded><![CDATA[<p>I have no idea what to make of that code other than the antiMilitaryTime is silly. I hope it was not created by a human.<br />
I don&#8217;t know frontpage at all. The problem I was describing is a browser problem. It can be worked around on the server side or client side. I have no idea how it interacts with frontpage.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: f</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-741</link>
		<author>f</author>
		<pubDate>Thu, 14 Jun 2007 19:10:39 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-741</guid>
					<description>Hint #1:
function antiMilitaryTime() {
if (hr - 12 &#62;= 0) {
  hr -= 12
  if (hr != 12) {
    ampm = "P.M."
  }
  if (hr == 0)
  {
    hr = 12
  }
}
}

Hint #2:
Don't use Microsoft FrontPage.</description>
		<content:encoded><![CDATA[<p>Hint #1:<br />
function antiMilitaryTime() {<br />
if (hr - 12 &gt;= 0) {<br />
  hr -= 12<br />
  if (hr != 12) {<br />
    ampm = &#8220;P.M.&#8221;<br />
  }<br />
  if (hr == 0)<br />
  {<br />
    hr = 12<br />
  }<br />
}<br />
}</p>
<p>Hint #2:<br />
Don&#8217;t use Microsoft FrontPage.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Infovore &#187; links for 2007-07-25</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-1212</link>
		<author>Infovore &#187; links for 2007-07-25</author>
		<pubDate>Thu, 26 Jul 2007 07:41:31 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-1212</guid>
					<description>[...] HTML button is not useful &#124; HardLikeSoftware Confirms some things I discovered the hard way. (tags: html button ie6 bug) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] HTML button is not useful | HardLikeSoftware Confirms some things I discovered the hard way. (tags: html button ie6 bug) [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: x</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-1942</link>
		<author>x</author>
		<pubDate>Thu, 13 Sep 2007 07:17:50 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-1942</guid>
					<description>Hint #3

      function antiMilitaryTime() {
         if (hr == 12)            { ampm = "Noon" }
         if (hr == 0 &#124;&#124; hr == 24) { ampm = "Midnight"; hr = 12 }
         if (hr   12)            { ampm = "P.M."; hr -= 12 }
      }</description>
		<content:encoded><![CDATA[<p>Hint #3</p>
<p>      function antiMilitaryTime() {<br />
         if (hr == 12)            { ampm = &#8220;Noon&#8221; }<br />
         if (hr == 0 || hr == 24) { ampm = &#8220;Midnight&#8221;; hr = 12 }<br />
         if (hr   12)            { ampm = &#8220;P.M.&#8221;; hr -= 12 }<br />
      }</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Roger</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-2412</link>
		<author>Roger</author>
		<pubDate>Sat, 27 Oct 2007 00:36:21 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-2412</guid>
					<description>Lets not forget that on top of this bug (with multiple submit buttons) that IE also suffers from another bug with button elements, which renders them completely useless.

http://webbugtrack.blogspot.com/2007/10/bug-341-button-element-submits-wrong.html

When the form is submitted, the wrong value is passed to the server, so they can't even be used due to an IE bug!</description>
		<content:encoded><![CDATA[<p>Lets not forget that on top of this bug (with multiple submit buttons) that IE also suffers from another bug with button elements, which renders them completely useless.</p>
<p><a href="http://webbugtrack.blogspot.com/2007/10/bug-341-button-element-submits-wrong.html" rel="nofollow">http://webbugtrack.blogspot.com/2007/10/bug-341-button-element-submits-wrong.html</a></p>
<p>When the form is submitted, the wrong value is passed to the server, so they can&#8217;t even be used due to an IE bug!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Robert</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-8592</link>
		<author>Robert</author>
		<pubDate>Fri, 22 Aug 2008 10:03:46 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-8592</guid>
					<description>Thanks a lot for this article. I have been fighting with this for a couple of hours and thought there was something wrong with my html understanding. I'll have a look through all the workarounds now to find a solution.</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this article. I have been fighting with this for a couple of hours and thought there was something wrong with my html understanding. I&#8217;ll have a look through all the workarounds now to find a solution.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: The Book of Dan &#187; Blog Archive &#187; Don&#8217;t press that BUTTON</title>
		<link>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-8729</link>
		<author>The Book of Dan &#187; Blog Archive &#187; Don&#8217;t press that BUTTON</author>
		<pubDate>Tue, 26 Aug 2008 23:26:46 +0000</pubDate>
		<guid>http://hardlikesoftware.com/weblog/2007/02/27/html-button-is-not-useful/#comment-8729</guid>
					<description>[...] why our application completely refused to work using Internet Explorer 6.  Turns out that IE 6 is totally flummoxed by the HTML &#60;button&#62; tag.  If you have more than one a page, IE submits all the buttons - so [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] why our application completely refused to work using Internet Explorer 6.  Turns out that IE 6 is totally flummoxed by the HTML &lt;button&gt; tag.  If you have more than one a page, IE submits all the buttons - so [&#8230;]</p>
]]></content:encoded>
				</item>
</channel>
</rss>
