Tty to use this
http://fromvega.com/wordpress/2007/05/05/auto-complete-field-with-jquery-json-php/
Maybe it helps
The formatItem implementation is wrong. You are returning the
JavaScript object for the row (item) instead of a String to display.
Try return item.Name.
Jörn
On Wed, Jul 16, 2008 at 1:28 AM, shapper [EMAIL PROTECTED] wrote:
Sorry for the delay ...
I just changed the file. Check it now.
Hi Jörn,
Thank you for your help ...
In fact I had that before but it was not working so I changed ... I
realized it now that there were two problems:
That one on my AutoComplete code and another one on the methods that
returns the JSON when connecting to the SQL Server.
I was able to spot it
Does anyone knows how to solve this problem?
Please, check my example in:
http://www.27lamps.com/Beta/AutoComplete/Tags.aspx
On Jul 14, 9:57 pm, shapper [EMAIL PROTECTED] wrote:
Jörn,
I just uploaded an ASP.NET application that shows exactly what the
problem was.
The commented script code
Please put the commented code back in. The current one is rather useless.
Jörn
On Tue, Jul 15, 2008 at 4:31 PM, shapper [EMAIL PROTECTED] wrote:
Does anyone knows how to solve this problem?
Please, check my example in:
http://www.27lamps.com/Beta/AutoComplete/Tags.aspx
On Jul 14, 9:57
Hi,
Here it is:
http://www.27lamps.com/Beta/AutoComplete/TagsUpdate.aspx
And I kept the previous one:
http://www.27lamps.com/Beta/AutoComplete/Tags.aspx
Thank You,
Miguel
On Jul 15, 6:09 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Please put the commented code back in. The current one is
Firebug shows an error when I enter something. Can't debug it with the
compressed script - replace that with the uncompressed one and we may
get somewhere.
Jörn
On Tue, Jul 15, 2008 at 9:35 PM, shapper [EMAIL PROTECTED] wrote:
Hi,
Here it is:
Sorry for the delay ...
I just changed the file. Check it now.
On Jul 15, 9:37 pm, Jörn Zaefferer [EMAIL PROTECTED]
wrote:
Firebug shows an error when I enter something. Can't debug it with the
compressed script - replace that with the uncompressed one and we may
get somewhere.
Jörn
On
Please, anyone?
On Jul 14, 1:04 am, shapper [EMAIL PROTECTED] wrote:
Hi,
I tried to replicate your code using the JSon string generated by
ASP.NET MVC.
I created a static php code as you did ... To be honest I am not
familiar with php. This was the best I was able to do ...
I have been
You forgot the document ready code.
Jörn
On Mon, Jul 14, 2008 at 4:07 PM, shapper [EMAIL PROTECTED] wrote:
Please, anyone?
On Jul 14, 1:04 am, shapper [EMAIL PROTECTED] wrote:
Hi,
I tried to replicate your code using the JSon string generated by
ASP.NET MVC.
I created a static php code
Open firebug and look at the request being send. A 404 is returned.
Jörn
On Mon, Jul 14, 2008 at 5:15 PM, shapper [EMAIL PROTECTED] wrote:
That was a mistake when I uploaded the files ... I sent two wrong
files.
I just updated the files:
Jörn,
I just uploaded all your example to my server and the json example
does not work:
http://www.27lamps.com/Labs/AutoComplete/demo/json.html
None of the remote works ... have no idea why.
The same happens with my example:
http://www.27lamps.com/Labs/AutoComplete/demo/tags.html
Anyway, all
Learn to use Firebug - as I mentioned, the ajax request returns a 404.
It still does. Please come back when you have an actual JavaScript
problem.
Jörn
On Mon, Jul 14, 2008 at 6:16 PM, shapper [EMAIL PROTECTED] wrote:
Jörn,
I just uploaded all your example to my server and the json example
Jörn,
I just uploaded an ASP.NET application that shows exactly what the
problem was.
The commented script code is the one I used to try to solve my problem
but it does not work:
http://www.27lamps.com/Beta/AutoComplete/Tags.aspx
What should I do?
Thanks,
Miguel
On Jul 14, 6:02 pm, Jörn
Please, anyone?
On Jul 12, 6:46 pm, shapper [EMAIL PROTECTED] wrote:
Hi,
I can upload the client part but I am generating my JSON using ASP.NET
MVC and the project is not finish so I can't upload it because it uses
a SQL server.
Don't you have any idea what is going on?
I set up a page
You still haven't posted a testpage. It doesn't have to be dynamic, a
static file that delivers the content that your serverside usually
works just as well.
Jörn
On Sun, Jul 13, 2008 at 2:45 PM, shapper [EMAIL PROTECTED] wrote:
Please, anyone?
On Jul 12, 6:46 pm, shapper [EMAIL PROTECTED]
Hi,
With ASP.NET this is not so easy ...
Anyway, I tried to place your example and mine in the same page using
PHP, which I am really not very familiar:
http://www.27lamps.com/Labs/AutoComplete/AutoComplete.html
Sorry, but I am not really use with PHP.
Thanks,
Miguel
On Jul 13, 2:41 pm, Jörn
Hi,
I tried to replicate your code using the JSon string generated by
ASP.NET MVC.
I created a static php code as you did ... To be honest I am not
familiar with php. This was the best I was able to do ...
I have been trying everything to make this work ... I really don't
understand why my
Remote json is still rather cumbersome to handle. Here is an example,
take a look at the source:
http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/json.html
Jörn
On Sat, Jul 12, 2008 at 1:01 AM, shapper [EMAIL PROTECTED] wrote:
I also tried the following but until now I wasn't able
Hi,
I tried to make this work following your example but until now I
wasn't able to make this work?
Could you, please, help me out?
This is what I have at the moment:
$(#Tags).autocomplete(/File/GetTags, {
autoFill: true,
cacheLength: 1,
multiple: true,
Please upload a testpage and provide a link. There are too many things
that can go wrong here.
Jörn
On Sat, Jul 12, 2008 at 3:32 PM, shapper [EMAIL PROTECTED] wrote:
Hi,
I tried to make this work following your example but until now I
wasn't able to make this work?
Could you, please,
Hi,
I can upload the client part but I am generating my JSON using ASP.NET
MVC and the project is not finish so I can't upload it because it uses
a SQL server.
Don't you have any idea what is going on?
I set up a page with this and I will try to explain what I get. When I
use:
That strange format *is* JSON !
You need to use the formatResult option (I think that's the option
name). It will allow you to format the data for display.
On Jul 11, 12:08 pm, shapper [EMAIL PROTECTED] wrote:
Hello,
I am using JQuery AutoComplete with JSon. I created a function on my
server code which return the data.
Yes,
I tried the following:
$(#Tags).autocomplete(/File/GetTags, {
width: 260,
formatItem: function(item) {
return item.Name;
}
});
But this is not working. Any idea?
Thanks,
Miguel
On Jul 11, 7:03 pm, tlphipps [EMAIL PROTECTED] wrote:
You need
I also tried the following but until now I wasn't able to make it
work:
$(#Tags).autocomplete(/Professor/GetTags, {
autoFill: true,
cacheLength: 1,
multiple: true,
scrollHeight: 200,
selectFirst: false,
width: 260,
26 matches
Mail list logo