search for: json_encod

Displaying 5 results from an estimated 5 matches for "json_encod".

Did you mean: json_encode
2008 Aug 10
1
Prototype, JSON and headers
...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 Leopard Server 10.5.4, PHP 5.2.5 by entropy.ch, Apache 2.2 Apple''s default) after trying different approaches, I finally got JSON to work using this: <?php $json = json_encode($status); header(''X-JSON:(''.$json.'')''); ?> and my javascript to handle the JSON response: onSuccess: function(transport,json) { Beautiful, works great, on my Mac at least When I upload this to the server, it doesn''t work. I don''t know wha...
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 Dec 22
1
Ajax.Updater and JavaScript functions
...I call the Ajax.Updater again then the javascript in the second call does not seem to "refresh" that in the first call. The Javascript has something along the lines of : <script type="text/javascript"> splitInfo = function(splitNumber) { var splitJSON = <? echo json_encode($m_array); ?>; var latlng1 = new GLatLng(splitJSON.data[splitNumber].start_lat, splitJSON.data[splitNumber].start_lon); var latlng2 = new GLatLng(splitJSON.data[splitNumber].fin_lat, splitJSON.data[splitNumber].fin_lon); addSplitMarker(latlng1,latlng2); } </script> As you...
2008 Oct 13
10
Shibboleth
Can anyone direct me to a really good tutorial on Shibboleth integration with Rails, or indeed some sample code? I''ve been tearing my hair out all day on this one. Thanks RobL --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and turn it into an associative array? Basically it would take something like this: <body> <item> <id>1</id> <name>Bob</name> </item> <item> <id>2</id> <name>John</name> </item> </body> And turn it into something like this: {