[jQuery] Tip: Setting textarea value in IE7

2009-04-23 Thread Greg Glockner
With jQuery 1.3.2, if I use: $("textarea").val("foo"); to set the value of the textarea tag to foo, then IE7 sometimes fails to render the page, showing a blank white page instead. Even worse, it will render the page if you resize the IE7 window. The fix is to use: $("textarea").text("foo

[jQuery] Re: test for css selector capability?

2009-03-02 Thread Greg Glockner
Hi, I realize that jQuery.browser is now deprecated, but I'd like to give a use case where it makes sense to use jQuery.browser: I have some code where each browser renders slightly differently, such as how they treat borders for DIVs. If I use jQuery.browser, I can update the CSS appropriately fo

[jQuery] Re: Bug in FAQs for checkboxes

2009-01-24 Thread Greg Glockner
eone should research this issue. Thanks, Greg Glockner. On Jan 24, 8:24 pm, Greg Glockner wrote: > Hi, after some painful debugging, I determined that there is a bug in > the jQuery FAQs about how to clear a checkbox.  Specifically, if you > have a strict XHTML document, you *cannot* use .

[jQuery] Bug in FAQs for checkboxes

2009-01-24 Thread Greg Glockner
Hi, after some painful debugging, I determined that there is a bug in the jQuery FAQs about how to clear a checkbox. Specifically, if you have a strict XHTML document, you *cannot* use .attr("checked","") to clear a checkbox. Instead, you must use .removeAttr("checked"). See the following PHP co

[jQuery] New tags in Opera

2009-01-22 Thread Greg Glockner
Since I just upgraded to jQuery 1.3.1, I just discovered the following: in Opera 9.63, when you add new html via jQuery, Opera adds the new tags in capitals. For instance, if you have: $("div").html(""); Then in Opera, this will be added as . I just discovered that jQuery 1.3.x is now case sens