Never mind....
I found it.
<?php echo $ajax->link(__('delete',false), '...................'',
array('update' => '....................',
'class' => 'delete_btn',
'loading'=> "..................",
'loaded'=> "...................",
'confirm' => 'Are you sure you want to delete this item?',
null, FALSE));
?>
Dave
-----Original Message-----
From: WidePixels [mailto:[email protected]]
Sent: March-03-09 5:20 PM
To: CakePHP
Subject: Style Submit
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
-~----------~----~----~----~------~----~------~--~---