1
trabis
XoopsForm - how to add custom code?
  • 2008/5/9 23:23

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi, I need some help here. I have this code:
$search_form = new XoopsThemeForm(_MA_MYSEARCH_SEARCH"search""search.php"'get');

// create form elements
$search_form->addElement(new XoopsFormText(_MA_MYSEARCH_KEYWORDS"query"30255htmlspecialchars(stripslashes(implode(" "$queries)), ENT_QUOTES)), true);


Now I need to add some custom code for the autocompleter:
<div id="autocomplete_choices" class="autocomplete"></div>


How can I do this using the addElement atribute?

2
hervet
Re: XoopsForm - how to add custom code?
  • 2008/5/10 16:44

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Personaly, I use a XoopsFormLabel.
I construct the needed html code with it.

3
trabis
Re: XoopsForm - how to add custom code?
  • 2008/5/10 17:18

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Thanks hervet. It´s working now!

Login

Who's Online

86 user(s) are online (34 user(s) are browsing Support Forums)


Members: 0


Guests: 86


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits