Does anyone know how to style the SUBMIT button when using the AJAX
helper?

I know how to styles the button, issue is I am using a custom button
in a css sprite (2 states of the button, rest / hover as 1 image) and
my button has its own text. So how can I remove the text from the ajax
link? I want to remove the "Delete" text.

<?php echo $ajax->link('delete', '...................'',
        array('update' => '....................',
                'class' => 'delete_btn',
                'loading'=> "..................",
                'loaded'=> "...................",
                'confirm' => 'Are you sure you want to delete this item?',
                null, FALSE));
 ?>

CSS:
a.delete_btn {float:right;background:url(images/hf_btn_delete.jpg) top
left no-repeat; height:21px; width:49px; display:block}
a.delete_btn:hover{ background-position:0px -21px}

Thanks,

Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to