randy_belcher Posted February 2, 2004 Posted February 2, 2004 Hello everyone, I have a web service that returns a string of html data. I was wondering if I can do a partial page update, replacing the html that I currently have with the new html. Is this possible? Or will I have to rewrite the entire page again with the new html? Thanks. Randy Quote
randy_belcher Posted February 2, 2004 Author Posted February 2, 2004 how could i implement an iFrame or an Html Server control to get the results I want. Quote
NK2000 Posted February 2, 2004 Posted February 2, 2004 you can do that with javascript, you definitely need a clientside language, so use javascript to update frames, i frames and so on can help you very much need html help? just ask or try to find it via google.. Quote
randy_belcher Posted February 2, 2004 Author Posted February 2, 2004 thanks for the response. If I use the IFrame how do i get it to refresh with a new page? Just for testing i have 2 htm pages. One with a blue background and one with a red background. the red loads by default. on the click of a button i have the following code, but the page remains red. Any suggestions. Thanks again for the help. <script language=javascript> function Button_Click() { document.getElementById("ifram2").src = "h2.htm"; document.getElementById("ifram2").document.location.reload(); } </script> Quote
NK2000 Posted February 2, 2004 Posted February 2, 2004 i think you have to use document.location.href = "yourfile.htm"; Quote
randy_belcher Posted February 3, 2004 Author Posted February 3, 2004 that changes the entire page to h2.htm, not the iframe; however, the following code works the way i want it to: document.all["ifram2"].src = "h2.htm"; thanks for the help Quote
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.