User Profile

Collapse

Profile Sidebar

Collapse
datapartners
datapartners
Last Activity: Oct 11 '07, 01:07 PM
Joined: Oct 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • datapartners
    replied to missing the row id after sort
    Problem solved it appears that when the new id was set by the setAttribute from the array it also added white spaces too. I wrote a trim function

    Code:
       //---------------------------------------------------------------------------------------->
       //---                               Function Left Trim                         --->
       //---------------------------------------------------------------------------------------->
    ...
    See more | Go to post

    Leave a comment:


  • datapartners
    replied to missing the row id after sort
    Thanks for the tips so far ... from testing it appears that the line below is causing the problem;-

    Code:
     frameName.document.getElementById('View').rows[i].setAttribute('id', Lines[i].Col1);
    I have commented out the line above from the code and the getElementById( ) was defined, and could delete a row after the sort was performed but deleted the wrong line.
    See more | Go to post

    Leave a comment:


  • datapartners
    replied to javascript max value in array
    Sort the array column with the value that your after. The last row in the array should be the maximum value
    See more | Go to post

    Leave a comment:


  • datapartners
    replied to missing the row id after sort
    Ooops function Lines should have been Line

    [CODE=javascript]function Line(col1, col2, col3, col4) {
    this.Col1 = col1;
    this.Col2 = col2;
    this.Col3 = col3;
    this.Col4 = col4;
    }[/CODE]
    See more | Go to post
    Last edited by gits; Oct 11 '07, 10:03 AM. Reason: added code tags

    Leave a comment:


  • datapartners
    replied to missing the row id after sort
    on the alert returned null

    [CODE=javascript]function fillArray(view ,column){
    var frameName = document.getEle mentById(view). contentWindow;
    for (var i = 0; i < frameName.docum ent.getElementB yId('View').row s.length; i++){
    var Col1 = frameName.docum ent.getElementB yId('View').row s[i].cells[0].innerHTML;
    var Col2 = frameName.docum ent.getElementB yId('View').row s[i].cells[1].innerHTML;
    ...
    See more | Go to post
    Last edited by gits; Oct 11 '07, 10:02 AM. Reason: added code tags

    Leave a comment:


  • datapartners
    started a topic missing the row id after sort

    missing the row id after sort

    I have two iframes on a page that display a table which contain checkboxes that when ticked delete the row.

    Everything works fine expect when I sort one of the tables in the iframe. I set the id attribute each time and when I view the HTML in a debugger the row id is set to the new id.

    When I select the checkbox to delete the sorted row using

    [CODE=javascript]var frameName = document.getEle mentById('view1 ').contentWindo w;...
    See more | Go to post
    Last edited by gits; Oct 11 '07, 10:02 AM. Reason: added code tags
No activity results to display
Show More
Working...