vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=260054

Reload Captcha in custom JavaScript.
by abdicar
08 Mar 2011 20:33

Hello there,

We are doing in a custom page an integration with the vBulletin captcha, and we are almost done, but in special circunstances when we get an error from a progress we need to reload the captcha with ajax in the same form.

At this time, all the progress of captcha are made my the file vbulletin_ajax_imagereg.js, but it works with YUI, and to be honest I never use it before and I spend few hours and still I didnt get a easy way to reload the captcha calling a funcition in one line without press the default reload captcha link.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If we use a simple <a href="">, what we can call from inline to reload the captcha?

Thank you in advanced for any help.

--------------- Added 08 Mar 2011 at 21:21 ---------------

Update:

Well, I tried this and works fine in FF and Chrome, but IE (as always sucks) return an error.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Error in IE:

Quote:


Mensaje: El objeto no acepta esta propiedad o método

In english something like: Error: Object doesn't support this action

If anyone can suggest me something better will be very nice.

--------------- Added 08 Mar 2011 at 22:01 ---------------

Update:

Ok, I get solved with this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And you can call it in your JS as easy as: robotClick(document.getElementById('refresh_imagereg'));

I somebody have a better solution ( I'm pretty sure that It could exist :) please reply :D


All times are GMT. The time now is 08:58.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.