SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jQuery - parse post return data...

    When I submit a post request in jquery i.e

    $.post($(this).attr('action'), $(this).serialize(), function(data){

    });

    How can I parse the returned data to get a specific element if the returned data is just an html page?

    Thanks...

  2. #2
    SitePoint Enthusiast TriLLi's Avatar
    Join Date
    Feb 2010
    Location
    BiH, Bugojno
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you can put returned content into hidden element and then get it by name,
    this is the easiest way.

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TriLLi View Post
    you can put returned content into hidden element and then get it by name,
    this is the easiest way.
    Thanks. Thats a good idea.


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
  •