Is there an article discussing this issue?
it's difficult to load a script without environment...
But it's always possible to load dynamically a script like on this page...
With Ajax, we throw generally a callback function with the return of the answer. See, for examples, this pages...
Thanks, 007Julien. Your references are interesting. I am trying to use it to solve my repeat ajax call issue.
I may need to give you some context to understand the issue:
It's always possible to remove a script (see the link at the bottom of the preceding page). See too this page and the links at the bottom about ajax.
Then it is only advisable to distinguish the main script (who has to contain all the features of menu and ajax call) of those specific which have to be separately (but together) loaded with the contents
Placing scripts in the head makes sure that any functions are loaded before the buttons, links or other things that call them are loaded...
On the other hand, if you put your scripts at the end of the body, the document objects exist when the script is executed and you have not to insert your opening actions in a event window.onload...
Many other considerations can enter in account, it depend finally essentially on what makes the script !
Last edited by 007Julien; 06-15-2012 at 08:41 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)