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. Link to comment https://forums.phpfreaks.com/topic/34611-focus-questions/ 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 Link to comment https://forums.phpfreaks.com/topic/34611-focus-questions/#findComment-163106 Share on other sites More sharing options...
makeshift_theory Posted January 17, 2007 Author Share Posted January 17, 2007 Text Area works great thanks! Link to comment https://forums.phpfreaks.com/topic/34611-focus-questions/#findComment-163121 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.