jquery-1.3

jQuery: running success in 1.3.2 but not in 1.4.2

笑着哭i 提交于 2020-01-07 04:52:13
问题 Nothing is wrong, as soon as i change the lib to 1.3.2 my on success stuff works just fine? How comes? Not even the alert with TEST appears.. Here's the code this is happening on: function crop() { $.ajax({ type: "POST", dataType: 'json', url:"functions.php?action=crop", data: { x: $('#x').val(),y: $('#y').val(),w: $('#w').val(), h: $('#h').val(),fname:$('#fname').val(),fixed:fixed, sizew:sizew,sizeh:sizeh}, success: function(response) { alert('TEST'); if(!fixed) // Missing { } { $("

jQuery: running success in 1.3.2 but not in 1.4.2

a 夏天 提交于 2020-01-07 04:52:08
问题 Nothing is wrong, as soon as i change the lib to 1.3.2 my on success stuff works just fine? How comes? Not even the alert with TEST appears.. Here's the code this is happening on: function crop() { $.ajax({ type: "POST", dataType: 'json', url:"functions.php?action=crop", data: { x: $('#x').val(),y: $('#y').val(),w: $('#w').val(), h: $('#h').val(),fname:$('#fname').val(),fixed:fixed, sizew:sizew,sizeh:sizeh}, success: function(response) { alert('TEST'); if(!fixed) // Missing { } { $("

jQuery 1.3 only selecting the first element

爱⌒轻易说出口 提交于 2020-01-04 03:51:14
问题 I'm not sure if this is a bug or just some crazy new thing in jQuery 1.3 that I'm unaware of, or if I've just gone crazy. I have a table with 11 checkboxes in it, and I can't select them all using jQuery 1.3: // jQuery 1.2.6 $(".myTable").find(":checkbox"); // finds 11 elements // jQuery 1.3 $(".myTable").find(":checkbox"); // finds 1 element: the first checkbox $(":checkbox", $(".myTable")); // finds 1 element $('.myTable :checkbox')); // finds all 11 elements The results are the same if I

Any jquery 1.3 compatible plugin to filter dropdown using user text input plus grouping based on number of input strings matched

为君一笑 提交于 2019-12-12 06:24:01
问题 Just wanted to know if there already is plugin for this, otherwise I am going to code myself. Following is my exact requirement. Say I have a dropdown list like this - <select id="values" name="country"> <option value="1">Hello world</option> <option value="2">Hello there</option> <option value="3">Hello again</option> <option value="4">Andorra</option> <option value="5">Argentina</option> <option value="6">Armenia</option> <option value="7">Aruba</option> <option value="8">Australia</option>

Selecting all empty text fields in Jquery

一笑奈何 提交于 2019-12-07 02:48:46
问题 How can I find all text fields that have an empty value? $(":text[value='']") gives a JavaScript error I know I can do $(":text") , iterate through and return all fields with $(this).val()=='' I am looking for a cleaner method and using JQuery 1.3.1 It has to work if the element originally had a value when the page was loaded, and then the user cleared it. ( $("#elem").attr('value') gives the original value in that place, though .val() works properly) 回答1: Latest Answer: Upgrade to 1.3.2 Here

jQuery with ASP.NET WebForms - disabling textboxes

可紊 提交于 2019-12-02 05:40:51
问题 Another jQuery noob question - what am I doing wrong?? I have some HTML markup rendered by ASP.NET 3.5 webforms which looks like this: <input id="ctl01_cphContent_pnlBasicInfo_chkRC" type="checkbox" name="ctl01$cphContent$pnlBasicInfo$chkRC" /> <label for="ctl01_cphContent_cntPromos_pnlBasicInfo_chkRC">Recurrent Charges</label> <span id="ctl01_cphContent_cntPromos_pnlBasicInfo_lblPromoValidFor" class="rcPromo">Validity:</span> <span class="rcPromo"> <input id="ctl01_cphContent_pnlBasicInfo

jQuery with ASP.NET WebForms - disabling textboxes

[亡魂溺海] 提交于 2019-12-01 23:47:48
Another jQuery noob question - what am I doing wrong?? I have some HTML markup rendered by ASP.NET 3.5 webforms which looks like this: <input id="ctl01_cphContent_pnlBasicInfo_chkRC" type="checkbox" name="ctl01$cphContent$pnlBasicInfo$chkRC" /> <label for="ctl01_cphContent_cntPromos_pnlBasicInfo_chkRC">Recurrent Charges</label> <span id="ctl01_cphContent_cntPromos_pnlBasicInfo_lblPromoValidFor" class="rcPromo">Validity:</span> <span class="rcPromo"> <input id="ctl01_cphContent_pnlBasicInfo_rbnDiscountValidFor" type="radio" name="ctl01$cphContent$pnlBasicInfo$discountValidFor" value=

Modifying jQuery ajax request Connection header

为君一笑 提交于 2019-12-01 21:53:09
问题 I'm trying to modify the Connection header with the following code with no success jQuery.ajax({ url: URL, async: boolVariable, beforeSend: function(xhr) { xhr.setRequestHeader("Connection", "close"); } }) The request headers via Firebug show: Connection keep-alive X-Requested-With XMLHttpRequest Any odd bugs/problems with setting this particular header known? Or is there something I'm doing wrong? 回答1: According to the standard here you are not allowed to set the Connection header. It will

Modifying jQuery ajax request Connection header

喜你入骨 提交于 2019-12-01 20:54:07
I'm trying to modify the Connection header with the following code with no success jQuery.ajax({ url: URL, async: boolVariable, beforeSend: function(xhr) { xhr.setRequestHeader("Connection", "close"); } }) The request headers via Firebug show: Connection keep-alive X-Requested-With XMLHttpRequest Any odd bugs/problems with setting this particular header known? Or is there something I'm doing wrong? According to the standard here you are not allowed to set the Connection header. It will terminate the set header. Also if you try this in webkit the console will output Refused to set unsafe header

jQuery focus function not working in Firefox

让人想犯罪 __ 提交于 2019-11-30 09:53:50
问题 The following piece of code focuses the text input after you click on the link. It works fine for Chrome 2.x, IE8 and Opera 9.64 but not on Firefox 3.0.9. The text input flashes quickly in Firefox then disappears, I'm currently working on Windows XP SP2. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> <script> $(document).ready(function() { $("a").click(function() { var field_id = $(this).attr("href"); $(field_id).focus(); }); }); <