hechacker1, on Jan 8 2006, 04:52 PM, said:
Help! Ajax + Live Search
#21
Posted 08 January 2006 - 09:24 PM
#22
Posted 09 January 2006 - 12:03 AM
rbmatt, on Jan 8 2006, 01:24 PM, said:
yeah, that is what i meant.. I wanted to keep some of the formatting that I know doesn't break the layout, like <img> and <p>. But I'm just gonna add a variable $strip_tags = ' ' that will let you decide what to keep. I'll put some reasonable defaults.
and while i'm at it, i might as well figure out how to remove a lot of the whitespace, since whitespace is considered as part of the length and gets stripped, leaving out content. some kind of filter that removes all empty spaces of "xx" two length, leaving "x" one length alone?
Edited by hechacker1, 09 January 2006 - 12:14 AM.
#23
Posted 09 January 2006 - 12:22 AM
hechacker1, on Jan 8 2006, 08:03 PM, said:
$yourString = preg_replace('/\s\s+/', ' ', $yourString);
#24
Posted 09 January 2006 - 07:13 AM
rbmatt, on Jan 8 2006, 04:22 PM, said:
$yourString = preg_replace('/\s\s+/', ' ', $yourString);
thanks for the reply. i'll try it out and see how it affects the html code. this is only a problem for when the content on the page is preceeded by a lot of empty space, and usually it ends up that the white space is displayed and the content gets cut short.
btw, I made it back to UCSD fine.. loving my 100mbit connection again (internet 2)
Edited by hechacker1, 09 January 2006 - 07:14 AM.
#25
Posted 09 January 2006 - 03:24 PM
hechacker1, on Jan 9 2006, 03:13 AM, said:
hechacker1, on Jan 9 2006, 03:13 AM, said:
#26
Posted 11 January 2006 - 07:36 AM
I've already successfully imported my etomite database into the new host and etomite runs fine on it with Fast-CGI and php5.
but until the transition is complete, I can't continue with the snippet development since my files were all located on the server.
in a day or so i think i'll put the final revision here so you guys can test it and catch any obvious bugs and mistakes.
#27
Posted 14 January 2006 - 04:19 AM
hechacker1, on Jan 10 2006, 10:36 PM, said:
Can't wait to see it!
#28
Posted 17 January 2006 - 02:50 AM
Well, all the instructions are provided in the livesearch.php file. Also, this version assumes you will be using it outside of etomite, not in a snippet form. I think the external php method will provide most users with a faster experience.
However, in the next version i'll put in the simple code with a variable allowing the livesearch to be run in a snippet. It just takes more work though (with the empty [*content*] page).
Attached Files
#29
Posted 17 January 2006 - 09:30 PM
hechacker1, on Jan 16 2006, 06:50 PM, said:
Well, all the instructions are provided in the livesearch.php file. Also, this version assumes you will be using it outside of etomite, not in a snippet form. I think the external php method will provide most users with a faster experience.
However, in the next version i'll put in the simple code with a variable allowing the livesearch to be run in a snippet. It just takes more work though (with the empty [*content*] page).
did anybody else give it a try? i'm curious to know before I release a broken snippet. now i'm off to get RTM!
#30
Posted 17 January 2006 - 09:43 PM
hechacker1, on Jan 17 2006, 05:30 PM, said:
#31
Posted 17 January 2006 - 10:01 PM
Ralph (rad14701), on Jan 17 2006, 01:43 PM, said:
yeah, well thanks! especially for RTM.
btw, I already did the upgrade, it took less than a minute.
I'm curious though, what are those new variables about the parser? I've noticed that my front page renders slightly more slowly, like .1 instead of .006
and my snippet still works.
EDIT: these variables?
$etomite->snippetParsePasses = 5; # Original default: 3
$etomite->nonCachedSnippetParsePasses = 5; # Original default: 2
Edited by hechacker1, 17 January 2006 - 10:02 PM.
#32
Posted 17 January 2006 - 10:04 PM
#33
Posted 17 January 2006 - 10:31 PM
hechacker1, on Jan 17 2006, 06:01 PM, said:
btw, I already did the upgrade, it took less than a minute.
I'm curious though, what are those new variables about the parser? I've noticed that my front page renders slightly more slowly, like .1 instead of .006
and my snippet still works.
EDIT: these variables?
$etomite->snippetParsePasses = 5; # Original default: 3
$etomite->nonCachedSnippetParsePasses = 5; # Original default: 2
#34
Posted 18 January 2006 - 09:59 PM
I plan to do some more trimming to make the livesearch even faster. Every little fraction of a second counts..
btw, what has changed in RTM that increased the page generation for my site? Just more commenting? Or did you add functions?
i've noticed that secondary pages that don't have the News Snippet are faster, like 0.06s , but the main page renders about 0.1s. Before RTM it was around 0.06 to 0.002s.
then again.. it's not like the users can really see that anyways
#35
Posted 18 January 2006 - 11:25 PM
hechacker1, on Jan 18 2006, 05:59 PM, said:
I plan to do some more trimming to make the livesearch even faster. Every little fraction of a second counts..
btw, what has changed in RTM that increased the page generation for my site? Just more commenting? Or did you add functions?
i've noticed that secondary pages that don't have the News Snippet are faster, like 0.06s , but the main page renders about 0.1s. Before RTM it was around 0.06 to 0.002s.
then again.. it's not like the users can really see that anyways
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











