Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
is the bind() method broken for the change event in jquery 1.4.1?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tg @oh  
View profile  
 More options Feb 3 2010, 6:02 pm
From: "tg @oh" <tg.oh44...@gmail.com>
Date: Wed, 3 Feb 2010 15:02:01 -0800 (PST)
Local: Wed, Feb 3 2010 6:02 pm
Subject: is the bind() method broken for the change event in jquery 1.4.1?
I have some code that works in jquery 1.3.2 but does not in 1.4.1. Not
sure where this should go, just started using jquery when 1.3.2 came
out. Is this the right forum? jquery site still pointing here, but I
thought they moved off of google?

        $(document).ready(function() {
            alert("document ready!");
            $("#lineItems input:last").bind("change",
appendLineItem).focus();
            //window.onbeforeunload = stopRefresh;
        });

        function appendLineItem() {
            alert("prior value:"+priorValue);
            if ($(this).val() != priorValue) {
                priorValue = $(this).val();
                showAlert = true;
                lineCnt++;
                var len = $("#lineItems input").length + 1;
                $("#lineItems").append('<tr><td><input type="text"
class="normal" name="_Override_SSN_' + len +
                '" /></td><td><input type="text" class="normal"
name="_Override_Perscription_Number_' + len + '" /></td></tr>')
                $(this).unbind("change", appendLineItem);
                $("#lineItems input:last").bind("change",
appendLineItem).focus();
            }
            else {
                $(this).val("").focus();
                return false;
            }
        }

                    <table id="lineItems">
                        <tr>
                            <th>
                                Member SSN
                            </th>
                            <th>
                                Perscription Number
                            </th>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" class="normal
required" name="_Override_SSN_1" />
                            </td>
                            <td>
                                <input type="text" class="normal
required" name="_Override_Perscription_Number_1" />
                            </td>
                        </tr>
                    </table>

Terry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Resig  
View profile  
 More options Feb 3 2010, 6:11 pm
From: John Resig <jere...@gmail.com>
Date: Wed, 3 Feb 2010 18:11:58 -0500
Local: Wed, Feb 3 2010 6:11 pm
Subject: Re: [jquery-dev] is the bind() method broken for the change event in jquery 1.4.1?
Yes, we've moved to the new forum:
http://forum.jquery.com/

And this issue has already been fixed and will be in 1.4.2:
http://dev.jquery.com/ticket/5851

--John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tg @oh  
View profile  
 More options Feb 3 2010, 7:37 pm
From: "tg @oh" <tg.oh44...@gmail.com>
Date: Wed, 3 Feb 2010 16:37:25 -0800 (PST)
Local: Wed, Feb 3 2010 7:37 pm
Subject: Re: is the bind() method broken for the change event in jquery 1.4.1?
Thanks for the reply here!

Not sure why I went here, just tried again from the Discussion Button
on the jquery.com home page and it is going to the new forum.

I'll switch back to 1.4 when I see 1.4.2 available.

Terry

On Feb 3, 6:11 pm, John Resig <jere...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »