Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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..

Posted

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>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...