Get your own customer support community
 

Infinite submittal bug

Most of the time when I try to post a comment I get the infinite spinning icon and it never submits. I'm using Firefox 2.0 on Mac. Today I turned on Firebug to see if there was a Javascript error and it turns out there was. Below is the Firebug error message. The first part up to "can make the...." is the Firebug error. The rest is what it showed when I clicked through to browse the whole script. The bug is in commentAction.js, line #192.

I was trying to submit a comment to this post:

http://billflagg.blogspot.com/2008/02...

missing } after property list
[Break on this error] :1878,"username":"Derek Scruggs", "comment":"Asking good questions can make the ...
commentAction (line 192)
1/**
2 * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
3 *
4 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
5 * http://www.opensource.org/licenses/mi...
6 *
7 */
8if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv>fv.major){return true;}if(this.minor<fv>fv.minor){return true;}if(this.rev<fv><_2d>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
1commentObj.drawComment=function(parentObj, theComment, innerHTML)
2{
3 if(!theComment.isAnon)
4 {
5 var user = commentObj.users[theComment.userid];
6 }
7 else
8 {
9 var user = commentObj.anonUsers[theComment.userid];
10 }
11
12 var commentDiv = $newEl("div");
13 commentDiv.className = "idc-c";
14 if(theComment.isAnon)
15 commentDiv.className += " idc-anonymous";
16
17 commentDiv.id="IDComment"+theComment.commentid;
18 commentDiv.innerHTML = innerHTML;
19
20 if(!theComment.isAnon && theComment.userid==commentObj.adminid && theComment.userid>0)
21 commentDiv.className += " idc-admin";
22
23 var theCommentAnchor = $newEl("a");
24 theCommentAnchor.name = "IDComment"+theComment.commentid;
25 commentDiv.appendChild(theCommentAnchor);
26
27 theComment.commentDiv = commentDiv;
28
29 var divThread = $newEl("div");
30 divThread.className="idc-thread";
31
32 if(theComment.depth==0 && theComment.children.length>0)
33 {
34 var divThreadInfo = $newEl("div");
35 divThreadInfo.className="idc-thread-h";
36 divThreadInfo.id = "IDThreadInfoDiv"+theComment.commentid;
37 divThreadInfo.innerHTML = '<span class="idc-right">Thread active '+theComment.lastActivity+' RSS</span><span></span>Collapse thread<span></span>Expand thread';
38 parentObj.appendChild(divThreadInfo);
39 }
40
41 if(theComment.children.length>0)
42 {
43 for(var x=0; x<thecomment>0)
92 {
93 commentObj.drawComment(commentObj.comments[obj.parentid].commentDiv.nextSibling, commentObj.comments[obj.commentid], obj.commentHTML);
94 commentObj.comments[obj.parentid].children[commentObj.comments[obj.parentid].children.length] = obj.commentid;
95 commentObj.comments[obj.threadparentid].totalChildren++;
96
97 //Update number of replies
98 if(commentObj.comments[obj.threadparentid].totalChildren!=1)
99 {
100 var replieS = "ies";
101 var replieS2 = "them";
102 }
103 else
104 {
105 var replieS = "y";
106 var replieS2 = "it";
107 }
108
109 if($id("IDThreadInfoDiv"+obj.threadparentid))
110 {
111 $id("IDThreadInfoDiv"+obj.threadparentid).style.display="none";
112 $id("IDThreadInfoDiv"+obj.threadparentid).parentNode.removeChild($id("IDThreadInfoDiv"+obj.threadparentid));
113 }
114
115 var divThreadInfo = $newEl("div");
116 divThreadInfo.className="idc-thread-h";
117 divThreadInfo.id = "IDThreadInfoDiv"+obj.threadparentid;
118 divThreadInfo.innerHTML = '<span class="idc-right"><span class="IDCommentThreadTime">Thread active '+time+'</span> RSS</span><span></span>Collapse thread<span></span>Expand thread';
119
120 $id("IDComment"+obj.threadparentid).parentNode.insertBefore(divThreadInfo, $id("IDComment"+obj.threadparentid));
121
122
123 if($id("IDCommentNumReplies"+obj.threadparentid))
124 {
125 $id("IDCommentNumReplies"+obj.threadparentid).innerHTML = 'This comment has '+commentObj.comments[obj.threadparentid].totalChildren+' hidden repl'+replieS+'. ';
126 var thelink = $newEl("a");
127 thelink.href = 'javascript: collapseThread('+obj.threadparentid+')';
128 thelink.innerHTML = 'Show '+replieS2+'!';
129 $id("IDCommentNumReplies"+obj.threadparentid).appendChild(thelink);
130 }
131 }
132 else
133 {
134 var divMainThread = $newEl("div");
135 divMainThread.className = "idc-thread";
136 commentObj.idcCover.appendChild(divMainThread);//, commentObj.idcCover.childNodes[commentObj.idcCover.childNodes.length - 1]);
137
138 commentObj.drawComment(divMainThread, commentObj.comments[obj.commentid], obj.commentHTML);
139
140 var divThreadCollapsed = $newEl("div");
141 divThreadCollapsed.className = "idc-box_fff idc-collapse";
142 if(commentObj.comments[obj.commentid].totalChildren!=1)
143 {
144 var replieS = "ies";
145 var replieS2 = "them";
146 }
147 else
148 {
149 var replieS = "y";
150 var replieS2 = "it";
151 }
152 }
153
154 //disable voting since they alread voted
155 if($id("IDCommentVoteScore"+obj.commentid))
156 $id("IDCommentVoteScore"+obj.commentid).parentNode.parentNode.className+=" idc-voted";
157
158 if(obj.src==1)
159 {
160 hideReply();
161 $id("IDCommentReplyForm1").reset();
162 $id("IDCommentReplyForm2").reset();
163 //$id("IDOpenIDLinkReply").style.display = "block";
164 }
165 else
166 {
167 $id("IDCommentNewThreadForm1").reset();
168 $id("IDCommentNewThreadForm2").reset();
169 //$id("IDOpenIDLinkNewThread").style.display = "block";
170 }
171
172 resetFormColors();
173
174 if(obj.userid>0 && !commentObj.curUser.isLoggedIn)
175 {
176 //changeToLoggedIn(obj);
177 showMsgBox("Success!"," "+obj.username+" account created successfully.
Be sure to check your inbox for a link to validate it.

", 1);
178 }
179
180 scrollToComment(obj.commentid);
181 $id("divReplyExpandingText").innerHTML = 'Enter text right here! ';
182 $id('txtComment').style.height = (parseInt($id("divReplyExpandingText").offsetHeight) + 10)+'px';
183 $id("divNewPostExpandingText").innerHTML = 'Enter text right here! ';
184 $id('IDCommentNewThreadText').style.height = (parseInt($id("divNewPostExpandingText").offsetHeight) + 10)+'px';
185
186 var time = getCurTime() - commentObj.timeTrackStart;
187
188 IDReportTime("post comment", time);
189
190 return;
191};var str='{ "on_success":commentObj.postCommentCallback, "commentHTML":" <div class="\\\"idc-c-h\\\"> <div class=">);
193xs.server_response(returnObj);
 
sad I’m frustrated
Inappropriate?
1 person has this question

User_default_medium