Posted by gibbo1715 on January 1, 2013 at 7:02pm
HI all and a happy new year to you :)
I am trying to get some data working with jquerymobile and services which is now mostly working but cant figure out how to get the content of the body (Drupal 6), can anyone assist me please
case 'node':
var nid = document.location.hash.split('?nid=')[1];
$.get('/services/rest/node/'+nid+'.json', function(node){
$('#'+page+' header h1').text(node.title);
$('#'+page+' article').html(node.body);
$.mobile.hidePageLoadingMsg();
$('#'+page+'').trigger('create');
$('#'+page+' article').show();
});
break;Many Thanks
Gibbo