title: input button with onclick java script function not firing
body: <p>My javascript button is not firing. </p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
  
  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;script   type="text/javascript" src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
  
      &lt;div&gt;
  
  &lt;script language="javascript" type="text/javascript"&gt;
      FB.init({
          appId: '185176734893804',
          status: true,
          cookie: true,
          xfbml: true
      });
  
  
     function fb_publish() {
       FB.ui(
         {
           method: 'stream.publish',
           message: document.getElementById('&lt;%=TextBox1.ClientID%&gt;').value,
           attachment: {
             name: 'Friends Gathering',
             caption: 'Healthy living',
             description: (
               'Your welcome to join us on the event'
             ),
             href: 'thomasblog.somee.com'
           },
           action_links: [
             { text: 'document.getElementById('&lt;%=TextBox1.ClientID%&gt;').value', href: 'thomasblog.somee.com' }
           ],
           user_prompt_message: 'Personal message here'
         },
         function(response) {
           if (response &amp;&amp; response.post_id) {
             alert('Post was published.');
           } else {
             alert('Post was not published.');
           }
         }
       );  
    }
    &lt;/script&gt;
   &lt;/div&gt;
      &lt;div&gt;
  
  
          Event Date:&lt;asp:TextBox ID="TextBox1" runat="server"&gt;&lt;/asp:TextBox&gt;
          &lt;br /&gt;
          Event Title:
          &lt;asp:TextBox ID="TextBox2" runat="server"&gt;&lt;/asp:TextBox&gt;
  &amp;nbsp;
          &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
              Text="Add Event" /&gt;
          &lt;br /&gt;
          &lt;br /&gt;
          &lt;asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
  
              &lt;TitleStyle BackColor="White" BorderColor="Black" BorderWidth="2px" 
                  Font-Bold="True" Font-Size="12pt" ForeColor="#333399" /&gt;
          &lt;/asp:Calendar&gt;
          &lt;asp:Label ID="Label1" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
  
           &lt;input type="button" onclick="fb_publish()" 
              value ="Post To facebook Wall" /&gt;
      &lt;/div&gt;
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here's what i am trying. On click of the html button type. fb_publish should fire. This is just my trial.. Not sure if its supposed to work. 
  In the fb_publish() I have a FB.ui to post the textbox1.text and other event details to FB</p>