Skip to main content

Bug Tracker

Side navigation

#55 closed bug (fixed)

Opened July 09, 2006 04:36PM UTC

Closed June 08, 2017 07:24PM UTC

this.set is not a function

Reported by: subblue@gmail.com Owned by:
Priority: undecided Milestone:
Component: ajax Version:
Keywords: Cc:
Blocked by: Blocking:
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 (0)
Change History (4)

Changed July 09, 2006 05:39PM UTC by aaron.heimli comment:1

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 July 09, 2006 06:00PM UTC by aaron.heimli comment:2

My fixes also exposes issue #56

Changed July 14, 2006 11:01PM UTC by john comment:3

resolution: → fixed
status: newclosed

Issue resolved in SVN.

Changed June 08, 2017 07:24PM UTC by rjollos comment:4

cc: ""
component: → ajax
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 :/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 :/
keywords: ""
priority: → undecided
resolution: → fixed
status: reopenedclosed
type: → bug