Is this a valid function pointer code below,
In views ,
def change(request):
dict={}
function_ptr="create()"
dict.update({'function_ptr' : function_ptr})
return render_to_response('mpjt/create.html',context_instance=RequestContext(request,{'dict': dict}))
In create.html
$(document).ready(function() {
var a = '{{dict.function_ptr}}'
func_ptr(a);
function create()
{
alert('got respponse');
}
});
Thanks..