[eluser]stevefink[/eluser]
Does anyone have any experience with using jQuery forms within CI?
I have a really simple target: callback which works fine outside of CI:
Code:
$(document).ready(function() {
// bind 'form2' and provide a simple callback function
$('#form2').ajaxForm(function() {
// Server should send data back in json encoding
target: '#container'
});
});
all that should do is pop in the response of my script into <div id="container></div>. I'm not getting any errors, just not seeing updated content. My action method looks like this:
Code:
function photo_mod()
{
/**
* Process photo modifications here. The form from photos_view.php
* gets process in this method.
*/
echo "<pre>DEBUG TEXT</pre>";
}
Thanks all.