Process payment button has to be clicked twice

  • John O Connor
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 1 month ago #42374 by John O Connor
Replied by John O Connor on topic Re: Process payment button has to be clicked twice

Have you asked someone else test it as well ?

I told you already other customers have the same issue in firefox. I also had other users test it in firefox with the same result. funny you don't see it in firefox and other users do!

Calling on Skype is pointless. Whats this going to achieve? I already sent you a screencast of the problem now What is the solution?

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #42375 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Process payment button has to be clicked twice
Hi John

Just tried again and I don't have two click on the button twice. I don't know how to record a screen to prove you, so I will ask my dev to record it and show it to you on tomorrow morning.

On tomorrow morning, I will also ask all other users in my team to check it all again to see whether we can re-procedure the issue or not.

If we could not re-procedure the issue ourself, I am afraid of we could not fix it and you might have to find a different extension.

FYI, it is just a simple HTML button with the following code, so I don't see any reasons it has to be clicked twice to work :
Code:
<input type="button" class="btn btn-primary" name="btnSubmit" id="btn-submit" value="<?php echo JText::_('OSM_PROCESS_SUBSCRIPTION') ;?>" onclick="checkData();">

Will try to do some more google search as well to see whether someone has the same issue.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #42376 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Process payment button has to be clicked twice
Will get back to you with the final answer on tomorrow morning !

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #43110 by Peter Ward
Replied by Peter Ward on topic Process payment button has to be clicked twice
I had a similar problem on www.thepurpleguide.co.uk/index.php/subscribe

The e-mail address field was the last one in the form by default and if the user entered their e-mail address then immediately clicked to subscribe, they had to click twice (I didn't have a T&C checkbox initially).

By moving the e-mail address field up the form, the user will click or tab into another form field at least once before clicking to subscribe, now they only need to click once.

I don't know if this is the same issue or just coincidence, but might help.

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #43134 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Process payment button has to be clicked twice
Hmm

When you has email address at the last position in the form, right after you entered the email address, the system will perform ajax check to validate the email address to make sure it is valid and unique. When the system start this validation process, it will disable the submit button and only enable it again after the validation complete. This is a quick process, usually takes less than one second.

So I believe when you first click on the button, the email validation process is happening and the button is disabled, so your click doesn't affect anything.

The next press will actual process the button and it is working fine.

That's the only reason I can see that you have to click twice. If after entering the email address, you wait about one second before click on the button, I believe you won't get that problem.

Thanks for giving the value information anyway !

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
11 years 3 weeks ago #43143 by Peter Ward
Replied by Peter Ward on topic Process payment button has to be clicked twice
Yeah, that's exactly it. As if the page is processing the e-mail address for a second or so.

With the e-mail address as the last box needing to be completed and if you're a quick clicker, it's makes a second click necessary. As mentioned, I just moved the e-mail address field up the form so there's time for the processing to be complete.

Cool.

Please Log in or Create an account to join the conversation.