How can I pass the data from a contr开发者_如何学编程oller to a view page thats been loaded via iframe in CodeIgniter?
Your iframe src should be the controller function just like u accessing a seperate page
You can also use postmessage.js to manage communication between iframes and host pages. There are both the original jquery-based version and a stand-alone version.
mmm I think what you should do if you want to use an Iframe, is to refresh the page via ajax, sending the values trough the url.
Altough if you are using ajax to refresh, you should do the display of your information with this method as well, instead of the IFRAME.
In any case you could use jquery to refresh your iframe.
you could access the iframe like this:
$(window.frames['my-iframe'].document)
If you could implement a full jquery solution, instead of this iframe method, It will make your life easier.
精彩评论