Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery .html hanging
    primarykey
    data
    text
    <p>I have a asp.net website that has a linkbutton. In the link button there is:</p> <pre><code>OnClientClick="checkDisableButton(this.id, 'PROCESSING', 'V');" </code></pre> <p>In the function there is this code... </p> <pre><code>$('#' + btn).addClass("buttonPad"); $('#' + btn).html(parmText + "|"); </code></pre> <p>I've set up a break point on the first line above. Thing is.. sometimes the code runs fine.. sometimes it just hangs on second line. I'm doing my testing using IE 9. What am i doing wrong that it would hang.<br> Thanks Shannon Here is the entire thing</p> <pre><code>function checkDisableButton(btn, parmText, icon) { $('#' + btn).addClass("buttonPad"); $('#' + btn).html(parmText + "|"); $('#' + btn).click(function (e) { e.preventDefault(); } ); document.getElementById(btn).className = 'buttonProcessing button '; </code></pre> <p>}</p> <p>Well. i changed the code.. i started using a asp:button and using css to give it the same look as i was doing on the asp:linkbutton. so far.. the testing shows that the asp:button is working.. i'll have to do more testing.. but so far so good</p> <p>~~~~~~~~ i changed the code again... back to what i had.. using a asp:linkbutton.. but here is the new javascript code that seems to be working.</p> <pre><code>function checkDisableButton(btn, parmText, icon) { $('#' + btn).addClass("buttonPad buttonProcessing button"); $('#' + btn).text(parmText + " | ") $('&lt;span&gt;&lt;/span&gt;', { text: icon, class: 'WebFonts' }).appendTo('#' + btn); $('#' + btn).attr('disabled', ''); </code></pre> <p>}</p> <p>i understand taht i'm should use a var for the $('#' + btn).. but i haven't gotten that far.. i'm not very good at this and that might take me a little bit. anyway.. here it is for what it's worth</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload