Author: olamy
Date: Sat Jul  7 14:44:28 2012
New Revision: 1358579

URL: http://svn.apache.org/viewvc?rev=1358579&view=rev
Log:
use json3 from a cdn

Modified:
    
incubator/directmemory/trunk/examples/server-example/src/main/webapp/index.html
    
incubator/directmemory/trunk/examples/server-example/src/main/webapp/js/sample.js

Modified: 
incubator/directmemory/trunk/examples/server-example/src/main/webapp/index.html
URL: 
http://svn.apache.org/viewvc/incubator/directmemory/trunk/examples/server-example/src/main/webapp/index.html?rev=1358579&r1=1358578&r2=1358579&view=diff
==============================================================================
--- 
incubator/directmemory/trunk/examples/server-example/src/main/webapp/index.html 
(original)
+++ 
incubator/directmemory/trunk/examples/server-example/src/main/webapp/index.html 
Sat Jul  7 14:44:28 2012
@@ -24,7 +24,7 @@
   <script type="text/javascript" 
src="http://code.jquery.com/jquery-1.7.2.min.js";></script>
   <script type="text/javascript" 
src="http://current.bootstrapcdn.com/bootstrap-v204/js/bootstrap.js";></script>
   <script type="text/javascript" src="js/sample.js"></script>
-  <script type="text/javascript" src="js/jquery.json-2.3.js"></script>
+  <script type="text/javascript" 
src="http://cdnjs.cloudflare.com/ajax/libs/json3/3.2.2/json3.min.js";></script>
   <script type="text/javascript" 
src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.js";></script>
   <title>Apache DirectMemory Sample</title>
 

Modified: 
incubator/directmemory/trunk/examples/server-example/src/main/webapp/js/sample.js
URL: 
http://svn.apache.org/viewvc/incubator/directmemory/trunk/examples/server-example/src/main/webapp/js/sample.js?rev=1358579&r1=1358578&r2=1358579&view=diff
==============================================================================
--- 
incubator/directmemory/trunk/examples/server-example/src/main/webapp/js/sample.js
 (original)
+++ 
incubator/directmemory/trunk/examples/server-example/src/main/webapp/js/sample.js
 Sat Jul  7 14:44:28 2012
@@ -48,7 +48,7 @@ $(function() {
   putObjectInCache=function(key,javascriptBean,expiresIn,serializer){
     $.ajax({
       url: 'cache/'+encodeURIComponent(key),
-      data:$.toJSON( javascriptBean ),
+      data:JSON.stringify( javascriptBean ),
       cache: false,
       type: 'PUT',
       
headers:{'X-DirectMemory-ExpiresIn':expiresIn,'X-DirectMemory-Serializer':serializer},


Reply via email to