+ Reply to Thread
Results 1 to 1 of 1

Thread: A little complicated problem

  1. #1
    mqragnarok is offline x10Hosting Member mqragnarok is an unknown quantity at this point
    Join Date
    Feb 2010
    Posts
    7

    A little complicated problem

    Let's say I have a script configuration like this:


    Explanation:

    I have to collect some data from a form on the page and pass it to a third-party server that will accept the data and return me an .xml file based on the data I sent. I then need to process the xml data, validate it with some function and display the message if it passes validation. To make things look nice (and complicated) I want all that to happen without even reloading the "request.php" page that originally collected user's input on a form inside the page.

    The model of the whole procedure on the image is only what I think it should look like and not the final solution (since I don't have one yet). I've managed to submit a form to "validate.php" with jQuery, send the values from "validate.php" to the third-party site and get the .xml data back (as a stream).

    My question is about the last two steps: returning data to "request.php" and processing it with some JavaScript (jQuery) function. Can it (theoretically) be done the way it's shown on the graph, or I have to move the validation process in "validate.php" and return only the final result to the original page?

    Thanks

    Edit (after a couple of hours ): OK, I found a way to make this happen.
    Last edited by mqragnarok; 03-15-2010 at 01:28 AM.

+ Reply to Thread

Similar Threads

  1. Replies: 1
    Last Post: 01-11-2010, 11:53 PM
  2. separating parts of a long, complicated string
    By garrensilverwing in forum Programming Help
    Replies: 3
    Last Post: 11-16-2009, 07:44 PM
  3. why is it so complicated to get an account here?
    By abarton in forum Introductions
    Replies: 3
    Last Post: 05-09-2008, 07:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers