One issue that i see right away is this:

$("li").each(function(){
          $.post("ajax_parser_update.php", {query: $(this).val()},

You are apparently looping through "<li>" tags....  inside that each
statement $(this).val() won't work because <li> is not an object
that .val() works against...  use ".text()" or ".html()"




On Aug 22, 5:55 am, Harri <h4rrison.ja...@gmail.com> wrote:
> Hi,
> I've used a few jquery things before, but I haven't a clue when it
> comes to javascript, so I've mainly just modified variables here and
> there. This is my first attempt at actually writing something, and
> well.....its not working :P
>
> Im trying to send an ajax post to an external file, which simply
> returns 'Complete' after updating the db. My html gives me an ul, with
> li elemnts, representing names of comics. Anyway heres my code, Id
> just like someone with more experience than me to tell me if im doing
> anything wrong:
>
>                 $(function() {
>                         $("li").each(function(){
>                                 $.post("ajax_parser_update.php", {query: 
> $(this).val()},
>                                 function (data) {
>                                         $(this).append(data);
>                                 });
>                                 return false;
>                 });
>                 });
>
> Thanks,
> Harrison

Reply via email to