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

(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
Reply
#2

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

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

thanks very much
Reply
#4

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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB