[jQuery] Why isn't my Ajax call working?
> -------Original Message-------
> From: Jake McGraw <jmcgraw1@gmail.com>
> Subject: Re: [jQuery] Why isn't my Ajax call working?
> Sent: Feb 16 '07 22:33
>
> Which PHP array are you using to access user variables? If you're
> using $_GET, then your AJAX Post variables won't show up in the
> application, I usually use $_REQUEST. Also, have you thought of using
> the jQuery ajax abstraction methods? Something like this should do the
> trick (not tested):
>
> $.ajaxError(function(request, settings){
> alert('An error has occurred!');
> });
>
> function loadModuleHTML(p_id, p_moduleIndex) {
> $.post('get_file_contents.php',{mod_index:p_moduleIndex},function(data){
> $("#"+p_id).empty().append('<div class="sortListInner">'+data+'</div>');
> });
>
> $(function(){
> loadModuleHTML('li0',0);
> });
>
> I noticed that you're using some plain Jane JavaScript, like
> 'getElementById', etc. In case you haven't already, you should check
> out all the amazing things jQuery can do besides ajax.
>
> - jake
>
> On 2/16/07, dalvarado@remanresource.com <dalvarado@remanresource.com>