Welcome Guest, Not a member yet? Register   Sign In
back button/link
#3

[eluser]crwtrue[/eluser]
thx for reply. Yes that what i want to do but i dont want to open more popup windows. I also got the idea that i could store the form values in a session and add if/else to the controller form function so then i dont need to use hidden fieds and the back link also only need the name of the control and function not those values. Would that be a better way to make that happen?


Also regarding to popups in codeigniter there is a function for that anchor_popup() but no function for closing popup window. So now i am doing like this in one of my program:

-mainwindow has an table with data where you can open a popup if you want to update the data in mainwindow
-popup window has a form(view1)
-user fills that and submits the form
-function that handels that form have an if/else to check if the form is submitted
-function to update is called and after the update same function writes to session array what was updated
-then i call view2 that only has javascript to close the popup and refres the mainwindow

I do this cause thats seem the only way to get the main window to refresh and to get the updated data written in to a session array.


Messages In This Thread
back button/link - by El Forum - 07-27-2009, 02:56 PM
back button/link - by El Forum - 07-27-2009, 04:43 PM
back button/link - by El Forum - 07-28-2009, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB