similar to: problem using evalJSON with Ajax

Displaying 20 results from an estimated 1000 matches similar to: "problem using evalJSON with Ajax"

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 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
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
2007 Dec 20
1
evalJSON() problem
Hey! When i try to parse the following Variable with evalJSON() i geht an error "Badly formed JSON String" var string = ''{nodes[{id:"s1",type:"seminar",title:"Seminar 1",nodes: [{id:"c1",type:"course",title:"Kurs 1"}]},{id:"c2",type: "course",title: "Kurs 2"}]};''; why? regards
2009 Jul 05
2
JSON data not decoded in Rails
Hello all, I''m trying to send some json data from the browser to the server using prototype without success. On the server side ActiveSupport::JSON.decode isn''t decoding the data. Here is the code: Javacript: <a href="#" onclick=''send();return false;''>click</a> <script> function send() { var send_data_url =
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
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:
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
2009 Oct 10
1
auto.key legend color different from actual plot
Dear All, I have created a barchart, but the legend created by auto.key does not match the actual graph. Can someone give me some hint here? For example, my coding are: Library(lattice) dataset.table <- table(data.frame(id=c("a","b","c","a","c","b","a"),colour=c("blue","green","
2007 Oct 22
2
Strange scroll behavior of Auto Complete inside Active Scaffold.
Hi Everyone. After a long weekend of testing some stuff out I finally got the auto suggest working. I have got a problem however in both IE and Firefox as the drop down scrolls the page down to the element only when the up arrow is pressed. Here is a detailed example. When I have <%= text_field_with_auto_complete :product, :colour %> in my product _form.rhtml override... ... and in my
2006 May 21
6
Is there a way to call helper methods in a controller?
Hi, Is there a way to call helper methods in a controller? I want to do something like this in my controller Class MyController < Action.... def my_method string = link_to "some_url", :controller => "home", :action => "command" end end link_to is an ActionView helper method and it seems that I couldn''t access the method in the controller
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
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
2013 Jan 07
1
posting a question in the R-help forum
Hello, I wanted to post this question below, on the R-help forum, but I'm not sure I succeeded because it said that I wasn't subscribed to the mailing list yet. Now I am subscribed, but will my question be accepted now automatically, or should I submit it again? Thanks in advance, Violet Swakman Hello everyone, I'm having trouble understanding my output from a linear mixed effects
2000 May 07
2
OPENSSH and Red Hat
Hi All We use Red Hat Linux 6.0 First we download openssh-1.2.3.tgz them we decompress the file. First we was unable to find the install instructions. We find it on violet.ibs.com.au them we was unable to find the ./configure file that its mention on the INSTALL instructions. And if we tried to run make we receive: Makefile:3: *** missing separator. Stop. How the tgz does not work for us we
2013 Jun 09
2
Minitest mock or stub methods
Hi I''m building a small library to use in my Rails app which interacts with a 3rd party API. It fetches artists and tracks. So I have: lib/my_lib.rb lib/my_lib/artist.rb lib/my_lib/track.rb To get an artist I do artist = MyLib::Artist.find("Oasis") Which returns an instance of Artist if it finds (via 3rd party API) it or nil otherwise. Then I can call artist.tracks which
2023 Feb 21
1
MFA variables graph, filtered by separate.analyses
Hi! Apologies if this is not the correct place to ask. I am attempting a MFA analysis of a dataset based on wine chemical and sensory analysis, based on the STHDA tutorial [1]. (I am using this dataset here too, as an example dataset to work on without posting my actual data. I've tried this with both my data and the example data, with the exact same results.) The only issue I am having is
2012 Mar 26
1
Could not prefetch package provider 'freebsd': No resource and no name in property hash in freebsd instance
Hi, I am puzzled. I installed exim-mysql on a freebsd machine without problem before but now this manifest creates an error: class exim::install { package { [ ''mail/exim-mysql'' ]: ensure => installed, provider => freebsd, source => ''http://<some_url>'', } } Here is the error: err: Could not prefetch package provider
2016 Apr 13
2
Warning: Global setting won't change the setting inside an earlier filter
Hi, I'm using the Dovecot Prebuilt Binary: deb http://xi.rename-it.nl/debian/ stable-auto/dovecot-2.2 main I configured multiple SSL certificates with client TLS SNI (see http://wiki2.dovecot.org/SSL/DovecotConfiguration). Since my last update I get some warnings: doveconf: Warning: /etc/dovecot/conf.d/10-ssl.conf line 12: Global setting ssl_cert won't change the setting inside an
2000 Jan 17
5
AANOUNCE: openssh-1.2.1pre27
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A couple of silly errors, and one dangerous bug were in the pre26 release. This release corrects them. http://violet.ibs.com.au/openssh/files/openssh-1.2.1pre27.tar.gz If you want RPMs or any of the other files, please use a mirror: http://violet.ibs.com.au/openssh/files/MIRRORS.html Changes: - Using __snprintf is *NOT SAFE* on old Solaris.