[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-23 Thread GJK
Want to let you now it's fixed and it works great now under ie7/8. And want to thank especially MorningZ for your help. There was one little error in your fix. And I found nice little debug tool for JSON - http://www.jsonlint.com After adding the array then imploding in the php code it worked

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread GJK
The error was wrong, the good one from internet explorer: - Line: 158 Character: 2 Code: 0 Error Message: 'title' is null or not an object URL: http://localhost.com/js/search.js And it's coming from this function: -

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread MorningZ
that means that title is not a valid property of the row object On Dec 22, 5:46 pm, GJK gerlofva...@gmail.com wrote: The error was wrong, the good one from internet explorer: - Line: 158 Character: 2 Code: 0 Error Message: 'title' is null or not

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread GJK
Ok thank you, Why does this code work in Firefox etc. And not in internet explorer 7/8. And how to fix this for internet explorer? Greatly appreciate it! On Dec 23, 1:38 am, MorningZ morni...@gmail.com wrote: that means that title is not a valid property of the row object On Dec 22,

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread MorningZ
IE has a really hard time with reserved words used as function names and/or properties try changing row to something else, even Row would be different enough, as IE *might* be thinking you mean a table row so instead of function DisplayResult(row) { var output = 'dd id='; output

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread GJK
Thank you MorningZ for your nice reply. I have tested this with ie8, function DisplayResult(ThisRow) { var output = 'dd id='; output += 'a href=' + ThisRow['link'] + ''; output += 'p'; output += 'b' + ThisRow['title'] + '/b'; output += row['summary'];

Re: [jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread Michael Geary
Sorry, but that's not right at all. There is no problem with using 'row' as a function parameter name in IE. We're veering into Cargo Cult Programming here, but it's not your fault, MorningZ. The problem is that we can't see the actual code that's going wrong, so we're all reduced to guessing.

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread MorningZ
Sorry, but that's not right at all My point was that IE does run into issue when it comes to reserved words, which row is and as you can (or obviously can't) tell from my reply, you're right, i was just taking some stabs in the dark to at least make an attempt to help. i don't think i

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread MorningZ
btw, i realize i am mistaken, as rows is a property, not row my bad... i tried though

[jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread MorningZ
your JSON {results:[{ postid:697, summary:boddytest, title:testtitlehere, link:http:// testlink.com,

Re: [jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread Michael Geary
I intended no offense, MorningZ, but suggesting that changing a parameter name from 'row' to 'ThisRow' may somehow fix an IE problem isn't helpful in the slightest. It's simply incorrect. It won't fix the problem, and it's only a distraction from finding the real issue. 'row' isn't a reserved

Re: [jQuery] Re: Autosuggest breaks in ie7/8

2009-12-22 Thread Michael Geary
BTW, just to commiserate, you're not the only one who's ever posted incorrect information here. Want to hear a whopper I posted a couple of years ago? Someone was asking how to change the title in the browser window, and I told them that they couldn't: You only get one chance at setting the

[jQuery] Re: Autosuggest based dropdown selection plugin

2009-06-27 Thread Tom Worster
On 6/27/09 5:11 AM, bharani kumar bharanikumariyer...@gmail.com wrote: Hi all , I used the auto suggest / complete in my lot of projects , But this is some what different , I need the auto suggest plugin , that auto suggest must work based on the dropdown selection , Assume if

[jQuery] Re: autosuggest help

2008-09-24 Thread Jörn Zaefferer
You can't query a MySQL database from JavaScript. There has to be some serverside script to execute a query and return the results. Thats what search.php is supposed to do. Jörn On Tue, Sep 23, 2008 at 8:51 PM, allan2008 [EMAIL PROTECTED] wrote: Hello. I'm trying to figure out the

[jQuery] Re: autosuggest help

2008-09-24 Thread BB
Here just a little example how you can do this: // index.htm ... script $(#autocomplete).autocomplete(search.php); /script ... // search.php ?php mysql_connect(localhost, user, pass); mysql_select_db(mySearchTable); $query = mysql_query(SELECT * FROM T_Search WHERE name LIKE ' . $_REQUEST[q] .

[jQuery] Re: autosuggest help

2008-09-24 Thread allan2008
Thanks for the help guys! I understand this much better now. I really appreciate your work Jorn, thanks for sharing with us!

[jQuery] Re: Autosuggest

2007-11-21 Thread Gordon
That's odd, with my 150 items test list I found it didn't seem unreasonably slow in IE, though I didn't test in 6. In the end I had to rewrite the code without the support of jQuery because I couldn't figure out how to get fValidate to play nicely with it, and that version runs well in IE6.

[jQuery] Re: Autosuggest

2007-11-20 Thread Gordon
$(document).ready (function () { var searchBox = $('input type=text name=addrSearch id=addrSearch /'); var addrList= $('#storedAddresses li'); var matchErr= $('li class=noMatchNo matches found/li'); var addrStrings = []; // Cache the contents of

[jQuery] Re: Autosuggest

2007-11-20 Thread Jean
I noted the speed for ie6 is very slow, but for FF is very good =p On Nov 20, 2007 7:37 AM, Gordon [EMAIL PROTECTED] wrote: $(document).ready (function () { var searchBox = $('input type=text name=addrSearch id=addrSearch /'); var addrList= $('#storedAddresses

[jQuery] Re: Autosuggest

2007-11-19 Thread Gordon
http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/ demonstrates a plugin that's really close to what I want, it will pick up on elements where the word entered isn't the first word in the strings being searched. Unfortunately, it still requires

[jQuery] Re: Autosuggest

2007-11-19 Thread kef
Instead of using one array of csv data, why not use nested arrays? On Nov 19, 6:48 am, Gordon [EMAIL PROTECTED] wrote: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jq... demonstrates a plugin that's really close to what I want, it will pick up on elements where the word

[jQuery] Re: Autosuggest

2007-11-19 Thread Sean O
Gordon, I think the quickSearch plugin: http://rikrikrik.com/jquery/quicksearch/ will help you. SEAN O __ www.sean=o.com Gordon-35 wrote: http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/ demonstrates a plugin that's

[jQuery] Re: Autosuggest

2007-11-19 Thread Jörn Zaefferer
Gordon schrieb: For example, if an address is listed as Mister Foobar, 123 Fake street, Quuxville, AS1 23D, then the autocomplete plugin would suggest that address if the user typed in fake street as1, or fake foobar. Are there any autocumplete plugins that support doing this? I'll try to

[jQuery] Re: Autosuggest

2007-11-19 Thread Gordon
Thanks for the suggestion, but it came too late. I've now already written something that seems to work pretty well. Will post source later for comments and in the hopes someone else will find it useful. On Nov 19, 6:49 pm, Sean O [EMAIL PROTECTED] wrote: Gordon, I think the quickSearch