Hi everyone,
                   
                     In the code below , am trying to saving a variable 
which is received from the URL and is trying to use the same to service an 
ajax call via "send_lead" . I been failing in this , but noticed that I was 
to remove "response.view" then it works

ANy ideas?


def update_lead():
    response.view = 'Final/leads/updatelead.html'
    session.updatelead = request.args(0)
    return locals()

def send_lead():
    lead = db.lead(session.updatelead)
    return response.json(lead)


-- 



Reply via email to