I just wanted to implement a pop-up form interface which is basically
a front-end for an action call implemented in perl catalyst. The
action stub is working fine with two parameter; id and id_type (e.g. /
search/by_id?id=xx&id_type=yy).
It seems the back-end script is working fine (based on the debugging
message), but the problem is that I could not get the result back to
the screen. The modal screen is hanging and the screen is the same
even though I close the modal dialogue.
Any idea?
The script looks like below:
----
pdbBoxy = new Boxy(boxy_content, {
title: "Search by PDB",
draggable: false,
modal: true,
behaviours: function(c) {
c.find('#pdb_form').submit(function() {
Boxy.get(this).setContent("<div><p>Searching.........</p></div>");
// submit form by ajax using post and send 1
values: id
$.post("/search/by_ids",
{ id_type:"pdb",id:c.find("input[name='id']").val() });
return false;
}); // end of .submit
} //end of behaviours
});
return false;
----
Cheers,
Sung