douzhuo8312 2010-09-22 12:53
浏览 24

将YUI2 DataTable内容保存到$ _POST

I'm populating a YUI2 DataTable from a database (in PHP). Now the user should make changes to the DataTable. These changes should be saved to $_POST so they can be saved to the database again.

My problem: The only way to put variables into post seems to be input elements in a form. But the DataTable contains no input elements, it is text that will spawn a JavaScript entry field onClick.

Anyone know a way around this?

Thanks.

  • 写回答

1条回答 默认 最新

  • doudihuang7642 2010-09-27 08:16
    关注

    If anyone is wondering the same thing, you can access the data from the DataTable per getRecord, with the help of getCount and getData functions.

    评论

报告相同问题?