Verification Image passed back through AJAX call

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • KDawg44

    Verification Image passed back through AJAX call

    Hi,

    I would like a verification image for new sign ups on a website. Is
    there a way to call the PHP script through an AJAX call and have the
    image passed back and then display? Is there a way to pass the image
    serialized back to the browser and then displayed? (or something like
    that?)

    I know that I do not need to do it this way but I am wondering if its
    possible.

    Thanks.

    Kevin
  • Curtis

    #2
    Re: Verification Image passed back through AJAX call

    KDawg44 wrote:
    Hi,
    >
    I would like a verification image for new sign ups on a website. Is
    there a way to call the PHP script through an AJAX call and have the
    image passed back and then display? Is there a way to pass the image
    serialized back to the browser and then displayed? (or something like
    that?)
    >
    I know that I do not need to do it this way but I am wondering if its
    possible.
    >
    Thanks.
    >
    Kevin
    If you're using PHP to dynamically generate the image, using GD or
    something, you simply access the script as a normal image. Requesting
    the image itself shouldn't necessitate an asynchronous request. If you
    want to use "ajax", you might consider sending the user's code for
    validation via the request object.

    --
    Curtis (http://dyersweb.com)

    Comment

    • Ulf Kadner

      #3
      Re: Verification Image passed back through AJAX call

      KDawg44 wrote:
      I would like a verification image for new sign ups on a website.
      There is no reason to use a captcha for user-verification! Its one of
      the badest way to solve it.

      I know, a lot of websites use it, but it makes the website/registration
      unaccessible for users with disabilities. So it results in a
      usability-problem. Blind or visually impaired users must use the same
      technique as bots for solving a registration.

      Using of captchas is a mark of lowlevel knowlegde for the
      userinterface-programmer!

      A lot of techniques can solve youre problem by a better way.

      - Double-Op-IN
      - Random or untypcaly Formfieldnames
      - Checking Input by a lot of effective checking-methods
      - and much more

      The Web contains a lot of proposals for handling registrations. You only
      have to sensible combine then!

      So long, Ulf

      Comment

      • C. (http://symcbean.blogspot.com/)

        #4
        Re: Verification Image passed back through AJAX call

        On Jul 20, 1:40 am, KDawg44 <KDaw...@gmail. comwrote:
        Hi,
        >
        I would like a verification image for new sign ups on a website. Is
        there a way to call the PHP script through an AJAX call and have the
        image passed back and then display? Is there a way to pass the image
        serialized back to the browser and then displayed? (or something like
        that?)
        >
        I know that I do not need to do it this way but I am wondering if its
        possible.
        >
        Thanks.
        >
        Kevin
        Ajax is overkill - just request a new image bound to the session using
        javascript:

        document.getEle mentById("ImgTa gPreviouslyPlac edOnPage").src= "http://
        example.com/capcha.php";

        C.

        Comment

        Working...