Results 1 to 4 of 4

Thread: Problem with using Recaptcha and ExtJS

  1. #1
    Sencha User
    Join Date
    May 2008
    Posts
    95

    Default Problem with using Recaptcha and ExtJS

    I have a problem in that my javascript interface properly shows the recaptcha interface the first time, but the second time around it doesn't appear. Reloading the page seems to make the problem go away.

    The relevant code reads,

    Code:
    this.accountWindow = new Ext.Window({ 
         title:CREATE_ACCOUNT, 
         modal:true, 
         y:100, 
         width:400, 
         draggable: true, 
         closable: true, 
         resizable: false, 
         items:this.accountForm,                                                  // Form to collect new account info
         html:"<div id='recaptcha_div' align='center'></div>",      // Someplace for the Recaptcha 
                                                                                                 // display to go. 
         buttons:[{ 
                   text:HELP, 
                   handler:function() { 
                     this.processHelp(); 
                    }, 
                    scope:this 
                  },{ 
                   text:SUBMIT, 
                   handler:function() { 
                     this.processChallenge(); 
                   }, 
                   scope:this 
                  },{ 
                    text:CANCEL, 
                    handler:function() { 
                                        if (typeof(Recaptcha) != "undefined") { 
                                                 Recaptcha.destroy(); 
                                        } 
                      this.accountWindow.close(); 
                    }, 
                    scope:this 
                   }] 
       }); 
     
      this.accountWindow.show(); 
       if (typeof(Recaptcha) != 'undefined') { 
            //   Recaptcha.destroy();        // Start fresh with Recaptcha otherwise old data appears 
         Recaptcha.create(recaptchaPublicKey,"recaptcha_div", { 
           theme: "red", 
           callback: Recaptcha.focus_response_field 
         }); 
       } 
     
    }
    I've been able to verify with firebug that the Recaptcha.create is reached both times. I'm not sure if I need the .destroy or not, but the same problem happens either way. I've tried the Recaptcha group but they weren't much help. Anyone here have any ideas?

  2. #2
    Sencha User
    Join Date
    Apr 2010
    Location
    Bologna, Italy
    Posts
    47

    Default Playing with recaptcha

    Hi pdchapin,

    I've experimented http://www.diegocimarosa.it/Captcha/

  3. #3

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    549

    Default

    Quote Originally Posted by galdaka View Post
    Error 404. Not found.
    You do realise you're replying to an 18 month old post right?

Similar Threads

  1. [2.x] Ext.ux.reCAPTCHA Form Plugin
    By mikegiddens in forum Ext 2.x: User Extensions and Plugins
    Replies: 13
    Last Post: 3 Nov 2011, 5:17 PM
  2. Has anyone implemented ReCaptcha with Sencha Touch?
    By irocker in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 4 Jan 2011, 9:53 AM
  3. Pagingtoolbar Problem in extjs 2.2
    By prashanth_y in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 26 Oct 2010, 3:30 AM
  4. extjs charset problem
    By leipan2008 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 31 Dec 2008, 1:45 AM
  5. extjs problem at ff3
    By mnask79 in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 30 Oct 2008, 3:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •