Seaholme Posted August 13, 2010 Share Posted August 13, 2010 Hey, I have a Chat system which consists of a main page with 3 iframes situated within it: iFrame 1 = the list of people in the Chat iFrame 2 = the chat log, displaying the messages entered into the Chat iFrame 3 = the form into which you enter your message and then click Submit so that your message is entered into the Chat log Basically what I want is that, when you submit a message via iFrame 3, it refreshes iFrame 2, so you enter in a message and can then see the refreshed version of the chat log and therefore see your new message. The problem is that I'm not sure how to get it so that submitting the form refreshes the iframe. Nor am I 100% sure whether you can refresh one iFrame from within another iFrame. One solution to the second problem is to put the submission form (currently in iFrame 3) onto my main chat page which at the moment just contains the 3 iframes, but even then I don't know how to make submitting the form refresh the chat log! Any help/advice would be appreciated Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/210661-refresh-iframe-on-submitting-a-form/ Share on other sites More sharing options...
marcus Posted August 13, 2010 Share Posted August 13, 2010 Have the form targeted to the iframe. <form method="post" action="chat.php" target="iframe_name"> Quote Link to comment https://forums.phpfreaks.com/topic/210661-refresh-iframe-on-submitting-a-form/#findComment-1098954 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.