Hi,
I need to refresh one div in my HTML page and not the entire page, is this possible? Please help

>I need to refresh one div in my HTML page and not the entire page, is this possible?

Yes it is possible. Read more about AJAX.

Hi,
I need to refresh one div in my HTML page and not the entire page, is this possible? Please help

Hi, did you get this figured out? I have a trick I use with some Javascript if you are interested.
Are we allowed to post script/code here?

Are we allowed to post script/code here?

Yes, you can post code here but your code must be encased with code-tags. Read more about code-tags.

function CloseDiv()
        {
            window.setTimeout("Hide();", 1000);
        }
        function Hide()
        {
            var dv = document.getElementById("DivIdName") ;
            dv.style.visibility = "hidden";
        }
		
        function OpenDiv()
        {
            window.setTimeout("Show();", 1);
        }
        function Show()
        {
            var dv = document.getElementById("DivIdName") ;
            dv.style.visibility = "visible";
        }

Once I have submitted a form the div shows the response i need. That response has in it a form with the onclick CloseDiv and in a second the div is closed. You can change the amount of seconds to your liking.
But now you have to use the OpenDiv function to reopen it later on the form or link that Opened it in the first place.
I hope this make sense. If not just ask any questions may have.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.