Hello, I want to experiment something but I am not sure it's possible or "recommended".. I have a form to compute some "formulas", actually there are 4 different math formulas..
Best exemple will be the physis formula U = RI Basically the input form is the same except that scenario 1 you enter R and U, second form your enter U and R .. Result field being U (1) and I (2).. For this I did a basic form using ajax, and 2 links that call the controller method and render the same view. The view has a "form" and a "submit", and depending on parameter I hide the fields .. But the action associated to the submit is different since I use 1 or 2 depending of the "calculation", I have then created a "modifier" using javascipt that will replace the attribut "onclick" of the submit element.. That does not seem to work, it seems that my ajax form url (fake) is always called as well as the url associated to the submit.. Also the call to the URL using the submit link never contains the data of the form .. So what is the association between the url placed into the ajax form (property action of the DOM) and the ajax submit (one of attribut of the DOM button)... Can I change the attribute "onclick" of the submit and keep the same ajax form "action" ?? Maybe not really clear ... but if you have tried to make a multiple purpose form that can call different "url" ..that would help me Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
