Re: using select onmouseup to update database

2010-12-30 Thread roundrightfarm
Thanks for pointing out I needed to use onchange and not onmouseup. I know this is not standard cakephp. I am new to php and cakephp and found the form helper confusing, so I decided not to use it and just code the html which I understand a little better. how do I go about coding the value of

Re: using select onmouseup to update database

2010-12-30 Thread Amit Badkas
Hi, I think you are asking this question at a wrong place as it is more of a HTML/Javascript related than PHP/CakePHP. Have you ever done AJAX using onchange in a simple HTML/PHP application using jQuery or javascript etc.? Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On

using select onmouseup to update database

2010-12-29 Thread roundrightfarm
I have a selectoption drop down menu in a view and I'm wondering if i can send data based on the selected result to my database when it is selected onmouseup. the options are populated from the optional_share_products table. I'd like to send data about the selected product (actually Item.id) to

Re: using select onmouseup to update database

2010-12-29 Thread Amit Badkas
Hi, The code doesn't seem to be as per CakePHP standard. However, you need to handle onchange event of a select to save the selected option (probably using an AJAX request). Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com On Thu, Dec 30, 2010 at 12:58 AM, roundrightfarm