Bug Tracker

Modify

Ticket #55 (closed bug: invalid)

Opened 7 years ago

Last modified 7 years ago

this.set is not a function

Reported by: subblue@… Owned by:
Priority: undecided Milestone:
Component: ajax Version:
Keywords: "" Cc: ""
Blocking: Blocked by:

Description

When trying to use:

$("#parent_id").val(comment_id);

and

$("#reply_field dd").html(reply_name);

I get the following error in Firefox 1.5 or Safari on the Mac: this.set is not a function from line 541 of the jquery-svn.js rev. 134:

this[0][n] : this.set( n, h );

My jquery commands are called in the following function which is defined in the html as an onclick command:

function replyTo(comment_id, reply_name){

$("#commentbox").fadeIn("slow"); $("#parent_id").val(comment_id); $("#reply_field dd").html(reply_name);

}

Basic jquery, so quite surprised to see this error :/

Change History

comment:1 Changed 7 years ago by aaron.heimli

You should be able to fix that by changing line 541 of jquery-svn.js (and jquery/jquery.js in SVN) from:

this[0][n] : this.set( n, h );

to:

this[0][n] : this.attr( n, h );

comment:2 Changed 7 years ago by aaron.heimli

My fixes also exposes issue #56

comment:3 Changed 7 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Issue resolved in SVN.

comment:4 Changed 7 years ago by joern

  • Priority set to blocker
  • Resolution set to invalid
  • Status changed from reopened to closed
  • Component set to ajax
  • Type set to bug

SPAMPOLICE

comment:5 Changed 7 years ago by anonymous

  • Priority set to blocker
  • Resolution set to invalid
  • Status changed from reopened to closed
  • Component set to ajax
  • Type set to bug

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.