Hywel Jenkins said the following on 11/18/2005 12:47 PM:
[color=blue]
> In article <1132334912.273288.263960@g43g2000cwa.googlegroups .com>,
>
titogarcia@gmail.com says...
>[color=green]
>>I want to execute server code invoked from inside Javascript code.
>>
>>I will have my server code in a servlet, callable with a URL, but how
>>do I invoke the servlet from Javascript without reloading the page and
>>not opening any window? I mean, I don't want to display the HTML result
>>of this request.[/color]
>
>
> Ajax.
>[/color]
Why not something that is 100% compatible with any scriptable browser?
document.images['someImage'].src="serverSideScriptToExecute.PHP";
Now, no need to depend on ActiveX or native HTTPRequest support, only
images collection and scripting.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/