Yii Framework Forum: extraParams in CAutoComplete - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

extraParams in CAutoComplete Rate Topic: -----

#1 User is offline   Boris 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 05-December 08

Posted 23 December 2008 - 04:27 AM

Hi,

can someone please explain how i can use the extraParams? I have a CAutoComplete on the page but it needs to send some other input values to the call.

Thanks
Boris
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,900
  • Joined: 04-October 08
  • Location:DC, USA

Posted 23 December 2008 - 07:06 AM

Use 'options' property. extraParams is used to pass GET parameters back to the server.
0

#3 User is offline   Boris 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 05-December 08

Posted 23 December 2008 - 08:38 AM

I mean sending some other input values as GET or better POST to backend. I thought that would be extraParams. What do you mean with "options".

The problem is, extraParams works but i need it dynamic and this would work as a function callback, but CAutoParam does not allow extraParams be a function.

Sorry, dont get it... :(
0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,900
  • Joined: 04-October 08
  • Location:DC, USA

Posted 23 December 2008 - 09:10 AM

You wanna use a js function to supply the values for extraParams? If so, you can still do so by setting extraParams to be "js:functionName".
0

#5 User is offline   yii 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 440
  • Joined: 25-July 09

Posted 25 April 2011 - 03:22 PM

View Postqiang, on 23 December 2008 - 09:10 AM, said:

You wanna use a js function to supply the values for extraParams? If so, you can still do so by setting extraParams to be "js:functionName".

do you have an example?
Meine Fragen stelle ich öffentlich und baue somit eine Wissensdatenbank für andere auf!
0

#6 User is offline   yiiplayboy 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 03-May 12

Posted 26 July 2012 - 05:06 AM

View Postyii, on 25 April 2011 - 03:22 PM, said:

do you have an example?


here is the example....thanks to him
http://hungred.com/h...-cautocomplete/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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