Page 1 of 1

Missing method in Google Suggest Clone

Posted: Sat Aug 18, 2007 8:23 am
by impulse()
I've been trying to implement the Google Suggest Clone from http://www.phpriot.com/d/articles/php/a ... st-ajaxac/. But I'm getting the error
PHP Fatal error: Call to undefined method GoogleSuggestCloneJax::addJsLib() in /var/www/html/test/GoogleSuggestCloneJax.class.php on line 41
The method isn't in the code, nor does it seem to be mentioned in any of the hosted code.

Has anybody here come across this before? I have e-mailed the author but I'm awaiting a reply.


Regards,

Re: Missing method in Google Suggest Clone

Posted: Sat Aug 18, 2007 9:30 am
by superdezign
impulse() wrote:The method isn't in the code, nor does it seem to be mentioned in any of the hosted code.
Did you read the article or just copy and paste? Usually, developers that write long articles for code want you to actually read it, so they break it up or omit some things for you to do on your own.

Posted: Sat Aug 18, 2007 9:39 am
by impulse()
The latters.

Posted: Sat Aug 18, 2007 9:44 am
by superdezign
The latter... as in you just copied and pasted? Shame. You'll never learn that way.

Posted: Sat Aug 18, 2007 9:48 am
by impulse()
Thanks for the help.

Posted: Sat Aug 18, 2007 10:30 am
by impulse()
After reading through the whole document I find this is more a jigsaw than documentation. I'm not sure if the author has tried to make it as confusing as possible but from what I can see functions are scattered throughout the chapters without any explanation of where they should go, only what they should do.

I will keep trying as I can't quit now I've started.

Example:
// ... other code ... //
Thanks author, that's sure hit the nail on the head.

Posted: Sat Aug 18, 2007 10:35 am
by superdezign
impulse() wrote:Example:
// ... other code ... //
Thanks author, that's sure hit the nail on the head.
Hehe. Maybe you should find a better document to read. I'm sure he's not the only one that's tried it.

Posted: Sat Aug 18, 2007 10:38 am
by impulse()
Wow, I've just really intense dejavu. The whole speaking to you about a problem and then counting how many cigarettes are in my pack shortly afterwards. :)

Posted: Wed Aug 29, 2007 5:09 am
by Schmutzka
I have the very same problem, unfortunately.

Posted: Wed Aug 29, 2007 12:20 pm
by impulse()
I used a different script in the end. Can't remember where I got it from, sorry.