Hi!
How Can I put javascript:void(0); into the url property of a menu item?? cuz when I put ‘url’=>array(’’) the result link has a href with the actual page
regards
Hi!
How Can I put javascript:void(0); into the url property of a menu item?? cuz when I put ‘url’=>array(’’) the result link has a href with the actual page
regards
Would a simple hash # work?
Cheers,
Matt
Did you try false? (IIRC)
/Tommy
Hi!
I tried this but I get direction like this …
http://localhost/proj/controller/index/#
and I wanna obtain something like this in the href
javascript:void(0);
so… the page will not reload cuz I have a onclick event to popup
How Can I use ‘false’ in the url property exactly??
regards
Omy! I simply put ‘javascript:void(0);’ (without array()) into url property and now it works!!
10x for all
try this array(‘label’ => ‘Admin’, ‘url’ => ‘#’, …)
This should also work: array(‘label’ => ‘Admin’, ‘url’ => ‘JavaScript:void(0);’, …)
Thanks for posting your solution, it helped me!
$this->menu=array(
array('label'=>'List Document', 'url'=>array('index')),
array('label'=>'Create Document', 'url'=>array('create')),
array('label'=>'File Manager','url'=>'javascript:mcFileManager.browse();'),
array('label'=>'New User', 'url'=>array('/user/admin/createFileUser')),
);
doodle