Displaying 20 results from an estimated 10000 matches similar to: "RE: how to evaluate responseText as an array?"
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 Jun 27
5
Ajax - Inserting selected elements from request.responseText
After retrieving a URL using an Ajax.Request...
function onComplete (request, json) {
// request.responseText holds the entire page
Only the content contained in elementID = ''source'' is intended for display
At this time, the following code works, but it disturbingly copies the
entire page from the source URL into the target DIV
$(''target'').innerHTML =
2006 Feb 21
1
RE: [Prototype] onSuccess Event and, Ajax.Updater bug in IE
Joe,
After removing all occurrences of charset=utf-8 from
my headers I am
still getting the same bug in IE.
Currently, it''s Content-Type: text/html
Any other suggestion?
Nathan.
> Message: 2
> Date: Mon, 20 Feb 2006 09:13:57 -0500
> From: "Joe Hudson" <joe-x8g0hQFNjJhWk0Htik3J/w@public.gmane.org>
> Subject: RE: [Rails-spinoffs] [Prototype] onSuccess
Event
2005 Oct 18
4
responseText Vs responseXML
This is a newbie question.
If I have a xml file that I am opening using Ajax.Request, then the response is trapped using responseText.
Now this response is a set of xml tags, if I need to traverse through it using DOM, I am not able to use the getElementByTagName method?
If I write my own ajax function, then when I do t.responseXML.getElementByTagName(''items'') it works but
2006 Apr 10
24
Proposal of "Resizable" javascript library
Hi, All.
I''ve developed the small javascript library to make the widgets
"resizable". Please try attached file or following URL
URL: http://221.112.61.214/~kzk/others/mixi/resizer.html
Now I wish script.aculo.us developers to merge this into the
"script.aculo.us". Is there any chance of merge? Is this a right
place to ask this question?
Thanks in advance.
Kazuki
2008 Jan 30
3
Ajax.Request - nothing in responseText, I need it!!
I am at a complete loss here and I need a solution asap! Any help is
GREATLY appreciated!!! I have my request going out to a php script
that sends a query to my db and then echos the return data into html
format. this script works fine when I go to the url in a browser and
send the correct params.
However, in my ajax request, nothing gets returned?! Here is my
code...
2006 Feb 20
1
[Prototype] onSuccess Event and Ajax.Updater bug in IE
Hi all,
Is there a known bug with Ajax.Updater not working in
IE6? I''m having
trouble with a Autocompleter control that calls a
function that contains
an Ajax.Updater as an AfterUpdateElement callback. It
works fine in
firefox, but I don''t think Ajax.Updater gets called
under IE.
http://pastebin.com/563889
1.
function updater(input, item) {
2.
var
2008 May 24
5
TypeError : transport.responseText has no properties
Hello all,
I''m using prototype in conjunction with Extjs to build out an Ajax-
driven app. I''m noticing that occasionally there will be Ajax
Requests that will occasionally not complete. After some
investigation, I found that when I made a call to String#evalJSON, it
would throw a TypeError with the following message :
transport.responseText has no properties.
When this
2005 Dec 13
2
Ajax.Request onComplete
Hello,
I have a small class where i want to use attributes of the instance when an
ajax call returns, so I wrote:
*var* MyClass = Class.create();
MyClass.prototype = {
initialize: *function*(form_id, rendered_id) {
this.form_id = form_id;
*var* edit_form = $(form_id);
*var* rendered_node = $(rendered_id);
*if* (!edit_form || !rendered_node) {
this.enabled = *false*;
2006 Feb 14
5
problem with sortable lists and IE
* I sent this message previously from the wrong address so it didn''t go
through so, I apologize in advance if a duplicate shows up *
Hello, I am very new to script.aculo.us and prototype but was trying to
implement some of the cool ajax functionality with Webwork.
I have been having a little trouble with the sortable element demo. I have
the following code below:
<html>
2006 Apr 12
11
innerHTML and scripts not running
Hello,
I''m having an issue with getting embedded javascript code to actually
run when loaded via an Ajax.Request() call and the callback function
inserts the generated HTML and js code to my current page. It seems
that the javascript code is not properly parsing.
For example, I''m using the following function showinfo() to return
some html code.
function showInfo(go_url){
2006 Mar 03
3
xml handling
Hello there, im having a problem with the xml handling, i want to get and
xml node and put things in an input text but im a little lost, im using this
code, but isn''t work, what am i doing wrong?
---------------------
<a href="#" onclick="getXML()">Get XML</a>
<input type="text" value="nothing here" id="respuesta" />
2005 Oct 18
3
Ajax.Request / XmlHttpRequest details
Does anyone know a good reference for the various statuses that
XmlHttpRequest''s readyState property can have? I mean, I know what
the states are, but I''m unclear on the circumstances under which each
occurs...
In a simple test I wrote, I''m seeing the loaded, interactive and
complete states (i.e. my Ajax.Request instance calls its onLoaded,
onInteractive and
2005 Dec 07
3
update_element_function fail gracefully?
I am using the update_element_function to update the text in some
elements. This works fine, however, if I try to update an element
that is not on the page anymore, it fails silently and no further
javascript statements will be executed within that same
request.responseText. Is there a way to fail gracefully in this
scenario and ignore the missing elements?
Thanks,
Tom
2006 May 28
13
JSON not auto-evaluated
Hi,
please consider this stripped down example:
new Ajax.Request(''foo.php'', {
onSuccess: function(t, json) {
alert(json.myParam);
}
});
According to http://www.sergiopereira.com/articles/prototype.js.html, the
second param is supposed to be the evaluated json object IF the X-JSON header
is send in the response. I send the header in my script. However, the json
var
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
2008 Apr 14
2
transport.response is truncated
hi - i have a randon but recreatable problem whereby my
transport.responseText seems to get truncated. I have tried swithcing
btwn onSuccess and onComplete buit it happens on both.
As i said it''s totally random.
any ideas ?
what other info di i need to provide ?
many thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2006 Jun 28
12
Ajax.Updater
Hi,
someone can help me, I am ot able to find the way how to user
Ajax.updaterto test if the request give some positive or negative
result.
I am able only to return the result inside a div.
An example is appreciated.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Feb 06
10
Urgently Need Solution
I''m using scriptaculous'' SlideUp and SlideDown effects to animate a menu.
Specifically, I SlideUp, make some CSS changes, and SlideDown. All works
well, except that for a split second in between, the element''s display
becomes ''none'' and the other menu item jump into the space. I haven''t been
able to find any way to force an element to retain
2006 Feb 23
25
reloading fragments of pages
Hello,
I have a treeview, that works with scriptaculous in order to load the nodes
dynamically.
I also have in the main part of the page, a table with the list of elements.
The lists of elements can be drag-dropped on the treeview in order to move
them around
(they are also draggable on other parts of the page)
I need though, to refresh the treeview to reflect changes when a folder was
moved