similar to: Prototype, JSON and headers

Displaying 20 results from an estimated 2000 matches similar to: "Prototype, JSON and headers"

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 Jul 19
0
ASP.NET AJAX Web Services and Prototype Version 1.5.1.1
I wanted to use a web service published with ASP.NET AJAX from Prototype Version 1.5.1.1 It''s easier to call an ASP.NET AJAX web service by using an ASP.NET AJAX page with a proxy class, but I have an application which still has many Classic ASP pages and using Prototype seemed like a better idea than hand coding the the interactions, or figuring out how to include all the right ASP.NET
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
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){
2007 Jun 04
2
Re: Ajax.Request question with JSON return
Do I need something like this: eval(''('' + this.header(''X-JSON'') + '')'') (taken from Cody Swann, http://ajaxian.com/archives/prototype-extension-dynamic-script-pattern-support ). I''m guessing my problem is simpler, and I''m leaving something small out related to the header though. Thanks for any help -Mark 1. evalJSON:
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 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
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 Feb 05
0
prototype-1.6.0.2 Newbie Why is AJAX.request fired 3 times?
Hello list! I am taking my first steps with AJAX and decided to give prototype a try. - I add a reference to the script to my page - Then somewhere near the bottom of the page I fire up: new Ajax.Request(''ws_adrestype.php'', { method:''get'', requestHeaders: {Accept: ''application/json''}, onSuccess:
2008 May 21
6
this.initialize has no properties error in Prototype Code
Hi All, I''m a super newbie with Prototype and am trying to implement my first solution using it. This is my code: var span = ''totalViews'' + video_id; var params = ''video_id='' + video_id; Ajax.Response(''trackVideo.php'', { method: ''post'', parameters: params, onSuccess: function(transport) {
2008 Aug 25
1
prototype.js Ajax is slow
So I was doing some experimenting with prototype and ajax and discovered something interesting. When I use the first ajax call the response from the server take 53ms. When I use the second on using the prototype functions the request from the server is over 200ms. My question is why, and can it be fixed? <p><a href="#" onclick="serverSideAlert();">Call
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
2006 May 25
1
prototype Ajax.Request
Hi, I''m using like this var pars = ''table=''+this.config[''table'']+''&op=update&id=''+id; new Ajax.Request( this.config[''url''], { method: ''get'', parameters: pars,
2007 Sep 27
4
transportXML returns null?
Hi, I want to load an XHTML file into DOM. I issue Ajax.Request and on success do: var response=transport.responseXML Response is null. On the other hand: var response=transport.responseText; // has the data. Why is response=transport.responseXML returns null? Here is the code: function display() { url = "http://" + location.hostname + port + "/fusion/
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
2009 Jun 14
3
Basic AJAX Response (Mootools)
Hi, I''ve done AJAX calls to Rails'' Controllers before yet never required to generate a response back to the view. In this respect, I have tried to keep it moronically simple and just add a node to see that it works, yet the response doesn''t come through / isn''t interpreted as it should. Long story short, code : // Have to use Mootools to integrate a
2005 Oct 03
0
Prototype Ajax.Request (onLoading and onSuccess) question
Hi, I am working on a page that updates a calendar via Ajax.Request when the previous (''? <http://luther.edu/new/?cur_month=2005-09>'') or next (''? <http://luther.edu/new/?cur_month=2005-11>'') month links are clicked . http://luther.edu/new/ It seems to work fine if I don''t call anything onLoading. http://luther.edu/new/noonloading.php
2008 Jan 21
4
Can't change paramName with InPlaceCollectionEditor
Hi all, I use prototype v1.5 and script.aculo.us controls v1.7.0 I did this simple code : --------------------------------------------------------------------------------------------------- new Ajax.Request("myPageSel.asp", { method: "get", parameters: {r:$el.id}, onSuccess: function(xhr) { new Ajax.InPlaceCollectionEditor($el.id, ''myPageMaj.asp'', {
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 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