Welcome Guest, Not a member yet? Register   Sign In
Getting undefined variables and calls to undefined functions.
#3

[eluser]Unknown[/eluser]
[quote author="chefsalat" date="1265121138"]it looks like your controller is returning the complete view, so there is no need to call it again in your ajax success function.
try something like this:
success: function(data) {
$('#result-area').html(data);
}[/quote]

Thanks for a quick response. I guess you were right. I tried that and the undefined CI function errors disappeared. However, I got undefined index errors this time. It must be the data that was exploded into the view. I was referencing it improperly. Anyway, I think I can sort this one out myself now. Smile Thank you for clarifying my issue. New to jQuery too so your response also taught me a few new things about it. Will post again if I still encounter some more.


Messages In This Thread
Getting undefined variables and calls to undefined functions. - by El Forum - 02-02-2010, 02:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB