Pages

顯示具有 jQuery 標籤的文章。 顯示所有文章
顯示具有 jQuery 標籤的文章。 顯示所有文章

2011/10/20

【jQuery】Uploadify發生HTTP ERROR的解法


I got a different http error: HTTP undefined or HTTP 500. After 4 hours of searching the web, I found the answer.
It is because the server uses Mod_Security. To turn it off, add these lines to .htacess file
<Ifmodule mod_php5.c>
SecFilterEngine "off"
SecFilterScanPOST "off"</Ifmodule>

2011/06/22

筆記一下,jQuery UI tabs change from text link


var $tabs = jQuery('#tabs').tabs(); // first tab selected

jQuery('#gotab2').click(function() { // bind click event to link
      $tabs.tabs('select', 1); // switch to third tab
      return false;
});

2011/06/16

筆記一下,簡單的jQuery換圖


$("img").bind("click", function() {
    var src = ($(this).attr("src") === "img1_on.jpg")
                    ? "img2_on.jpg" 
                    : "img1_on.jpg";
    $(this).attr("src", src);
});