2 of 6
2
LiveSearch
Posted: 21 July 2004 01:47 PM   [ Ignore ]   [ # 19 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Wow, that’s pretty slick!  If you can, you should certainly try porting this over to be a Plugin, Paul.  In your copious free time, of course. [grin]

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 21 July 2004 01:58 PM   [ Ignore ]   [ # 20 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

Paul… it definitely wasn’t working on my individual pages which is why I had to go and change it.  I guess because it was index.php/weblog/comments/title-of-post/ ? ./ would have been weblog no?

Changing it to / fixed it anyway - just something I had to do to make it work. =)

I think it would be fantastic if this kind of thing were eventually rolled into EE as options or whatever.  Cutting edge stuff, very neat. =)

 Signature 
Profile
MSG
 
 
Posted: 21 July 2004 02:02 PM   [ Ignore ]   [ # 21 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Hm, I wonder if the browser would not have seen the difference between the page and the query string, so you are likely right.  My bad.  A browser is not Apache after all, I suppose.

Yes, and now I have visions of wonderful JavaScript widgets available in EE.  Focus!  I must focus.  Developer API first…

 Signature 
Profile
 
 
Posted: 21 July 2004 02:14 PM   [ Ignore ]   [ # 22 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

*drools* I’ll tell you, every day that passes I’m more and more happy that I went ahead and switched to EE.  You are all amazing and I am really looking forward to seeing what else comes out of the EE geniuses. =)

 Signature 
Profile
MSG
 
 
Posted: 21 July 2004 06:50 PM   [ Ignore ]   [ # 23 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

If this does make it into a plugin, I’d love the ability to search the full text of the post, not just the titles… I tried reading the code so that I could do that but I’m so lost wink  Or would that be just too much load?

 Signature 
Profile
MSG
 
 
Posted: 21 July 2004 07:09 PM   [ Ignore ]   [ # 24 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

I wish there was a glutton for punishment smiley.  Yes, I would suspect that this would be available as an option.  Might take a look at the search module if you want to understand how to make an über search query.

 Signature 
Profile
 
 
Posted: 21 July 2004 07:23 PM   [ Ignore ]   [ # 25 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

Not really, in 3 weeks I start a really difficult two years of study, I’m trying to be as lazy as humanly possible right now… wink

 Signature 
Profile
MSG
 
 
Posted: 21 July 2004 07:25 PM   [ Ignore ]   [ # 26 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Ohhhhhhhh, I see how it is….

 Signature 
Profile
 
 
Posted: 21 July 2004 10:19 PM   [ Ignore ]   [ # 27 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

*grins* plus you’re so good at this, Paul.  A genius with it. =)

 Signature 
Profile
MSG
 
 
Posted: 21 July 2004 11:39 PM   [ Ignore ]   [ # 28 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

Flattery will get you everywhere…

 Signature 
Profile
 
 
Posted: 23 July 2004 12:17 AM   [ Ignore ]   [ # 29 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

I just added this to my site, and it works great. Thanks, Paul!

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 23 July 2004 08:45 PM   [ Ignore ]   [ # 30 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

you might want to modify ./index.php ... to /index.php ....

Where is that text located? I tried it on this:

liveSearchReq.open("GET", "./index.php/livesearch/" + document.forms.searchform.s.value+"/");


...in LiveSearch.js, but that produced URL not found errors. I don’t yet see it in the LiveSearch template, or in the LiveSearch form code that gets added to the web page.

Thanks in advance for the info!

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 23 July 2004 08:52 PM   [ Ignore ]   [ # 31 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

That is the correct place.  Is the index.php page at the root of your domain?  For example:  www.yoursite.com/index.php.

 Signature 
Profile
 
 
Posted: 23 July 2004 09:00 PM   [ Ignore ]   [ # 32 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

I had it in my /exp directory. I just moved it to my httpdocs file, and changed
“./index.php/livesearch/”  to “/index.php/livesearch/”. But, I’m getting URL not found errors. I know this is something really easy. What am I missing? Thanks in advance!

 Signature 

http://www.FlavorZoom.com

Profile
 
 
Posted: 23 July 2004 09:06 PM   [ Ignore ]   [ # 33 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

paul, if you get a chance - he implemented keyboard navigation

http://blog.bitflux.ch/p1736.html

and I redownloaded the js and added the bit to the body as per the wiki instructions - but it’s not doing itl.  Are you able to get that part to work at all on your dev blog?  I think that I must be doing something wrong.

Thanks =)

 Signature 
Profile
MSG
 
 
Posted: 23 July 2004 09:11 PM   [ Ignore ]   [ # 34 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  08-05-2002

You had what in your /exp directory. the index.php file or the javascript file?  You have to make the link work according to the page loading the javascript.

I have been interested into looking into keyboard navigation since Gmail started up and used it.  His idea is worth a look but not tonight.

 Signature 
Profile
 
 
Posted: 23 July 2004 09:17 PM   [ Ignore ]   [ # 35 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

*grins* whenever you have the time, paul, it’s a nice thing but not major.  I’m thrilled that you took the time just to make the basic thing work.

Thank you, sir. =)

 Signature 
Profile
MSG
 
 
Posted: 23 July 2004 09:27 PM   [ Ignore ]   [ # 36 ]  
Research Assistant
RankRankRank
Total Posts:  754
Joined  05-15-2004

I had the LiveSearch.js file in the exp directory. I’ve now moved it back to the exp directory, to be in the same folder with index.php, as you indicated.

As described in this thread, the LiveSearch.js file now has been edited to:

> liveSearchReq.open(“GET”, “./index.php/livesearch/” + document.forms.searchform.s.value+”/”);

It appears that all that’s left is the link.

> You have to make the link work according to the page loading the javascript.

Okay, I now have LiveSearch working again for my site’s home page. What should the link be for, e.g., the monthly_archives template?

> http://www.luxeword.com/exp/index.php/weblog/monthly_archives/2004/04/

I’ve tried it like this:

<script type=“text/javascript” src=”/livesearch.js”><script>

and like this:

<script type=“text/javascript” src=”./livesearch.js”><script>

 Signature 

http://www.FlavorZoom.com

Profile
 
 
   
2 of 6
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 25
Total Topics: 82015 Total Anonymous Users: 22
Total Replies: 440813 Total Guests: 190
Total Posts: 522828    
Members ( View Memberlist )