SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Track form submissions?

    I have a form that is calling a js function that does the actual submit. The action of the form points to a page on another server that I do not have the ability to edit.

    My problem is that I need a way of tracking submissions and I'm having a hard time thinking of a way to do that. Anyone have any thoughts??
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  2. #2
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When the form is submitted, use an Ajax call to another page that adds the information to a database? You can add this step asynchronously whilst the form is being submitted.

    Regards,
    Jordan

  3. #3
    SitePoint Evangelist jimday1982's Avatar
    Join Date
    Sep 2002
    Location
    Atlanta, GA
    Posts
    562
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would this ajax call be totally invisible to the user? It's important that the user not see any page refreshes or anything like that.

    Also, any chance you could provide a code snippet of the js portion? This is a little over my head.

    Thanks.
    Jimmy Day
    Senior Systems Analyst
    Piedmont Healthcare Corporation

  4. #4
    I ♥ PHP
    Join Date
    Jul 2003
    Location
    Melbourne, Australia
    Posts
    579
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It certainly would be. The fundamental aspect of Ajax is that it does not involve a page refresh, and it can be done completely behind the scenes.

    Regards,
    Jordan


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
  •