On Tue, Mar 07, 2006 at 08:34:53PM -0500, Jerod Venema wrote:
> Try:
> 
> <a name="form226phone_different_from_input_id"></a>
> 
> and I bet it works.

Good call!  Is that a problem with IE or my incorrect usage?

I have some other code that doesn't work in IE.  I suspect a rather
basic javascript question.

I have an element observed that calls ZipLookup on keyup:

function ZipLookup() {

    if ( this.value.length != 5 ){
        return;
    }


    if ( isNaN(this.value) ) {
        alert( "Zipcode should be a number" );
        return;
    }

    var this_id = this.id;

    [...]


Does prototype have any tools to make that work in all browsers?
this.value and this.id is undefined in IE.


Thanks,


-- 
Bill Moseley
[EMAIL PROTECTED]

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to