This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Focus of comment submission lost in between elements
#1

Sorry if the title is wrong, but I have this problem:

I enter a name, when i click on the next element, the focus is lost and the I am at the top of the page again and have to scroll down to the comment submission area. This is happening on each of the elements... any idea of what is going wrong? Thanks

Notes: I have commentics showing up in an iframe
Happens on both chrome/ff, but without the iframe, it works fine.
Reply
#2

Hi,

It may be because each field has an onkeypress event to help stop the user accidentally submitting the form by pressing the enter button. You can see this in comments/includes/template/form.php, lines 446, 457, 469 etc. I don't recommend using Commentics, or any other advanced script, inside an iframe. From my experience iframes have trouble with sessions, other JavaScript issues, are difficult for search engines to index and are not friendly for screen readers. They are gradually being phased out by the W3C.

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
19-Mar-2017, 01:52 PM
Last Post by Steven
07-Oct-2014, 07:53 PM
Last Post by Steven
04-Sep-2011, 02:41 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)