i want to write a simple Hello World program which shows Hello World when i click on some button using AJAX but without java script or jquery...i have searched alot but didnt found anything up to date...can anyone help me?? im using struts 2.1.x so many things which programmers normally use like DOJO will not work in it...
A:
It is not possible to write an AJAX application without using a scripting language of some type. HTML is not a scripting language, so you will need some other technology to actually create the AJAX request.
If you are really determined to use another scripting language, it is possible to use AJAX with VBScript - But PLEASE think about your users first. VBScript only works on IE, and using it will really minimise your user-base.
For more information on how to use AJAX with VBScript, see this. For those too lazy to look it up, the basic code required to implement AJAX in VBScript requires you to create the object, after which you can use it in a similar way to the way you do in Javascript (barring the syntax differences, of course):
Set http = createObject("microsoft.xmlhttp")
http.open "GET","http://toolbarqueries.google.com/search?client=navclient-auto&ch=" & CalculateChecksum(URL) & "&iqrn=d-s&orig=0J&ie=UTF-8&oe=UTF-8&features=Rank&q=info:" & Escape(URL),false
http.send
a_m0d
2009-07-20 05:36:20