Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How the <input> fields tied to TextExt actually get submitted? #135

Open
WhiskeyHammer opened this issue Aug 29, 2013 · 2 comments
Open

Comments

@WhiskeyHammer
Copy link

Most of the inputs on my page are submitted via a jQuery "submit on enter key" code block. However the fields I'm using TextExt do not work with the existing code despite the past couple hours spent searching, manipulating, and testing.

Digging through the textext source code and the issue tracker here on GitHub I gather that it might have something to do with the "hidden input" or the trapping of the enter key.

-How are textext input fields normally submitted?
-Via the AJAX plugin Im not using perhaps?
-How does the hidden input field play into all this?

Ive looked at the below issues in trying to solve this problem (just so you know where Im getting the "hidden" stuff from):
#39
#67
#115

@WhiskeyHammer
Copy link
Author

So I was messing with my code today and on a lark I changed the POST action to occur on an unconventional key (I used the space bar) and the code worked fine. Soooo its almost certainly has something to do with how the core traps/handles the enter button. Gotta look deeper into that...

@WhiskeyHammer
Copy link
Author

So looking deeper, I deleted the reference to the enter key in the core code and added a preventDefault to my jQuery block. It worked great on my two regular inputs but broke the tags functionality. Clearly I'm missing something, I did even more research today and no one else has had this problem so its gotta be something simple and obvious that I'm just too burned out or inexperienced to see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant