SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2005
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $ajax Post Issue

    I'm doing some Facebook App training and I'm trying to post a comment using a AJAX call which I've done a few times however for some reason when I do the call nothing is POSTED?

    Anyone help?

    Code JavaScript:
    $(document).ready(function() {
    				$('#comment').click(function() {
    					$data = $('#txtcomment').val();
    					$.ajax({
    						type:'POST',
    						url: '/action_comment.php',
    						data: $data
    					})
    				});
    			});

    http://facebook.rollertestingserver.co.uk/

  2. #2
    SitePoint Evangelist
    Join Date
    Oct 2005
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Resolved.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •