Skip to content Skip to sidebar Skip to footer

How To Reload A Dynamic Content Using Script

I have an page which contains dynamic data, I'm trying to reload particular

only. HTML

My script is someth

Solution 1:

Following shows how to add a new script tag to with the script to reload

<scriptlanguage="text/javascript">functionload_js()
   {
      var head= document.getElementsByTagName('head')[0];
      var script= document.createElement('script');
      script.type= 'text/javascript';
      script.src= 'source_file.js';
      head.appendChild(script);
   }
   load_js();
</script>

The main point is inserting a new script tag -- you can remove the old one without consequence. You may need to add a timestamp to the query string if you have caching issues.

Post a Comment for "How To Reload A Dynamic Content Using Script"