Hi Scott,
aftet put the json.dump(),
function get_content(reference_entity){
ajax_url = "/content/" + reference_entity
jQuery.ajax({
type: "POST",
url: ajax_url,
success: function(data) {
if (data){
alert(data);
* // return: {"descricao_completa":
"F\u00eanix Artes Gr\u00e1ficas - Convites, impressos e impress\u00e3o
digital em Canoas/RS", "conteudo": "<h1>Convites</h1>", "palavras_chaves":
"portif\u00f3lio, produtos", "titulo": "Convites"}*
alert(data.conteudo); *// return undefined*
alert(data['conteudo']); *// return
undefined*
obj_return=document.getElementById('conteudo_panel');
obj_return.innerHTML=data;
}
},
error: function(e, a) {
obj_return=document.getElementById('conteudo_panel');
obj_return.innerHTML="Failure! " + e + " " + a;
}
});
}
* where is my wrong ?*
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.