I actually spent a little bit of time on this this morning. I don’t
have Sphider installed here, so the trick will be debugging the
results remotely.
First, you don’t want to use Scripty2 – yet – it’s still in beta and
not for general use. If you use any of the Freeway FX Actions, or my
Protaculous Action, or Carousel, or ScriptyLightbox, then you will
have all of the necessary libraries linked into your page already, in
the current 1.6 and 1.8 branches, respectively.
Next, the autocomplete results box needs to exist on your search page,
and the whole set of elements need to be named in a particular manner.
Finally, the suggest.php script needs to be rewritten lightly. It
needs to return a simple unordered list, rather than the table it
currently employs. And it needs to respond to a POST rather than a GET
request, because that’s how the Scripty system works.
I noticed that there are a lot of extra parameters you can set when
creating a suggest field, to show additional columns of data in your
results. I didn’t try to duplicate that in my limited testing. Also,
the whole business of including the SuggestFramework and invoking its
setup method needs to be stripped out of your search page. (The way
this is written is actually going to nuke Freeway’s various rollover
and image preload scripts, too, so it would be a good idea anyway not
to use it in a Freeway layout.)
Have a look at this file:
http://scripty.walterdavisstudio.com/sphider-1.3.5-prototype.zip
I think it might work, at the very least, it’s set up correctly with
respect to the search field and results. It relies on an outer
template page adding the links to the prototype/scripty libraries, and
I put some rudimentary information about that in the install.txt file.
Walter
On May 7, 2010, at 10:17 AM, Thomas Kimmich wrote:
OK Walter,
the problem is that I think to much figurative and too less code
related - or the other way round:
with that less knowledge in background it`s to bait pigs with
diamonds.
But I will give all a try, cause I really want to know much more
about the background.
that means:
-
Have to bring the latest scripty version (scripty2-2.0.0_a6) on
my server.
-
I have to link my page with scripty using
inserting HTML-Tag before the
3. I have to put "where and how?" following
new Ajax.Autocompleter(id_of_text_field, id_of_div_to_populate, url
to my search.php????,
4. Remove the include/js_suggest/SuggestFramework.js
from a place where I not know at the moment.
and the grass will be green?
Now General - you see with these soldiers there is no war to win -
isn`t it? :-)
Thomas
_______________________________________________
offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options