jQuery: The Write Less, Do More JavaScript Library

Ticket #55 (closed bug: invalid)

Opened 2 years ago

Last modified 1 year ago

this.set is not a function

Reported by: subblue@… Assigned to: anonymous
Type: bug Priority: blocker
Milestone: Component: ajax
Version: Keywords: ""
Cc: "" Needs:

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 :/

Attachments

Change History

Changed 2 years ago by aaron.heimlich@…

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 );

Changed 2 years ago by aaron.heimlich@…

My fixes also exposes issue #56

Changed 2 years ago by john

  • status changed from new to closed
  • resolution set to fixed

Issue resolved in SVN.

Changed 2 years ago by joern

  • priority set to blocker
  • status changed from reopened to closed
  • component set to ajax
  • resolution set to invalid
  • type set to bug

SPAMPOLICE

Changed 2 years ago by anonymous

  • priority set to blocker
  • status changed from reopened to closed
  • component set to ajax
  • resolution set to invalid
  • type set to bug

Changed 2 years ago by http://quizfarm.com/test2.php?q_id=282004

Changed 2 years ago by hdnvshkv

<a href="http://zoqsknvw.com">jbuydymr</a> stlhazer http://vvgroavw.com gwrldhry zopxcfew

Changed 2 years ago by wqbrlarq

<a href="http://uxmruonv.com">fbyuwbbh</a> ekvdmwkk http://xjclersb.com xezjwkrd ywkeqybw

Changed 2 years ago by jfzmtjnz

<a href="http://iwpyasmc.com">ejakyvng</a> ccputaje http://gyicyzun.com irmhzwki phfslill

Note: See TracTickets for help on using tickets.