search for: myajax

Displaying 20 results from an estimated 26 matches for "myajax".

Did you mean: ajax
2006 May 25
13
functions calling functions
...ed tries to call function2 but function2 does not execute. Any ideas or workarounds? thanks Kevin o = Class.create(); o.prototype = { initialize: function() { this.fetchAjaxData(); }, fetchAjaxData: function(){ url="ajax/minimap.php"; pars="x=1&y=1"; var myAjax= new Ajax.Request( url, { method: ''get'', parameters: pars, onComplete: this.ajaxFetched }); }, ajaxFetched: function(){ alert(''ajaxFetched called''); this.function2(); }, function2: function(){ alert(''function2 called...
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
2005 Dec 13
2
Ajax.Request onComplete
...on value* this.form_action = edit_form.action; this.edit_form = edit_form; this.rendered_node = rendered_node; this.enabled = *true*; } }, sendForm: *function*() { *// let''s serialize the content of the form* *// and send it to the server* *var* myAjax = *new* Ajax.Request(this.form_action, { parameters: Form.serialize(this.edit_form), onComplete: this.sendFormCompleted}); }, sendFormCompleted: *function*(originalRequest) { *var* result = originalRequest.responseText; *// we need to replace the form with the result*...
2007 Mar 13
3
showResponse() Callback not being called in Firefox
...9;email''); var phone = $F(''phone''); var comments = $F(''comments''); var pars = ''name=''+ name + ''&email='' + email + ''&phone='' + phone + ''&comments='' + comments; var myAjax = new Ajax.Request(url, {method: ''post'', parameters: pars, onComplete: showResponse}); return false; } Any ideas as to why showResponse() is not being called in Firefox? Thanks for any and all replies. --~--~---------~--~----~------------~-------~--~----~ You received this me...
2007 Feb 15
2
ajax.request not working in ie7
...equest fine in firefox but it never gets sent in ie7 (im using iewatch). here''s my code: var headers = [''Man'', ''POST http://'' + location.host + ''/something HTTP/1.1'',''MessageType'',''CALL'' ]; var myAjax = new Ajax.Request( url, { requestHeaders: headers ,contentType: ''text/xml'', method: ''post'', postBody: myString, onComplete: parseResponse }); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Googl...
2005 Oct 11
5
show message while loading - ajax
...ybody please tell me how I would show a message or an image while the ajax request gets processed? thank you in advance for your help. this is what I came up with but it doesn''t really work: function getHTML() { var url = "./scripts/rfiles.php"; var par = ""; var myAjax = new Ajax.Updater("fm-viewdetails", url, {method: ''get'', onFailure: reportError, onLoading: showLoading, onSuccess: hideLoading}); } function reportError() { alert(''an error has occured''); } function showLoading() { $("fm-viewstatus").sty...
2007 Feb 19
0
Ajax.Update nested within Ajax.Request
...sponse text"; //alert("Success! \n\n" + response); var url = ''tempCaptureData.php?projectID=<?=$_GET[''projectID'']? >&docID=<?=$_GET[''docID'']?>''; var div = document.formCapture; //alert(div.innerHTML); var myAjax = new Ajax.Updater(div, url, {method:''get'',parameters:pars}); alert(myAjax); }, onFailure: function(){ alert(''Something went wrong...'') }, }); } --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to t...
2006 Sep 19
1
Problem using POST with IE 6
...tial volume of text, a GET is not realistic. In Firefox, GETs and POSTs work as expected. Here is my code. function sendData (frm) { 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 fo...
2008 Jun 04
1
new to prototype : Ajax.Updater
...;none''; } function greet() { var url = ''greeting.php''; var pars = ''greeting- name=''+escape(document.getElementById(''greeting-name'').value); alert(pars); var target = ''greeting''; var myAjax = new Ajax.Updater(target, url, {method: ''get'', parameters: pars}); } </script> </head> <body onload = "init()"> <form method="get" action="greeting.php" id="greeting-form"> <div> &...
2007 Jun 09
23
hoverclass on droppable zone
Hi guys, I''m trying to make a drag''n''drop portal using sortable element. I would like to apply the "hoverclass" option only on the droppable zone instead of the column border. Any idea a about the solution? Thanks for any help, Sabri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2006 Jan 10
5
using dynamic element ids with visual_effect
Mike and I demo an Ajaxified version of the Depot application in the Rails Studio. Part of the demo is a cart in the sidebar which updates when you add a product to it. As well as updating the div, it also highlights the most recently added link item. Right now, we do it with: <script language="JavaScript"> function flash_cart(request) { var id =
2005 Oct 27
5
Problem passing event object
...RequiredField.prototype = { initialize: function(chkbox) { this.chkbox = chkbox; this.chkbox.onclick = this.switchRequired.bindAsEventListener(this); }, switchRequired: function(evt) { this.evt = evt; // Set the event to a property alert(this.evt); var params = $F(this.chkbox); var myAjax = new Ajax.Request(''server/checkRequired.html'', {method: ''get'', parameters: params, onSuccess: this.switchPrompt ,onFailure: this.dontCheck} }, switchPrompt: function() { alert(this.evt); // Try to pick up the this.evt var, but it comes bakc as undefined },...
2007 Nov 13
0
Ajax.Updater evalScripts:true
...clude <script> code in div container. function ajaxUriDivJava(url, z) { try{$(z).innerHTML="<centrer><img src=''http:// static.mymir.org/wait30trans.gif''></centrer>";}catch(e){} var pars = ''''; var myAjax = new Ajax.Updater( {success: z}, url, { method: ''get'', parameters: pars, onFailure: reportError, evalScripts:true }); return false; } page: ========== <script> MyJavascript </script> HTML CODE ========== Result: ========== HTML CODE ========== Any id...
2008 Apr 21
1
Ajax.request - SOAPAction
If I build my own XMLHttpRequest, I can do the following: this.xmlHttp.setRequestHeader("SOAPAction", ''updateClient''); How can I do the same with AjaxRequest()? var myAjax = new Ajax.Request( this.service, { method:''post'', postBody:soapXML, contentType:''text/xml'', encoding:''UTF-8'', SOAPAction:''updateClient'...
2006 Jun 30
0
sync reads or big files problem
...leted iterations var starttime = 0; // time the current iteration started var endtime = 0; //time the current iteration ended function starttest() { //main function var time = new Date(); starttime = time.getTime(); //get starting time of this iteration var myAjax = new Ajax.Request(''getfile.php'',{method: ''post'', parameters: '''', onComplete: putresponse}); /*request for data without parameters*/} function putresponse(response) { var time = new Date(); endtime = time.getTime(); //get...
2006 May 30
0
Ajax.Updater problem in IE
Hello All, Anybody can give me an advice why following code works in Firefox + Safari but not in IE? function load_mails(div_id){ $(div_id).toggle(); //hide or show var pars = ''id='' + div_id; var myAjax = new Ajax.Updater( div_id, ''../library/partials/load_messages.aspx'', { method: ''get'', parameters: pars }); return false; } Thanks in advance Gokhan __________________________________________________ Do You Yahoo!? Tired of spam?...
2005 Oct 03
0
Prototype Ajax.Request (onLoading and onSuccess) question
...condition? I guess I am assuming that onLoading will always be called and finish before onSuccess. Here is some of the relevant code: var myxa = { [...] ajaxUpdate: function(month) { var url = ''/new/myxaajax.php''; var pars = ''cur_month='' + month; var myAjax = new Ajax.Request(url, {method:''get'', parameters: pars, onLoading: myxa.onLoading,...
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
...------- <a href="#" onclick="getXML()">Get XML</a> <input type="text" value="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''); $(...
2006 Nov 01
3
Viewing returned header
I am trying to view a particular header from the request object when using Ajax.Updater var myAjax = new Ajax.Updater(''item'', url, {method: get, onFailure: failed}); function failed(request) { alert(request.header(''My-Header'')); } That doesn''t work even though the documentation seems to indicate it should. If I put an alert inside the header(nam...