Welcome Guest, Not a member yet? Register   Sign In
how to pass data to modal form?

(This post was last modified: 04-10-2015, 05:45 PM by pompeu.)

hi guys,

how to pass data to modal form? I have a page that shows all the data of a customer table , view only one client this table in my modal form ?

Ps. i no wanted to used jquery or javascript, has the ?

Thanks very much

i think you can send some ids in query string ( like site/modal/id ) and load and show proper data in it.
CI is nice Heart

right , I'll try , I found a tutorial about it and I'm reading the CI documentation

thanks very much

Generally, you would use JavaScript to send an AJAX request to your controller to retrieve the data for the item you want displayed in the modal, then populate the modal and display it.

If you don't want to use JavaScript, you would just submit the request and load the page with the modal populated and displayed, but, at that point, there's little benefit to using a modal to display the data.

Theme © iAndrew 2016 - Forum software by © MyBB