Yii Framework Forum: ajax image submit button - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ajax image submit button Rate Topic: -----

#1 User is offline   renathy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 82
  • Joined: 05-July 11

Posted 03 October 2011 - 01:30 AM

How to generate image ajax submit button?

SO I need something like
CHtml::ajaxLink(CHtml::image(path, url, ajaxupdate)


but it shoukd be submit button.
0

#2 User is offline   yugene 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 513
  • Joined: 08-August 09

Posted 03 October 2011 - 03:20 AM

Maybe using CHtml::ajaxSubmitButton() with relevant css to show your image will be appropriate for you.
1

#3 User is offline   Yohan Hirimuthugoda 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 11-January 11
  • Location:Sri Lanka

Posted 29 November 2011 - 06:04 AM

Hi Renathy,

Did you achieve this? I am also looking for solution like this.

Thank you,
Yohan
0

#4 User is offline   Rats 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 12-October 12

Posted 22 October 2012 - 04:53 AM

one way to do this..i was looking for this ...here it is

echo CHtml::ajaxButton(' ',$this->createUrl("url"),array(
        'type'=>'POST',
         ajax code
                ),array('style'=>'border: none; background: #FFF url("images path");')); ?>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users