![]() |
Confirm dialog helper - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Confirm dialog helper (/showthread.php?tid=3556) |
Confirm dialog helper - El Forum - 10-10-2007 [eluser]Unknown[/eluser] This create confirm dialog link ( you want confirm delete or something). Use it like ci orginal anchor(), but add few extra params. Needs jQuery and jQuery plugin: Impromptu Add this inside your head tags: Code: function vhconfirm(v,m) And this one your helper dir. confirm_helper.php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); And then use it like: Code: <?=confirm( 'blog/delete/'.$row->group_id , 'Delete' , 'conf'.$row->blog_id , array( 'class' => 'delete' ) , array( 'dialog' => 'Delete blog entry'.$row->entry_name.'?' ) )?> Confirm dialog helper - El Forum - 10-10-2007 [eluser]Phil Sturgeon[/eluser] Always made things like this in Darkbasic, im suprised I never thought of it in JS! Thanks for this mate. |