How can I make a simple script that will use AJAX technology to download another JavaScript or PHP file and "execute" it, and will work in all browsers?
For the base ajax stuff, try checking out http://www.cemetech.net/scripts/saxjax.js
as well as the source to this page Wink_
Is it better to use GET or POST, or does it not really matter?
It's probably easier to use GET for short amounts of data, or POST if you have larger chunks of stuff you're throwing around.
POST is good for downloading entire .js files like you seem to want to do...
elfprince13 wrote:
POST is good for downloading entire .js files like you seem to want to do...


Not at all. POST and GET only differ in they way they SEND data, not in the way the RECEIVE it. POST passes data along in the HTTP request, whereas GET does not. That is the sole difference. So unless you are sending information (such as an HTML form), just use GET
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement