too many records with AJAX

too many records with AJAX

loadbrainloadbrain Posts: 18Questions: 0Answers: 0
edited July 2009 in General
I query a database, loading the records with AJAX in the table.
Everything's fine, but I got one too many record and that is the one from the template:
[code]

Row 1 Data 1
Row 1 Data 2
etc
Row 1 Data 1

etc

[/code]
This is a part of my table that gets filled with AJAX but this entry is still in the table after AJAX call....
What can I do to avoid this?

Replies

  • loadbrainloadbrain Posts: 18Questions: 0Answers: 0
    oh my God, of course leave this part... sorry, dumb question...
  • allanallan Posts: 63,512Questions: 1Answers: 10,471 Site admin
    HI loadbrain,

    Did you get this sorted then? Good kind of question - I like these ones ;-)

    Allan
  • loadbrainloadbrain Posts: 18Questions: 0Answers: 0
    Well, kind of. It is sorting the date and checkbox fields, so it is sorting numbers but not the name or emai field, the strings...
    Funny I did not even realize this until you asked... ;-)
    Any solution?
  • allanallan Posts: 63,512Questions: 1Answers: 10,471 Site admin
    Hi loadbrain,

    It sounds like you need a custom sorting plug-in to have it sort the data that you want. There are some available for date sorting, stripping html (with text or numbers) - have a peak: http://datatables.net/plug-ins#sorting

    Allan
  • loadbrainloadbrain Posts: 18Questions: 0Answers: 0
    Thanks, I will take a look later or this night... ;-)
This discussion has been closed.