CodeIgniter Forums
Show alert message on load view - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Show alert message on load view (/showthread.php?tid=55854)

Pages: 1 2


Show alert message on load view - El Forum - 11-13-2012

[eluser]LuckyFella73[/eluser]
Maybe half offtopic but I would prefer to display
a message using a DIV tag styled nicely. I find
javascript alert boxes more or less annoying. It
allways feels like an error occured Wink And they
are "ugly" from the design point of view.

Quote:Doesn’t work that way.

Please post the controller part and view part involved
into this problem. All you want basically is to pass a string from
your controller to the view.


Show alert message on load view - El Forum - 11-13-2012

[eluser]Juzt1s[/eluser]
Thank you all for the replies, I'll try all of them tomorrow.

All I want to do is to show alert or any kind of message popup on view load from particular controller functions. If I get to the same view from other controller function the message must not be shown. I'll try the solution you've all provided and will post the feedback Smile


Show alert message on load view - El Forum - 11-13-2012

[eluser]Barwick[/eluser]
[quote author="Juzt1s" date="1352829131"]Thank you all for the replies, I'll try all of them tomorrow.

All I want to do is to show alert or any kind of message popup on view load from particular controller functions. If I get to the same view from other controller function the message must not be shown. I'll try the solution you've all provided and will post the feedback Smile [/quote]

Good luck!! Its pretty simple once you get the hang of it! Smile