how to reflect changes on browser done using javascript
-
i tried to append or remove node from body section to Head section. whend i see in javascript it is working fine. but at last when page render on browser it does not reflect the changes done on page on browser. even i see the source code it still show the original Html in page. below is my code. document.getElementById('pop').removeChild(newNode); document.getElementById('pop').appendChild(newnode); Mahendra
-
i tried to append or remove node from body section to Head section. whend i see in javascript it is working fine. but at last when page render on browser it does not reflect the changes done on page on browser. even i see the source code it still show the original Html in page. below is my code. document.getElementById('pop').removeChild(newNode); document.getElementById('pop').appendChild(newnode); Mahendra
The only information that is sent to the server on a postback is the values in the form fields. The entire page is not sent back to the server, so the server code have no idea that you have added or removed elements in the page. On a postback, the entire page is created from scratch. If you want the server code to do the same changes as you did in the client script, you have to send some information back to the server that it can use to determine what elements should be on the page.
--- single minded; short sighted; long gone;
-
The only information that is sent to the server on a postback is the values in the form fields. The entire page is not sent back to the server, so the server code have no idea that you have added or removed elements in the page. On a postback, the entire page is created from scratch. If you want the server code to do the same changes as you did in the client script, you have to send some information back to the server that it can use to determine what elements should be on the page.
--- single minded; short sighted; long gone;
-
actually i am calling a javascript method on body onload which is client site. and i written the code in javascript method after page render. actualli i debug the javascript