View Full Version : Reload Dynamically an Extjs Script...

3 Aug 2009, 12:50 AM
My question is simple :

In my PHP page, i load two Extjs script : a.js and b.js.
In this PHP page, i have a global js variable : a year.

a.js contains a grid which take his columnsmodels in b.js

At a moment, i have to reload b.js with a different year which is changing in a.js.

Is there a way to unload and then reload b.js with this new parameter (another year) ?

If no, i think that's the solution would be reload the whole PHP page with this new parameter. I guess i can a sort of POST method ? Can you tell me how can i post a value to a PHP page with Extjs ?

Thanks in advance for any help. ~o)

5 Aug 2009, 3:11 AM
you can do it two ways, add a script tag to your document body or perform an XHR and eval the results