Tuesday, February 24, 2009

Submit using image

What I have been trying to do is use an image to submit the AJAX form.
Thing is I am using a CSS sprite as the image so i have the hover and
other button states in the CSS. the actual image(s) are in the CSS and
not physically linked to the submit. I have the class added fine to
the submit link, but the 'SAVE' text shows up over my CSS button.

So basically i need to have the $caption for the link not display.

link:
<?php echo $ajax->submit('save', array(
'url' =>'.....',
'update' => '......',
'class' => 'save_btn',
'loading'=> '........',
'complete' => '..........'
));?>

Ideas, suggestions?

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

No comments: