|
Wordzilla
|
 |
« Reply #25 on: September 07, 2007, 07:15:47 AM » |
|
@Carol: I'm not yet skilled in javascript scripting  , perhaps there was some hidden bug in my ajax scripts. If so, I hope someone will point it out here for me to fix.
|
|
|
|
|
Logged
|
|
|
|
|
ak_
|
 |
« Reply #26 on: September 07, 2007, 08:09:43 AM » |
|
Christian a. (3c): decent, civilized.  Tell that to victims of the crusades (or George Bush/Tony Blair) ... Ahah  Ok enough with the off-topic posts, sorry.
|
|
|
|
|
Logged
|
|
|
|
|
Veign
|
 |
« Reply #27 on: September 07, 2007, 09:18:28 AM » |
|
Wordzilla, What component do you use for the Suggestion drop-down? I have a need for something like this to use in a website of mine.
|
|
|
|
|
Logged
|
|
|
|
|
|
Lashiec
|
 |
« Reply #28 on: September 07, 2007, 09:31:17 AM » |
|
Wordzilla, my skills are worst than yours in JavaScript, but it seems to me that the Ajax part is trapped in a loop under Firefox, as it tries to show the yellow box, but it can get the data. The browser slows and the antivirus icons is spinning like mad. Opera and Internet Explorer don't show this problem, so maybe it's a Firefox bug? Bug reporting aside, great work! 
|
|
|
|
|
Logged
|
|
|
|
|
Carol Haynes
|
 |
« Reply #29 on: September 07, 2007, 09:36:12 AM » |
|
Glad it isn't just me - I was beginning to think it must be an issue with a Firefox addin.
|
|
|
|
|
Logged
|
|
|
|
|
Veign
|
 |
« Reply #30 on: September 07, 2007, 09:41:25 AM » |
|
Hmm. I use Firefox and all works as expected.
|
|
|
|
|
Logged
|
|
|
|
|
Wordzilla
|
 |
« Reply #31 on: September 07, 2007, 09:49:31 AM » |
|
@Lashiec, Carol: I just modified and uploaded the ajax script, in which I removed the part that tell it to "retry on failure" (probably very dumb idea  ). I'm not sure if the yellow definition panel will display for you guys but it now shouldn't slow down/freeze your browser. I have two independent firefox 2.0.0.6 here, one works (with firebug turned on), one doesn't.  Please post here if you have any problem with the live suggest/dictionary features, I'll fix asap. 
|
|
|
|
|
Logged
|
|
|
|
|
Carol Haynes
|
 |
« Reply #32 on: September 07, 2007, 09:52:59 AM » |
|
That seems to have cured the slow downs for me - no yellow pop ups though in FF.
|
|
|
|
|
Logged
|
|
|
|
|
Lashiec
|
 |
« Reply #33 on: September 07, 2007, 09:56:11 AM » |
|
Yup, fixed now, at least the browser don't go berserk. The panel is not appearing, anyway  . So Opera FTW! (is not that I was using Firefox anyway...  )
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Wordzilla
|
 |
« Reply #35 on: September 07, 2007, 12:53:14 PM » |
|
Wordzilla, What component do you use for the Suggestion drop-down? I have a need for something like this to use in a website of mine.
Well I coded it from scratch (inspired by an ajax script published in the book Ajax for Dummies) This is the javascript that handles live suggest requests: http://freethesaurus.net/suggest.jsDatabase backend (which outputs one word/phrase each line, with \n as separator, simple stuff): http://freethesaurus.net/suggest.php?q=xxxxInline javascript: [ copy or print] <input type="text" value="" id="q" name="q" size="35" onkeyup="sd()" onclick="sd()" onblur="rh()" autocomplete="off"/> The entry function in suggest.js delays ajax action for 250 milliseconds to accommodate fast typers: [ copy or print] var TimerId = 0; function sd(){ clearTimeout(TimerId); TimerId = setTimeout("getSuggest()",250); }
|
|
|
|
|
Logged
|
|
|
|
|
Carol Haynes
|
 |
« Reply #36 on: September 07, 2007, 01:27:17 PM » |
|
That seems to have got it - well done  It's all a learning curve 
|
|
|
|
|
Logged
|
|
|
|
|
Carol Haynes
|
 |
« Reply #37 on: September 07, 2007, 01:33:56 PM » |
|
Another 'bug' - don't know how you can fix this one ...
If a definition is a long one the pop up box is too narrow to display the whole definition. Try hovering over "good" to see what I mean.
AFAICS the only way to solve this would be to allow the mouse to enter the yellow box (currently it disappears if you move the mouse) and include a scroll bar. A workaround would be to make the yellow box quite a bit wider so that more will fit on screen.
Some of the synonyms for good are a bit over the top (and not really synonyms as far as I can see).
|
|
|
|
|
Logged
|
|
|
|
|
Veign
|
 |
« Reply #38 on: September 07, 2007, 03:16:04 PM » |
|
Wordzilla, What component do you use for the Suggestion drop-down? I have a need for something like this to use in a website of mine.
Well I coded it from scratch (inspired by an ajax script published in the book Ajax for Dummies) Good stuff. Would I be able to use what you have done on my website (another free service)? - I will find a place to give you credit of course...
|
|
|
|
|
Logged
|
|
|
|
|
Wordzilla
|
 |
« Reply #39 on: September 07, 2007, 05:46:45 PM » |
|
Sure Veign, feel absolutely free to use my code in any way you like. 
|
|
|
|
|
Logged
|
|
|
|
|
Wordzilla
|
 |
« Reply #40 on: September 07, 2007, 05:49:14 PM » |
|
Another 'bug' - don't know how you can fix this one ...
If a definition is a long one the pop up box is too narrow to display the whole definition. Try hovering over "good" to see what I mean.
AFAICS the only way to solve this would be to allow the mouse to enter the yellow box (currently it disappears if you move the mouse) and include a scroll bar. A workaround would be to make the yellow box quite a bit wider so that more will fit on screen.
Some of the synonyms for good are a bit over the top (and not really synonyms as far as I can see).
Sooo... does the new yellow box appeal to you, with scrollbar and tuned timeouts? 
|
|
|
|
|
Logged
|
|
|
|
|
jgpaiva
|
 |
« Reply #41 on: September 07, 2007, 06:46:12 PM » |
|
Sooo... does the new yellow box appeal to you, with scrollbar and tuned timeouts?  Amazing!!! Beautiful, i must say. Too bad it won't work under opera 
|
|
|
|
|
Logged
|
|
|
|
|
Wordzilla
|
 |
« Reply #42 on: September 07, 2007, 06:53:37 PM » |
|
Hmm, I've tested it on Firefox 2.0.0.6, IE 7, Opera 9.23, and Safari 3 here and Lashiec just confirmed it to work on Opera. Grrrrrh, browsers, browsers..
|
|
|
|
|
Logged
|
|
|
|
|
Carol Haynes
|
 |
« Reply #43 on: September 07, 2007, 06:55:30 PM » |
|
Sooo... does the new yellow box appeal to you, with scrollbar and tuned timeouts?  Oooooooooo .... beautiful  What a star!
|
|
|
|
|
Logged
|
|
|
|
|