I'm a bit of an Ajax n00b, but decent with PHP and cake. What I'm trying to do is have a form with an input that takes in a number (an item id) and adds the id to a list of ids. The list of Ids will be a form and the ids will be represented by checkboxes with their values set to the id.
So basically I want to add ids to the list, build a list of them, then click the button below the item list to make the loan (It's a library type system by the way) So far I have been able to take in the item id and build the checkbox, but I cannot seem to add more than one item to the list (I am reading the checkboxes back off the page every ajax refresh and appending the new id to the end). It seems like when I hit the submit button on the form, any elements added to the DOM by ajax aren't registered. They show up on the page as a checkbox, but not as a post variable (in $this->data). Any ideas on how to get hold of them? Or of a better way to do it?(Some way of building a list of numbers with ajax then submitting those numbers all at once would be percfect, I dont really want to store each number in the database as they come in) Any help would be appreciated --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~----------~----~----~----~------~----~------~--~---
