Welcome Guest, Not a member yet? Register   Sign In
Using models with Scriptaculous's AJAX
#3

[eluser]tokyotech[/eluser]
What is the correct URL if I don't have the index.php shortcut thing?

Code:
// javascript
new Ajax.InPlaceEditor('myTitle', '/index.php/ajax/saveInfo/title');

Code:
// in controllers/ajax.php
function saveInfo()
{
   echo 'testing: it has been saved';
}

After saving the form input field, this dumped my entire WAMP homepage into the field.


Messages In This Thread
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 07:07 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 07:25 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 10:55 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-19-2009, 11:00 PM
Using models with Scriptaculous's AJAX - by El Forum - 08-20-2009, 01:15 AM
Using models with Scriptaculous's AJAX - by El Forum - 08-20-2009, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB