Displaying 8 results from an estimated 8 matches for "showresponse".
2007 Mar 13
3
showResponse() Callback not being called in Firefox
Hello All ---
I am using the AJAX Object to send form data to a PHP page. In IE, I
am able to get a call back thru the showResponse(); However, in
Firefox, the callback never gets executed. Here is my code:
function showResponse()
{
alert(''Thank You. Your information has been sent'');
}
function processForm()
{
var url = "sendEmail.php";
var name = $F(''name'');
var email = $...
2006 Apr 06
4
function onComplete how to overload?
Hi all. I my apps I need to use Ajax.Request Object. One of the object options is onComplete fuction which looks like this:
funcion onComplete (originalResponse)
{
..some operations
}
I need pass to function one more parameter, how to do it? is is possible? I can''t use AJAX Updater because result of Ajax Call is uploaded to the div that I defined earlier, and in my situations I
2006 Sep 19
1
Problem using POST with IE 6
...rm) {
var url = ''/includes/ajax/test.asp'';
var pars = Form.serialize(frm);
pars = pars + ''&time='' + new Date().getTime();
var myAjax = new Ajax.Request( url, {method: ''post'', parameters: pars,
onLoading: '''', onComplete: showResponse} );
}
function showResponse (originalRequest) {
var newData = originalRequest.responseText;
$(''responseholder'').innerHTML = newData;
}
The form is as follows:
<form>
<input type="hidden" name="id" value="1">
<input type="h...
2006 Mar 07
1
Ajax.Responders- how to get responseText?
Hi All. In my site I have situation that I always want to execute some piece of code when AJAX call happen. I am using function onCreate and onComplete from tutorial:http://www.sergiopereira.com/articles/prototype.js.html
but I don''k how to manipulate Ajax responseText in this function. Does anyone know how to do it?
Gregor
----------------------------------------------------
Zagraj o
2006 Mar 03
3
xml handling
...e="nothing here" id="respuesta" />
<script type="text/javascript">
function getXML(){
var url = ''emperors.xml'';
var myAjax = new Ajax.Request(
url,
{
method: ''get'',
onComplete: showResponse
});
}
function showResponse(originalRequest){
var xml = originalRequest.responseText;
var x = xml.getElementsByTagName(''emperor'');
$(''respuesta'').value = x[0].childNodes[0].nodeName;
}
</script>
---------------------
regards
--
//
//...
2006 Feb 09
5
Ajax.Updater not populating element - please help
Hello everyone,
This is related to my post a few days ago regarding multi select
lists. I''ve rewritten the code and now can''t seem to get the
Ajax.Updater in getModels() to "execute", and the element never gets
populated.
I know it''s something obvious and hope someone could point it out to me.
Thanks for any help.
Here''s my code:
<script
2006 Mar 01
1
prototype.js ajax w/ post - how to send ''+'' character
...="prodid" onkeyup="autosearch(this)" name="prodid" />
function autosearch(element)
{ new Ajax.Request(''ajax-search.php'',
{ method: ''post'',
postBody: element.name + ''='' + escape(element.value),
onComplete: showResponse
});
return false;
}
ajax-search.php just echos (for testing right now)
$_POST[''proddes'']
''neoflex standard output -green''
This demo does the same thing if you enter something like ''+jack'' or
''jack+jill''
http://24ways.org/e...
2006 May 23
10
throttling...
Is there a way to throttle the firing of updater requests easily with
Prototype?
Thanks,
mark