I have an HTML page that makes a query to SQL database when clicking on button "OTSI". My problem is that after populating the table with the data, I cant sort it anymore. I am using a standard tablesorter library (TableSorter). Here is the page making the query: page with dynamic content and here is the same page static content: page with static content. The id of the table is countrytable.
What might solve my problem?
Kert 11 Newbie Poster
Recommended Answers
Jump to Posthai Kert
what i guessed is
in your dynamic version page, you have to call the bellow method
$("#candidatetable").tablesorter();
the time after loading the results in table, not on the page load (what i mean is while loading the page there is no content in the …
Jump to Postin addtion to the above post:
try to do as follows
place this call $("#candidatetable").tablesorter(); inside the bellow function in your script code
$("#showTable").click(function(event){ // your code here $("#candidatetable").tablesorter(); }
check it once and let me know the status
any comments are appreciated
Jump to Postplease mark this thread as solved if you got your answer
Jump to PostKert, there are certain unwritten rules we should know by hart and always follow:
First, you should mark this threat as solved [ because: it already is! ]; and
Second, you should start e different thread for your next problem, because
a different problem requires a different solution and of …
All 14 Replies
radhakrishna.p 29 Posting Whiz in Training
radhakrishna.p 29 Posting Whiz in Training
Kert 11 Newbie Poster
radhakrishna.p 29 Posting Whiz in Training
Kert 11 Newbie Poster
radhakrishna.p 29 Posting Whiz in Training
Kert 11 Newbie Poster
Kert 11 Newbie Poster
radhakrishna.p 29 Posting Whiz in Training
Kert 11 Newbie Poster
Troy III 272 Posting Pro
radhakrishna.p 29 Posting Whiz in Training
Kert 11 Newbie Poster
radhakrishna.p 29 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.