Reply New Topic
2010/12/4 16:15:22
#1
Offline
Home away from home

@Phoenyx - Autocomplete

Here ya go man - it's all working now.

I stripped some of the options out of Autocomplete.php you can replace them if you wish - but you should be wrapping them in ifs so they are not there if the option is empty. right?

Please also check autocomp.php

I was having real trouble with the original for some reason - so I included this one.

Notice the json encoding formatting - this is critical to it actually working reliably.

Attach file:


zip autocomp.zip Size: 2.66 KB; Hits: 231


Edited by UnderDog on 2010/12/5 4:31:01

2010/12/5 2:20:25
#2
Offline
Home away from home

Re: @Phoenyx - Autocomplete

Thank you for your work Will. It's working great.

On thing to notice is, that you have to deactivate the debugger for autocomp.php via icms::$logger->disableLogger();. Otherwise, Autocomplete.php cannot read the response properly.

For the configs: In case they are not set, I'm defaulting them to something so that we can always set them for the jQuery function. I will finalize everything and commit it.

_________________
the german icms website : www.impresscms.de

2010/12/5 9:01:53
#3
Offline
Webmaster

Re: @Phoenyx - Autocomplete

This looks cool. Any indication where this can be plugged in?

Thx,
D.

_________________

Me on Ohloh


2010/12/5 9:52:23
#4
Offline
Home away from home

Re: @Phoenyx - Autocomplete

It's part of the IPF / ImBuilding for 1.3


2010/12/5 12:48:40
#5
Offline
Webmaster

Re: @Phoenyx - Autocomplete

I saw that in the zipfile

I wanted to know if this plugs in into some class, so that it comes automagically available to current modules, or do we have to use it explicitly?

After having a better look, there is some coding to be done specifically. So we'll need to educate module developers in using it.

_________________

Me on Ohloh


2010/12/6 9:33:01
#6
Offline
Home away from home

Re: @Phoenyx - Autocomplete

That's correct David. I've added some hints in the comment of Autocomplete.php which explains how everything works.
The module developer needs to do some specific tasks to use it for his modules. So far, it's not plugged into any of the modules or the core.

_________________
the german icms website : www.impresscms.de

Reply New Topic extras
 Previous Topic   Next Topic
You can view topic.
You can start a new topic.
You can reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You can post without approval.