Welcome Guest, Not a member yet? Register   Sign In
jquery post
#14

[eluser]SPeed_FANat1c[/eluser]
[quote author="meera" date="1286614687"]Ya,like this only,but i use this i am not getting any responce.[/quote]


I don't understand what exactly don't you get - controller don't get an id or post method don't alert data?

Of course if you want post function to alert data you must echo it in the controller function which you called in jQuery post. So in your example you called function editnew

so you function must look like this:

Code:
function editnew()
{
  //you code...

  echo 'some_data';
}

This is an example with string, but if you want some data structure then you can use json as someone said.


Messages In This Thread
jquery post - by El Forum - 10-08-2010, 05:01 AM
jquery post - by El Forum - 10-08-2010, 07:47 AM
jquery post - by El Forum - 10-08-2010, 08:00 AM
jquery post - by El Forum - 10-08-2010, 09:11 AM
jquery post - by El Forum - 10-08-2010, 12:11 PM
jquery post - by El Forum - 10-08-2010, 09:31 PM
jquery post - by El Forum - 10-08-2010, 09:34 PM
jquery post - by El Forum - 10-08-2010, 09:40 PM
jquery post - by El Forum - 10-08-2010, 09:58 PM
jquery post - by El Forum - 10-08-2010, 10:02 PM
jquery post - by El Forum - 10-08-2010, 10:04 PM
jquery post - by El Forum - 10-08-2010, 10:21 PM
jquery post - by El Forum - 10-09-2010, 12:10 AM
jquery post - by El Forum - 10-12-2010, 10:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB