My JavaScript/JQuery programming is weak and I'm not sure how to
explain the issue I'm having, but here goes...

I have a simple template for editing and saving changes to a Mapper
object:

 def edit(item: ModelType) =
      <form>
                {item.toForm(Full("Save"), { _.save })}
      </form>

When I use a snippet to display the template on my page, the Save
submit button works fine. However,
when I grap the template from JavaScript on the client, using a
function like:

$('#show-form').load('/http:localhost:8080/getform');

the Save button doesn't work. Changes made on the form don't get
saved. Here, the URL in load is intercepted
in a dispatch rule that simply calls a function that gets the Mapper
object from the DB and returns the template in a LiftResponse, like
so:

Full(CreatedResponse(edit(foundItem), "text/xml"))

Is the problem with JavaScript in this case or is there something in
the dispatch rule that I'm failing to do?

Any thoughts would be appreciated.

Glenn

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to