I was not very clear. I want to interact with this from VFP code in a methid:
http://prototype-window.xilinus.com/samples.html
Not sure what you define as 'Ajax call'
'dialoag.alert(params)' could be a javaScript alert, probably not an Ajax call
Ajax calls are from client to server; you can use prototype's Ajax object
http://api.prototypejs.org/ajax/Ajax/
Can I use the ajax object FiC creates frm within my VFP code to make an ajax call?
For example pseudocode:
if myvar = 33
awajax(dialoag.alert(params))
endif