+ Reply to Thread
Results 1 to 4 of 4

Thread: Generic Form Handler

  1. #1
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Generic Form Handler

    Could you guys give me some ideas on this?

    What we want is a form handler on our site that can take inputs from an html form on another site and validate and process them on our server.

    So, if there was a generic form, of our design (ie, certain fieldnames), on www.somedomain.com I want the target of that form to be a page on our site that can validate the inputs from the form and either process the details (ie insert into db) or fire back an error (eg you need to enter your surname)

    What I don't really want to do is have other sites hosting the processing page as this will open up security issues.

    Could this be done with .NET bearing in mind event validation and viewstate? or would classic ASP be more appropriate? I know it's a poor solution, but what about using an IFRAME to hold a full .aspx page hosted on our server?

    Any ideas how you'd approach this?

    btw, I posted in .NET as I'd ideally like a way to handle this in .NET...

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    I don't have any working samples as I've never attempted such a thing, but I do believe it is possible via the XmlHttpRequest object. I'd Google for "cross domain posting" or something along those lines and you should see some promising results.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by jmurrayhead View Post
    I don't have any working samples as I've never attempted such a thing, but I do believe it is possible via the XmlHttpRequest object. I'd Google for "cross domain posting" or something along those lines and you should see some promising results.
    Thanks J.

    Would a simple HTML form suffice as the input method? I'm thinking that the form could be running on any type of server and may not support ASP/ASP.NET, but the processing side would be handled on our server.

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Quote Originally Posted by richyrich View Post
    Thanks J.

    Would a simple HTML form suffice as the input method? I'm thinking that the form could be running on any type of server and may not support ASP/ASP.NET, but the processing side would be handled on our server.
    Yes, the XmlHttpRequest object would be looking for POST variables, so the type of form that sent them would be irrelevant. Like I said, I've never done this, so I can't be sure on anything...it's just a possibility.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Similar Threads

  1. Time Entry Form
    By sbenj69 in forum Access Database Samples
    Replies: 5
    Last Post: May 1st, 2009, 06:48 AM
  2. filters on a form
    By javier_83 in forum Microsoft Access
    Replies: 4
    Last Post: July 28th, 2008, 02:03 PM
  3. Generic Paging Class
    By Shem in forum .NET Development
    Replies: 4
    Last Post: July 18th, 2008, 12:29 PM
  4. addLoadListener - adding onload event in generic way
    By Shadow Wizard in forum JavaScript Code Samples
    Replies: 0
    Last Post: July 13th, 2008, 02:20 PM

Tags for this Thread

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

SEO by vBSEO