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 comment:1
Changed July 14, 2006 11:01PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Issue resolved in SVN.
Changed June 08, 2017 07:24PM UTC by 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: | reopened → closed |
type: | → bug |
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 );