![]() |
Call controller function on button clik isn't working. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Call controller function on button clik isn't working. (/showthread.php?tid=39061) |
Call controller function on button clik isn't working. - El Forum - 02-28-2011 [eluser]Rahul gamit[/eluser] I want to call a function from controller on button click, but whenever i am clicking it it want calls to that function. here is my code. Code: <body> Call controller function on button clik isn't working. - El Forum - 02-28-2011 [eluser]Phil Sturgeon[/eluser] As I have said on StackOverflow, you need to give more information. "Doesn't work" is bloody useless. Call controller function on button clik isn't working. - El Forum - 02-28-2011 [eluser]wiredesignz[/eluser] @phil, You're starting to sound like me. Call controller function on button clik isn't working. - El Forum - 03-01-2011 [eluser]InsiteFX[/eluser] LMAO InsiteFX Call controller function on button clik isn't working. - El Forum - 03-01-2011 [eluser]seeraw[/eluser] Hello Rahul gamit, First, if you want to perform any action on button click input type should be "button" not submit it will work but may not give you correct result Second, you can use below code <input type="button" name="SOMENAME" id="SOMEID"> Then in that function you can call ajax through which you can call your function from controller (URL parameter in ajax) with that function you can perform the operation you want. Thanks, Swapnil Call controller function on button clik isn't working. - El Forum - 03-01-2011 [eluser]Rahul gamit[/eluser] Hello seeraw, its working now thanks Call controller function on button clik isn't working. - El Forum - 03-01-2011 [eluser]seeraw[/eluser] Cheers ![]() Swapnil |