Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 622809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:01:28+00:00 2026-05-13T19:01:28+00:00

var allRows = this.getTbodyEl().rows; for (var i = allRows.length – 1; i >= 0;

  • 0
var allRows = this.getTbodyEl().rows;
for (var i = allRows.length - 1; i >= 0; i--){
 var thisRowID = allRows[i].id;
 // Clean up any existing Drag instances
 if (myDTDrags[thisRowID]) {
    myDTDrags[thisRowID].unreg();
    delete myDTDrags[thisRowID];
 }
 // Create a Drag instance for each row
 myDTDrags[thisRowID] = new YAHOO.util.DDProxy(thisRowID);
};

I can’t figure out why, but the above code is not yielding a DDProxy object for each row in my table. I have verified that the DDProxy code is all loaded and running properly by passing a string reference to a DOM element:

myDTDrags[thisRowID] = new YAHOO.util.DDProxy('yui-rec30');

This makes the corresponding row draggable as expected! I have also verified, using typeof, that the value of thisRowID is indeed of the type ‘string’ AND that the string contains the id of appropriate row elements.

What have I missed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:01:28+00:00Added an answer on May 13, 2026 at 7:01 pm

    UPDATE: My code posted above is correct. I was wrong in that the contents of my thisRowID variable did NOT contain a reference to an appropriate row element!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

var gethtml = $(#topmenu > li.l89 a).text().split(' ')[1].replaceWith('Any World'); The text is not changing
var fruit = [apple,pear,pear,pear,banana]; How do I remove all pear fruit from this array?
Here's the sample code: var d = new Date(2010-06-09T19:20:30+01:00); document.write(d); On FF3.6 this will
I have this in AS3 var myName:String = David; var result:Number = ExternalInterface.call(methodInJS, myName);
I have this regular expression to help me validate a form input. var nrExp
I have this JS function : $(#ctl00_ContentPlaceHolder1_Table3 td).click(function () { var varTemp; var tr
Say I define a variable like this: var o = new { RBI =
var // Will speed up references to window, and allows munging its name. window
Firefox 3.5.3 (at least) allows me to write code like : var array =
var ref1 = new Firebase(http://gamma.firebase.com/myuser/123,456); ref1.set(123,456); var on1 = ref1.on(value, function(snapshot) { console.log(snapshot.val()); });

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.