How to give popup window for editing records

Permalink
I am creating a package where user can add his record. I have creating another package for displaying those record.Now i want to edit these records.How to give popup window to edit data.

amita
 
amita replied on at Permalink Reply
amita
Not geting any reply......
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Seems like you are going to a wrong direction. You shouldn't create 2 separate package for adding some records & display it. Rather you can use a single package with 2 single pages, one for add new record & another for displaying it.

Rony
amita replied on at Permalink Reply
amita
OK. But for edit i want to make a page which will open in popup only.how do i do this.If you can tell me structuring of pages in package.
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
You can see the package structure here.
http://www.concrete5.org/documentation/developers/system/packages/...

If you are going going to create a block then this how-to might help you.
http://www.concrete5.org/documentation/how-tos/developers/understan...

But I'd suggest you to use @jordanlev's great Designer Content. It will help you to understand everything.
http://www.concrete5.org/marketplace/addons/designer-content/...

Rony
amita replied on at Permalink Reply
amita
Well thanks...i got it... on click of my edit button i called method from controller by ajax and creating form for that record in controller function.and passing to view

$.ajax({
type: "POST",
data: "id=1",
url: "<?php echo str_replace("&","&",$this->action('myAction')) ?>",
success: function(j){
// do the stuff
}
});