Displaying 20 results from an estimated 1000 matches similar to: "TypeError : transport.responseText has no properties"
2008 Jun 26
7
Strange readyStates in prototype Ajax
Hi,
I''ve never posted here before so please forgive me if I''m not
observing proper decorum, yadda yadda yadda :-)
I''ve ran into a very, very strange bug with Prototype I wanted to
share and see if anyone else has seen this. In a few of my projects
involving Ext JS, I''m using the TreePanel control, which uses AJAX to
load child nodes asynchronously. Because I
2008 Aug 10
1
Prototype, JSON and headers
Hi everyone.
I love JSON and using Prototype has help me reduce the code to handle
AJAX responses.
But one thing keeps me confused and sometimes even frustrated.
I don''t really understand what is going on with the headers, so if
someone could take some time to explain what is going on, I (and
probably a lot more people) would be very thankful.
The thing is this. On my local server (Mac OS
2008 Jun 20
5
About prototype.js and xml dom
Hello,
I''m looking for a cross-browsers library based on prototype.js that
wraps XML dom.
I tried to extend XML dom elements by using Object.extend and
Element.extend without success.
It works fine with firefox (Object.extend) but don''t work with IE
(msxml).
I suppose that IE objects are not ''prototype based'' objects.
Is there a way to go around this issue like
2008 Feb 09
1
problem using evalJSON with Ajax
Hi, all
I am trying to use evalJSON with Ajax, but somehow it doesn''t work.
for instance, I have a php file has the following output:
"name": "Violet", "occupation": "character"
and I have a html file with the following javascript:
new Ajax.Request(''/some_url'', { method:''get'', onSuccess:
2007 Aug 07
2
"badly formed JSON" exception
I tried to implement the "Rendering JSON in actions" example from
http://wiki.rubyonrails.com/rails/pages/HowtoGenerateJSON :
@headers["Content-Type"] = "text/plain; charset=utf-8"
data = { :foo => ''bar'', :etc => ''rez'' }
render :text => data.to_json
When I try to decode this in javascript with
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
2008 Jun 04
9
How to achieve the 'multi' fade effect that is used by Apple computer?
Hi all!
My first post here, so: be gentle ;-)
I have been playing around with the scriptaculous library for a while
now, and I must admit it is great. However, there is one thing that
I''m notable to achieve:
On Apple computers website for ilife (iphoto) http://www.apple.com/ilife/iphoto/
there is a verrrryyy nice fade effect going on when you click the
navigation for ''new in
2007 Sep 28
1
evalJSON problem
Hey there,
I have a FCKeditor(a WYSIWYG online html editor) and i want to bring
it to a page by Ajax and JSON by a php request-catcher.
I have sth like this in my ajax request:
new Ajax.Request(''myactions.php'',
{
method:''get'',
parameters: {action:''bringeditor'', id:<?php echo $uid; ?>},
onSuccess: function(transport){
2008 May 29
4
Drag/Drop finding droppable's properties?
Hi All,
I am trying to develop a dynamic form creator application, whereby we
can drag objects from a "palette" and drop them onto a "form" to build
the design of our form.
To achieve this, when I have dragged the object, and dropped it onto
the "form" area, I want to get the position of where the object was
dropped.
I have a droppable area:
2007 Sep 21
1
Weird data from evalJSON
I am trying to have prototype perform a request and return to me a
javascript object representing the json string returned by the
request. I want to iterate over the contents to print each object in
the json string. The value of transport.reponseText in onSuccess is
what I would expect. But once I try to perform evalJSON() on this
text it gives me a bunch of extra function()s when i try to
2006 Apr 18
2
RE: how to evaluate responseText as an array?
getSelectedGridData()[getSelectedRow()] = eval(response.responseText);
I believe that will work.
Greg
________________________________
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Joe
Hudson
Sent: Tuesday, April 18, 2006 12:56 PM
To:
2007 Jun 16
3
Help with effect queue.
I have an interesting challenge for you. I am using both Scriptaculous
and Prototype on a web site (not using Ruby) and I am trying to queue
effects and updates. Here is the situation - I have a page with
editable blocks, when the user clicks on the edit button under the
box, I want it to:
1) Use Ajax to go out and get the code to build the editor form.
2) When it has the form, use Effect.BlindUp
2008 Feb 10
3
Ajax.Request evalJSON document.write hangs
I''m not the best when it comes to javascript so this is probably a
simple mistake. I''m using the following code to read an external json
file and print out its values. The problem is when I try to write the
value to the browser it causes the browser to load like it hasn''t
finished the javascript code. Its writing the value to the screen so I
think its hanging after that
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
2008 Jun 12
10
Ajax.Updater not working in IE, tried everything
hi,
i am basically using a button, Prototype/AJAX, and PHP to update a
user''s location. something simple as typing ''Chicago, IL''. After the
script, it rewrites the result in a div tag.
here is the form i''m using:
<div id="hometown_result">Aurora, IL</div>
<form action="" method="post"
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 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
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...
2008 Feb 25
1
string to hash
how do i turn a string into a hash? why does this not work???
var test = "{ test: ''dfgj''}";
console.log($H(test).inspect())
half the prototype source code get inside the hash it makes???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to
2005 Sep 25
14
script.aculo.us 1.5 release candidate 1
So, the first script.aculo.us 1.5 release candidate is out!
Important changes and fixes from 1.5_pre4 (for a detailed list, see
the CHANGELOG file):
* Droppables w/greedy and hoverclass are now reverted when dragged
item is no longer over them, fixes #2184
* Let Effect.Highlight correctly parse IE colors, add
String.prototype.parseColor() for this, fixes #2037
* Make scriptaculous.js work