I have written a chat program in PHP that uses 3 iframes:
1st iframe (main chat pane) refreshes every second
2nd iframe (and input form) does not refresh
3rd ifram (users currently online) refreshes every 5seconds
The problem i am having is that when the user types something into the input form and presses enter, the text they type disappears from the form but nothing is actually submitted. It works fine if the user manually clicks on the submit button.
I have so far, using javascript managed to get the page to detect the user pressing enter and then attatch this event to a function that submits the form, altho I still have the same problem.
Any ideas?