captcha - Concrete5 Securimage - image not refreshing on click -
I am trying to create my own contact form with securium. In my view.php, I have this:
& lt; Div & gt; & Lt; Img id = "captcha_img" src = "& lt ;? php alo $ this-> action ('securitize') ?? & gt;" / & Gt; & Lt; Script & gt; $ (Function () {$ ('# captcha_img'). Click (function () {$ (this) .attr ('src', '& lt ;? php echo $ this-> action (' securimage ' ) ;; & gt; and time = '+ (new date) .getTime ());});}); & Lt; / Script & gt; & Lt; / Div & gt;
But when I click on that image instead of being reloaded on it again
This code is for securitization in my Controller. FTP:
Public function action_securimage () {Loader :: Library ('Third Party / Securimage / Securimage') ; $ This- & gt; Securimage = new Securimage (); $ This- & gt; Securimage-> Show (); }
What am I doing wrong? Thank you, really will appreciate your help.
It feels good that you just need to make a minor change from the bus:
< Pre> $ (this) .attr ('src', ' action (' securimage ') ;; & gt; time =' + (new date) .getTime ());
To add random values to the query string and not to share the URL, you must enter & amp;
. to
? Need to change in
Comments
Post a Comment