1

Possible Duplicate:
How to free memory after an Ajax request

I want to load different pages using AJAX but that pages have script into it, so when I load a page and show to the client, the script will run and then when I load other page, the script will remain and still active. How can I solve that by removing the script to free memory?

Example:

I have a page with this javascript function:

function detailTableInputFocus(id) { var DIV = document.getElementById('detail').getElementsByTagName('DIV')[0], input = document.getElementById(id); DIV.scrollTop = DIV.scrollHeight; input.select(); input.focus(); }; 

When I load other page, I can call detailTableInputFocus with javascript and with Google Chrome I noticed that the used memory are increasing.

Sorry for my English.

2
  • Can we have a some more information aobut what kind of pages your loading, what scripts are you running? how are you noticing the memory using? can we see the javascript you are using to load the pages? Commented Nov 25, 2011 at 19:06
  • @Patricia I'm creating a WebApp for billing in Chile, the app have a header with navigation bar and I'm handling onclick event for every link (<a>), but every page is static page and every page do action with javascript, example see my edit question. Commented Nov 25, 2011 at 19:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.