moving a table row to another - jquery

  • (2 Pages)
  • +
  • 1
  • 2

18 Replies - 5049 Views - Last Post: 03 March 2013 - 03:50 PM

#16 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3326
  • View blog
  • Posts: 11,248
  • Joined: 12-December 12

Re: moving a table row to another - jquery

Posted 03 March 2013 - 02:22 PM

You could investigate ajax so that, when your jquery runs to move a row, it makes an ajax-request to a PHP script that would update a database. This would happen without requiring a page refresh or form submission.
Was This Post Helpful? 1
  • +
  • -

#17 haris244808  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 03-March 13

Re: moving a table row to another - jquery

Posted 03 March 2013 - 02:28 PM

View Postandrewsw, on 03 March 2013 - 02:22 PM, said:

You could investigate ajax so that, when your jquery runs to move a row, it makes an ajax-request to a PHP script that would update a database. This would happen without requiring a page refresh or form submission.


ok man i need to learn AJAX...
Thnx for all :)
Was This Post Helpful? 0
  • +
  • -

#18 haris244808  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 03-March 13

Re: moving a table row to another - jquery

Posted 03 March 2013 - 03:33 PM

srry for bothering again...

is it possible when i do the moving to hide the Accept/Reject Links and when the row is added to the 2nd table, other links to be shown(ex: edit/delete/print links)??
Was This Post Helpful? 0
  • +
  • -

#19 andrewsw  Icon User is offline

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3326
  • View blog
  • Posts: 11,248
  • Joined: 12-December 12

Re: moving a table row to another - jquery

Posted 03 March 2013 - 03:50 PM

View Postharis244808, on 03 March 2013 - 03:33 PM, said:

srry for bothering again...

is it possible when i do the moving to hide the Accept/Reject Links and when the row is added to the 2nd table, other links to be shown(ex: edit/delete/print links)??

Yes, there are many ways to do this. You might have the elements on the page with their CSS as display: none; then use jQuery show() to reveal them. Or you might dynamically create and append these elements.
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2