I am using codeigniter to build a web app. I am having some problems with the following scenario.
- The user clicks on submit button on ‘home’
- He is redirected to
home/okwhere I retrieve his info - from
home/okhe is redirected back tohome#final
But the thing is, final is hidden by default and it is not displaying. I have a JavaScript function that toggles final and it is displayed.
Is there anyway I can make the ok function redirect to the JavaScript function? I cannot add it on body onload since I don’t want the success message to appear beforehand.
How about doing something like:
To set the default display style based on which way the page is displayed.
You could also look in to
Flash datain theSession class, see. http://codeigniter.com/user_guide/libraries/sessions.html which I think is used for what I think you want to achieve