makeshift_theory Posted January 17, 2007 Share Posted January 17, 2007 Hi guys and gals, I have a ajax chat app I have created for my game I'm working on and it works great! However I am curious, is there a way to load focus on a text field without using forms? I have to take the forms out of the input tags or the page will refresh and it will defeat the purpose of using ajax. Quote Link to comment Share on other sites More sharing options...
Zeon Posted January 17, 2007 Share Posted January 17, 2007 you can use forms this way:[code]<form [...] onsubmit="return false;">[...]</form>[/code]this way the form won't submit even if a user presses enter on a textfieldor you could use textareas instead of text inputs, because textareas don't trigger submission Quote Link to comment Share on other sites More sharing options...
makeshift_theory Posted January 17, 2007 Author Share Posted January 17, 2007 Text Area works great thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.