AJAX Registration Check

Validate on kepress only - AJAX Registration Check

Validate on kepress only

by Badhon_raj » Wed Jan 31, 2018 3:35 pm

Hi.
This extension works fine with phpBB 3.2.2
However, I've one concern.

It Activates as soon as the page loads and shows all field as incorrect.

Image

I want it to activate only when a field is clicked on or any value is entered.

Can anyone please help me achieve this?
Badhon_raj
Registered User
Posts: 156
Joined: Wed Jan 04, 2012 6:33 pm
Contact:

Re: Validate on kepress only

by RMcGirr83 » Wed Jan 31, 2018 4:50 pm

That's probably a style issue. A link to the actual forum would probably help tremendously.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Validate on kepress only

by Badhon_raj » Wed Jan 31, 2018 5:31 pm

RMcGirr83 wrote:That's probably a style issue. A link to the actual forum would probably help tremendously.
Sure, here:
http://orthohin.com/goto/ajaxreg

Thanks for your prompt response by the way.

EDIT: Same for prosilver theme:
http://orthohin.com/goto/ajaxreg2
Badhon_raj
Registered User
Posts: 156
Joined: Wed Jan 04, 2012 6:33 pm
Contact:

Re: Validate on kepress only

by RMcGirr83 » Wed Jan 31, 2018 7:17 pm

You have a js error
TypeError: $(...).selectpicker is not a function ucp.php:312:28
which is caused by this

Code: Select all

<!-- injected via a module or an include -->
<script>
// some function that depends on bootstrap and jquery
head.ready(function () {
	$('.footable').footable();$(".selectpicker").selectpicker();$(".selectpicker").tooltip("disable");var totop=$("#totop");totop.click(function(){$("html, body").stop(true,true).animate({scrollTop:0},500);return false});$(window).scroll(function(){if($(this).scrollTop()>600){totop.fadeIn()}else{totop.fadeOut()}});$("button[data-loading-text], input[data-loading-text], .btn-load").click(function(){var e=$(this);e.button("loading");setTimeout(function(){e.button("reset")},3e3)});
	$("input").iCheck({checkboxClass:"icheckbox_minimal-grey",radioClass:"iradio_minimal-grey"});$(".btn-search").click(function(){$(".search-input").toggleClass("open").find("input").focus()});$(".close").click(function(){$(this).prev("input").val("").parents(".search-input").removeClass("open")});$(".nav-tog").click(function(){if($(this).hasClass("neutro")){$(this).removeClass("neutro").addClass("open")}else{$(this).removeClass("open").addClass("neutro")}});
	$('input[data-reset-on-edit]').on('keyup', function() {$(this.getAttribute('data-reset-on-edit')).val('');});
	$('a').tooltip({trigger : 'hover',container: 'body'})
    $('#notification_list_button').click(function(){setTimeout(function(){$(".nano").nanoScroller();},0);});	
});
// some function that depends on bootstrap and jquery
head.load("./styles/BBOOTS/theme/vendors/twitterFetcher.min.js");
head.ready("twitterFetcher.min.js",function(e){var e={profile:{screenName:"forumine1"},domId:"twitter-feed",maxTweets:3,showUser:!1,showImages:!0,enableLinks:!0};twitterFetcher.fetch(e)});
</script>
<!-- injected via a module or an include -->
and is why that is displaying the way it is. Something to do with the BBoots style you're using.
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored
User avatar
RMcGirr83
Recognised Extension Developer
Posts: 21034
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Validate on kepress only

by Badhon_raj » Wed Jan 31, 2018 7:36 pm

this is the original overall_footer from the theme file.
I don't understand JS well to mess around.
https://pastebin.com/Eexemagt


however, it's same in prosilver as well:
Image

http://orthohin.com/goto/ajaxreg2
Badhon_raj
Registered User
Posts: 156
Joined: Wed Jan 04, 2012 6:33 pm
Contact:

Re: Validate on kepress only

by Tarantino » Mon Apr 16, 2018 8:17 pm

I can confirm it. This is not working on prosilver. It appears on page load instead of keypress...
Tarantino
Registered User
Posts: 748
Joined: Sat Feb 18, 2012 1:51 pm
Contact: