CodingGoogle Gears

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Mikee   
 To:  ALL
34967.11 

Um, posting a page of code probably doesnt illustrate the idea.

 

http://www.mikefranklin.me.uk/experiments/gears/username_collector.html

 

Imagine that was just a standard forum page. the javascript would collect the usernames and put them in its local database while you're browsing around.

 

Imagine that box is a "username" reply-to box. It could auto-complete by querying its local database - and it'd be very fast.

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Mikee      
34967.12 In reply to 34967.11 
Would there be significant benefit with Gears vs a [locally cached] JSON data file?
0/0
 Reply   Quote More 

 From:  Mikee   
 To:  Peter (BOUGHTONP)     
34967.13 In reply to 34967.12 
How do you intend to locally cache this file?
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Mikee      
34967.14 In reply to 34967.13 
By ensuring the server sends correct headers, and letting the browser handle the rest...
0/0
 Reply   Quote More 

 From:  Mikee   
 To:  Peter (BOUGHTONP)     
34967.15 In reply to 34967.14 

So you'd have to download the json of all the forum members usernames in one request?

 

That'd be pretty slow. Then doing a search through the json data every time someone presses a key would also be slow and intensive. That technique would also mean having to write server side code.

0/0
 Reply   Quote More 

 From:  Mikee   
 To:  ALL
34967.16 

You could extend this idea by indexing any viewed threads against thread id's, then have a quick search to quickly jump to threads you've previously viewed by quickly typing part of the name of it.

 

I'm pretty sure sqlite allows fulltext searching.

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Mikee      
34967.17 In reply to 34967.15 
If there are 500 members with 32 character usernames, that's 15KB of data - not slow to download.

Whether it's slow+intensive to use that with JSON vs SQLite is my question really - is there enough benefit from SQLite to make it a feature that can only be utilised by people who have installed extra software?
0/0
 Reply   Quote More 

 From:  Mikee   
 To:  Peter (BOUGHTONP)     
34967.18 In reply to 34967.17 

Mmm. Well I was thinking of it as a small enhancement which is pretty quick and inexpensive to implement.

 

Dunno. Was just a suggestion :) Could be nice to enhance things with gears here and there.. such as the multiple file selector and whatnot.

0/0
 Reply   Quote More 

Reply to All    
 

1–18

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats