[jQuery] Re: jQuery AUTOCOMPLETE (by bassistance): submit on click

2010-02-18 Thread jjunior

That's brilliant!  Thanks.


RE: [jQuery] Autocomplete

2010-01-04 Thread amercer
Thanks

  _  

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Md. Ali Ahsan Rana
Sent: 04 January 2010 12:06
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Autocomplete


If you want to match ignoring the comma(may be this is what you want), then
you have to pass some extra parameters and some more suggestion will show up
besides the expected..

$("#suggest1").focus().autocomplete(cities,
{multiple: true,
 multipleSeparator:" ",
 matchContains:true}
);


-- 
http://ranacseruet.blogspot.com/



Re: [jQuery] Autocomplete

2010-01-04 Thread Md. Ali Ahsan Rana
If you want to match ignoring the comma(may be this is what you want), then
you have to pass some extra parameters and some more suggestion will show up
besides the expected..

$("#suggest1").focus().autocomplete(cities,
{multiple: true,
 multipleSeparator:" ",
 matchContains:true}
);


-- 
http://ranacseruet.blogspot.com/


Re: [jQuery] Autocomplete

2010-01-04 Thread Md. Ali Ahsan Rana
i just tried with this

cities = ["TownOne, County", "Town Two, County", "Town Three, County",
"TownFour, County"];
 $("#suggest1").autocomplete(cities);

its working correctly. The problem you said, event doesn't appear. So, can
you explain what you r using and what is happening actually?

Regards


ranacseruet 


RE: [jQuery] Autocomplete

2010-01-04 Thread amercer
Hi, Thanks for your reply.
 
Can you please confirm that if I have a file called mydata.js that includes
the following:
 
var mydata = [
"TownOne, County", "Town Two, County", "Town Three, County", "TownFour,
County", 
];
 
that using item.replace(...) as suggested will for example ensure:
 
1.  Town Two, County will be shown in the prompt list if the user types Town
Two C or Town Two Co etc... 
OR TownFour, County will be shown in the prompt list if the user types
TownFour C or TownFour Co etc... 
 
Sorry to ask this extra question it must be the New Year my brain is still
in Christmas mode...
 
Thanks again
 
Andrew

  _  

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Md. Ali Ahsan Rana
Sent: 04 January 2010 08:33
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Autocomplete


loop through all the items in array and use

item.replace(",","',")

this should be ok now...



-- 
http://ranacseruet.blogspot.com/



Re: [jQuery] Autocomplete

2010-01-04 Thread Md. Ali Ahsan Rana
loop through all the items in array and use

item.replace(",","',")

this should be ok now...



-- 
http://ranacseruet.blogspot.com/


RE: [jQuery] Autocomplete

2010-01-04 Thread amercer
Hi,
 
Thanks.
 
I still cannot pinpoint where I can handle the following problem, any
guidance greatly appreciated.
 
My data can have multiple words for one entry that must be
separated by a comma.
For example: array [ "Item 1", "Item 2", "Item, value3"... ];

When my clients type in the autocomplete field I need the comma to be
ignored, so for example:

If they type 'Item va' I need 'Item, value3' to be returned in the
autocomplete prompt list.  At the moment clients have to type 'Item,
va' to see 'Item, value3' in the autocomplete prompt list.  How can I
handle this.

Thanks again
 
Andrew

  _  

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of waseem sabjee
Sent: 02 January 2010 19:39
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Autocomplete


i would suggest you check out jQuery UI


On Sat, Jan 2, 2010 at 9:35 PM, AndrewM  wrote:


Hi,

I am new to jQuery and have 2 questions:

I am using the bassistance.de jQuery plug-in.

1.  For speed I have created my Array of data to be searched client
side in a .js file as I have 25k + items.  In Firefox and IE8 the auto
prompt is very fast - however in for some clients it is not - for
example some using IE7. How can I speed up the load process?

2.  My data can have multiple words for one entry that must be
separated by a comma.
For example: array [ "Item 1", "Item 2", "Item, value3"... ];

When my clients type in the autocomplete field I need the comma to be
ignored, so for example:

If they type 'Item va' I need 'Item, value3' to be returned in the
autocomplete prompt list.  At the moment clients have to type 'Item,
va' to see 'Item, value3' in the autocomplete prompt list.  How can I
handle this.

Thanks for your help.

Andrew





Re: [jQuery] Autocomplete

2010-01-02 Thread waseem sabjee
i would suggest you check out jQuery UI

On Sat, Jan 2, 2010 at 9:35 PM, AndrewM  wrote:

> Hi,
>
> I am new to jQuery and have 2 questions:
>
> I am using the bassistance.de jQuery plug-in.
>
> 1.  For speed I have created my Array of data to be searched client
> side in a .js file as I have 25k + items.  In Firefox and IE8 the auto
> prompt is very fast - however in for some clients it is not - for
> example some using IE7. How can I speed up the load process?
>
> 2.  My data can have multiple words for one entry that must be
> separated by a comma.
> For example: array [ "Item 1", "Item 2", "Item, value3"... ];
>
> When my clients type in the autocomplete field I need the comma to be
> ignored, so for example:
>
> If they type 'Item va' I need 'Item, value3' to be returned in the
> autocomplete prompt list.  At the moment clients have to type 'Item,
> va' to see 'Item, value3' in the autocomplete prompt list.  How can I
> handle this.
>
> Thanks for your help.
>
> Andrew
>


[jQuery] Re: jquery autocomplete should link to page

2009-12-22 Thread Axel
Thank you very much. This is working.

But it should happen after klicking on a result and not while typing.
Now I try to find the position in the code where the "clicking event"
is written and I can insert this. I think its somewhere in the
jquery.autocomplete.js .

Thank you!





On 22 Dez., 15:55, MorningZ  wrote:
> function formatItem(row) {
>       window.location = row[1]; //Send the user to URL 'row[1]'
>
> }
>
> On Dec 22, 7:33 am, Axel  wrote:
>
> > Hello Everbody,
>
> > i´m using "jquery autocomplete" on my site. In row [1] i put values
> > for building urls - and when I klick on it I want to move to the URL -
> > and not to autocomplete the input field (what is the originally
> > purpose of the autocomplete). So I want the suggested Items to have a
> > normal "-behavior".
>
> > function formatItem(row) {
> >         return ""+ row[0] + "";
>
> > }
>
> > Hoping someone has an easy solution.
>
> > Axel


[jQuery] Re: jquery autocomplete should link to page

2009-12-22 Thread MorningZ
function formatItem(row) {
  window.location = row[1]; //Send the user to URL 'row[1]'
}


On Dec 22, 7:33 am, Axel  wrote:
> Hello Everbody,
>
> i´m using "jquery autocomplete" on my site. In row [1] i put values
> for building urls - and when I klick on it I want to move to the URL -
> and not to autocomplete the input field (what is the originally
> purpose of the autocomplete). So I want the suggested Items to have a
> normal "-behavior".
>
> function formatItem(row) {
>         return ""+ row[0] + "";
>
> }
>
> Hoping someone has an easy solution.
>
> Axel


Re: [jQuery] autocomplete div don't disappear after move scroll

2009-11-12 Thread Andrei Eftimie
Works fine in FF 3.5.5

On Thu, Nov 12, 2009 at 6:36 PM, danielecr  wrote:
> try in http://www.confestetica.it/estetica/ (on the right)
> 1. typed some chars
> 2. move scrollbar with mouse
> 3. click elsewhere
> 4. div do not disappear as expected (at least by me)
>
> I loaded bgiframe plugin, there is something I have to do to make it
> behave as I expect?
>
>
> Daniele.
>



-- 
Andrei Eftimie
http://eftimie.com
+40 758 833 281

Punct
http://designpunct.ro


[jQuery] Re: Jquery autocomplete source code and instructions

2009-10-06 Thread gurram sangram reddy
thanks jorn

On Tue, Oct 6, 2009 at 4:38 PM, Jörn Zaefferer <
joern.zaeffe...@googlemail.com> wrote:

> Right here:
> http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> Source (for now) is here:
> http://bassistance-plugins.googlecode.com/svn/trunk/plugins/autocomplete/
>
> Jörn
>
>
> On Tue, Oct 6, 2009 at 8:36 AM, sangram  wrote:
>
>>
>> hi,
>>
>> i have used previous version of jquery autocomplete plugin.
>>
>> now i wanted to use the latest version of the plugin, but i am unable
>> to find the source anywhere!
>>
>> i have checked the site, the link to SVN is also not working. where
>> can i get the plugin and instructions to use it ?
>>
>> any help?
>>
>> regards
>>
>
>


[jQuery] Re: Jquery autocomplete source code and instructions

2009-10-06 Thread Jörn Zaefferer
Right here: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

Source (for now) is here:
http://bassistance-plugins.googlecode.com/svn/trunk/plugins/autocomplete/

Jörn

On Tue, Oct 6, 2009 at 8:36 AM, sangram  wrote:

>
> hi,
>
> i have used previous version of jquery autocomplete plugin.
>
> now i wanted to use the latest version of the plugin, but i am unable
> to find the source anywhere!
>
> i have checked the site, the link to SVN is also not working. where
> can i get the plugin and instructions to use it ?
>
> any help?
>
> regards
>


[jQuery] Re: JQuery Autocomplete Values/Presetting

2009-09-11 Thread alexbodn . groups



On Fri, Sep 11, 2009 at 22:44, Erick  wrote:


Hi Alex,

Thank you very much for the response, but I'm pretty new to this.
Done a LOT of vanilla js, but not much jquery.  Could you please help
me with the results trigger?

I'm assuming in doc.ready, do something like this:

$("#my_field").result (function(event, data, formatted) {
 // do something here?  but this isn't on-load, really.
});

you have to call it specifically in the code.
please node, the second parameter is value, not formatted. that's an error in 
the example.
in the function, you may set value to any field you like, so it will be part of 
the form as well.


Thanks again,

Erick

On Sep 10, 8:37 pm, alexbodn.gro...@gmail.com wrote:

preset "Two" as value for autocomplete field, and the 2 for the code field. 
then add a results trigger to set the value param received to the code field.



On Thu, Sep 10, 2009 at 19:42, Erick  wrote:

> I'm using the JQuery Autocomplete plug-in and having a great deal of
> difficulty setting the value of the field either in advance (before
> making it an autocomplete) or after page load.

> To start, I have a standard text box and was just echoing a value from
> php into the value="" param.  Then, on page load, I set the input to
> autocomplete.  That would wipe out the value I had entered.

> Next I tried setting it after setting the input as an autocomplete.
> That looked like it worked, but it really doesn't sync to the values
> in the search list.

> For more info, I am using a value/id array as the search values.  For
> those unfamiliar, the array is structured like:
> [ ['One',1],  ['Two',2],  ['Three',3] ]

> The autocomplete functionality works great and result gives me the ID,
> I just cannot seem to figure out how to preset the value to 2 and
> display 'Two', for example.

> Any help greatly appreciated!

> Erick

--
alex

 smime.p7s
< 1KViewDownload




--
alex



smime.p7s
Description: S/MIME Cryptographic Signature


[jQuery] Re: JQuery Autocomplete Values/Presetting

2009-09-11 Thread Erick

Hi Alex,

Thank you very much for the response, but I'm pretty new to this.
Done a LOT of vanilla js, but not much jquery.  Could you please help
me with the results trigger?

I'm assuming in doc.ready, do something like this:

$("#my_field").result (function(event, data, formatted) {
  // do something here?  but this isn't on-load, really.
});

Thanks again,

Erick

On Sep 10, 8:37 pm, alexbodn.gro...@gmail.com wrote:
> preset "Two" as value for autocomplete field, and the 2 for the code field. 
> then add a results trigger to set the value param received to the code field.
>
>
>
> On Thu, Sep 10, 2009 at 19:42, Erick  wrote:
>
> > I'm using the JQuery Autocomplete plug-in and having a great deal of
> > difficulty setting the value of the field either in advance (before
> > making it an autocomplete) or after page load.
>
> > To start, I have a standard text box and was just echoing a value from
> > php into the value="" param.  Then, on page load, I set the input to
> > autocomplete.  That would wipe out the value I had entered.
>
> > Next I tried setting it after setting the input as an autocomplete.
> > That looked like it worked, but it really doesn't sync to the values
> > in the search list.
>
> > For more info, I am using a value/id array as the search values.  For
> > those unfamiliar, the array is structured like:
> > [ ['One',1],  ['Two',2],  ['Three',3] ]
>
> > The autocomplete functionality works great and result gives me the ID,
> > I just cannot seem to figure out how to preset the value to 2 and
> > display 'Two', for example.
>
> > Any help greatly appreciated!
>
> > Erick
>
> --
> alex
>
>  smime.p7s
> < 1KViewDownload


[jQuery] Re: JQuery Autocomplete Values/Presetting

2009-09-10 Thread alexbodn . groups

preset "Two" as value for autocomplete field, and the 2 for the code field. 
then add a results trigger to set the value param received to the code field.

On Thu, Sep 10, 2009 at 19:42, Erick  wrote:


I'm using the JQuery Autocomplete plug-in and having a great deal of
difficulty setting the value of the field either in advance (before
making it an autocomplete) or after page load.

To start, I have a standard text box and was just echoing a value from
php into the value="" param.  Then, on page load, I set the input to
autocomplete.  That would wipe out the value I had entered.

Next I tried setting it after setting the input as an autocomplete.
That looked like it worked, but it really doesn't sync to the values
in the search list.

For more info, I am using a value/id array as the search values.  For
those unfamiliar, the array is structured like:
[ ['One',1],  ['Two',2],  ['Three',3] ]

The autocomplete functionality works great and result gives me the ID,
I just cannot seem to figure out how to preset the value to 2 and
display 'Two', for example.

Any help greatly appreciated!

Erick





--
alex



smime.p7s
Description: S/MIME Cryptographic Signature


[jQuery] Re: JQuery autocomplete got broke after i update it.

2009-08-06 Thread pankaj sharma
Hi All,

Can someone please help me to fix this issue? i am not sure if I am posting
in the right alias?

Thanks,
Pankaj

On Wed, Aug 5, 2009 at 9:02 PM, pankaj  wrote:

> Hi All,
>
> After I update JQuery autocomplete plugin (jQuery UI Autocomplete
> @VERSION), I found one issue. The issue is as follows.
> When I type "jua" in the autocomplete field. Four matches are returned
> for users with the first name juan. Then add an "n".Only the first
> match remains  in the list.
>
> I have come out from this issue by changing the parameter cacheLength:
> 0 in place of 1.
>
>$field.autocomplete({
>  url:ac_url,
>  cacheLength:1,
>
>  For the autocompletion data, it reads from the configuration files.
> Say in the files the data are in this way.
>
> jflores:Juan Flores:jflo...@gmail.com 
> jgomez:Juan Gomez:jgo...@gmail.com 
> jrafaela:Juan Carlos Rafaela:jrafa...@gmail.com
> jromo:Juan Romo:jr...@gmail.com 
> juanw:Juan Wang:ju...@gmail.com 
>
>  It works for previous issue, But creates another problem, If i change
> cacheLength to 0 then if i add some new name in the configuration file
> then it is not taking that updataed
>  data. If i change to 1 then after i type "juan" it displays the last
> one. That is "juanw" and it not displays the other 4name.
>
>
> I could not understand what is missing here. Please help me to resolve
> this issue.
>
> Please let me know if you need more info on this?
>
> Thanks,
>


[jQuery] Re: jquery autocomplete with dwr

2009-07-23 Thread renearaujo

sorry... i am beginner :) take it easy ;)

On Jul 23, 2009 11:08am, Ken  wrote:

how to disable firebug.



2009/7/23 reneara...@gmail.com>



Hi!


first: someone know one great (simple and easy) plugin for jquery for  
autocomplete/suggestion ?

second: someone use this plugin with DWR ?




thanks :)




--



--
-
Administrator : Ken Phan
Websmater : www.goldengate.com.vn
Listen to music is free : www.enghe.info
Ajax pagination: www.goldengate.com.vn/pagination



jQuery navigation: www.goldengate.com.vn/navigation
MP3 Ajax Flash webplayer: www.goldengate.com.vn/mp3
Blog me: http://my.opera.com/kenphan19/blog/



--




[jQuery] Re: jquery autocomplete with dwr

2009-07-23 Thread Ken
how to disable firebug.

2009/7/23 

> Hi!
>
> first: someone know one great (simple and easy) plugin for jquery for
> autocomplete/suggestion ?
> second: someone use this plugin with DWR ?
>
>
> thanks :)




-- 
-- 
-
Administrator : Ken Phan
Websmater : www.goldengate.com.vn
Listen to music is free :  www.enghe.info
Ajax pagination: www.goldengate.com.vn/pagination
jQuery navigation: www.goldengate.com.vn/navigation
MP3 Ajax Flash webplayer: www.goldengate.com.vn/mp3
Blog me: http://my.opera.com/kenphan19/blog/
--


[jQuery] Re: JQuery Autocomplete - conditional autocompletion between fields

2009-06-29 Thread Tom Worster

to set extraParams dynamically to the current value of other dom elements,
assign a function to the extraParams that retrieves the value from the dom,
e.g.

$("#state").autocomplete(url, {
extraParams: { 
town: function() { return $("#town").val(); }
} 
});

see http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields

alternatively, you can assign a static value, that of the input then the
autocomplete() method was involked (probably at page steup time), using
MorningZ's code quoted below.


now, to address your other question, if you also have:

$("#town").autocomplete(url, {
extraParams: { 
state: function() { return $("#state").val(); }
} 
});

then your backend at url can infer which input the user is typing into from
the GET parameter names sent.


but if you want, you could add another static parameter to explicitly say
what is being sent in the q parameter rather than inferring from the other
parameter names, e.g.:

$("#state").autocomplete(url, {
extraParams: { 
qis: 'state',
town: function() { return $("#town").val(); }
} 
});
$("#town").autocomplete(url, {
extraParams: { 
qis: 'town',
state: function() { return $("#state").val(); }
} 
});



On 6/28/09 3:23 PM, "MorningZ"  wrote:

> 
> Use AutoComplete's "extraParams" hook
> 
> http://docs.jquery.com/Plugins/Autocomplete/autocomplete#toptions
> 
> so it would be like:
> 
> $("your state search textbox").autocomplete(
> "/ajax/location.php",
> { extraParams: { type: $("#state").val() } }
> );
> 
> 
> 
> On Jun 26, 12:34 pm, 01101010001010001010 
> wrote:
>> Hi,
>> 
>> First of all, thanks for the autocomplete code - it's excellent.
>> Apologies if this next question is too simple, but I couldn't get the
>> answer on google (lmgtfy.com)
>> 
>> I have two autocomplete fields, for address-matching, which for the
>> sake of argument could be called state and town.
>> 
>> I have autocomplete on state go to /ajax/location.php?type=state and
>> autocomplete on town go to /ajax/location.php?type=town
>> 
>> My location.php script works fine delivering autocomplete results for
>> each field individually.
>> 
>> I want to pass the contents of ${#state} to the script when
>> autocompleting town (so it will only autocomplete for towns in the
>> already-chosen state).
>> 
>> I can't see how to tell autocomplete to pass ${#state}.val in the call
>> for town.
>> 
>> Any thoughts gratefully received - and thanks again for the brilliant
>> code.
>> 
>> Peter




[jQuery] Re: JQuery Autocomplete - conditional autocompletion between fields

2009-06-28 Thread MorningZ

Use AutoComplete's "extraParams" hook

http://docs.jquery.com/Plugins/Autocomplete/autocomplete#toptions

so it would be like:

$("your state search textbox").autocomplete(
"/ajax/location.php",
{ extraParams: { type: $("#state").val() } }
);



On Jun 26, 12:34 pm, 01101010001010001010 
wrote:
> Hi,
>
> First of all, thanks for the autocomplete code - it's excellent.
> Apologies if this next question is too simple, but I couldn't get the
> answer on google (lmgtfy.com)
>
> I have two autocomplete fields, for address-matching, which for the
> sake of argument could be called state and town.
>
> I have autocomplete on state go to /ajax/location.php?type=state and
> autocomplete on town go to /ajax/location.php?type=town
>
> My location.php script works fine delivering autocomplete results for
> each field individually.
>
> I want to pass the contents of ${#state} to the script when
> autocompleting town (so it will only autocomplete for towns in the
> already-chosen state).
>
> I can't see how to tell autocomplete to pass ${#state}.val in the call
> for town.
>
> Any thoughts gratefully received - and thanks again for the brilliant
> code.
>
> Peter


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread Dushyant Patel

Hey i did not get you. Could please tell me more in details, if
possible with some code/examples.

Thanks in advance.

On Jun 23, 11:28 am, tarave  wrote:
> As I mentioned in my earlier post I have the same problem with
> autocomplete.
>
> The fix/workaround that I added to my page was to add a validation
> that is executed just prior to the page submit.
>
> The validation takes the typed in value and queries my data source to
> verify the typed in value exists.  If the value does not exist the
> validation raises an error the user has to deal with.  Doing these met
> all my requirements and I did not have to change the plugin logic.
>
> Regards,
> Todd


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread Dushyant Patel

It returns an empty, but still layer is there, it should be hided.

On Jun 22, 11:10 am, Jörn Zaefferer 
wrote:
> What happens when your service doesn't return a result? As long as it
> returns an empty result (not an error), it should work fine.
>
> Jörn
>
> On Mon, Jun 22, 2009 at 5:01 PM, Dushyant Patel 
> wrote:
>
> > Hello,
>
> > I am using jQuery Autocomplete Plug-ins(http://bassistance.de/jquery-
> > plugins/jquery-plugin-autocomplete/).
>
> > Let me explain my problem:
>
> > If i am looking for "shirt" and star typing "shi" and it showing me 10
> > results for shirt, but now after "shi" if i type like "shixyzyz" it
> > should clear list and hide autocomplete layer.
>
> > In my case it is not doing that. Layer stay there with old results.
>
> > Pleaes note that i am making service call using JSONP and following is
> > my code.
>
> > $j(".autocomplete").autocomplete('URL/Service.svc/REST/SEARCH/', {
> >                minChars: 3,
> >                matchContains: true,
> >                selectFirst: false,
> >                cacheLength: 0,
> >                width:307,
> >                dataType: "jsonp",
>
> > any suggestion or hint on this.
>
> > Please help me.
>
> > Thanks in advance.


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-23 Thread tarave

As I mentioned in my earlier post I have the same problem with
autocomplete.

The fix/workaround that I added to my page was to add a validation
that is executed just prior to the page submit.

The validation takes the typed in value and queries my data source to
verify the typed in value exists.  If the value does not exist the
validation raises an error the user has to deal with.  Doing these met
all my requirements and I did not have to change the plugin logic.

Regards,
Todd


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread Dushyant Patel

I tried following one:

In the request function after the line var data = cache.load(term); I
added the following:

if (!data) {
options.isEmpty(0);
} else {
options.isEmpty(data.length);
}

And in my autocomplete code, I added the following:

isEmpty: function(data) {
if (data == 0) {
$("#result").html("No match found");
}
}



but i am getting flicker effect, and most imp is if i type SPACE that
layer is getting invisible. it should not.

Can any one suggest me best option for this.

Jorn: Could you please look into that, please help me out.

Thanks

On Jun 22, 5:19 pm, tarave  wrote:
> here is a 
> link...http://groups.google.com/group/jquery-en/browse_thread/thread/9011e7f...
>
> On Jun 22, 3:18 pm, tarave  wrote:
>
> > I'm having the same problem today.  Looks like another person did too
> > and thier fix was to put a hack into the autocomplete plugin code.


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread tarave

I'm having the same problem today.  Looks like another person did to
and thier fix was to put a hack into the autocomplete plugin code.



[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread tarave

here is a link... 
http://groups.google.com/group/jquery-en/browse_thread/thread/9011e7faa57dca06

On Jun 22, 3:18 pm, tarave  wrote:
> I'm having the same problem today.  Looks like another person did too
> and thier fix was to put a hack into the autocomplete plugin code.


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread Dushyant Patel


it return result but its null. and in that  case i want to hide layer
by calling select.hide(); but where should i call it.

where to check that data==null and call select.hide();

Please help me on this.

Thanks


On Jun 22, 11:10 am, Jörn Zaefferer 
wrote:
> What happens when yourservicedoesn't return a result? As long as it
> returns an empty result (not an error), it should work fine.
>
> Jörn
>
> On Mon, Jun 22, 2009 at 5:01 PM, Dushyant Patel 
> wrote:
>
> > Hello,
>
> > I am using jQueryAutocompletePlug-ins(http://bassistance.de/jquery-
> > plugins/jquery-plugin-autocomplete/).
>
> > Let me explain my problem:
>
> > If i am looking for "shirt" and star typing "shi" and it showing me 10
> > results for shirt, but now after "shi" if i type like "shixyzyz" it
> > should clear list and hideautocompletelayer.
>
> > In my case it is not doing that. Layer stay there with old results.
>
> > Pleaes note that i am makingservicecall using JSONP and following is
> > my code.
>
> > $j(".autocomplete").autocomplete('URL/Service.svc/REST/SEARCH/', {
> >                minChars: 3,
> >                matchContains: true,
> >                selectFirst: false,
> >                cacheLength: 0,
> >                width:307,
> >                dataType: "jsonp",
>
> > any suggestion or hint on this.
>
> > Please help me.
>
> > Thanks in advance.


[jQuery] Re: jQuery Autocomplete - After service call if result is NULL then layer should be invisible

2009-06-22 Thread Jörn Zaefferer

What happens when your service doesn't return a result? As long as it
returns an empty result (not an error), it should work fine.

Jörn

On Mon, Jun 22, 2009 at 5:01 PM, Dushyant Patel wrote:
>
> Hello,
>
> I am using jQuery Autocomplete Plug-ins(http://bassistance.de/jquery-
> plugins/jquery-plugin-autocomplete/).
>
> Let me explain my problem:
>
> If i am looking for "shirt" and star typing "shi" and it showing me 10
> results for shirt, but now after "shi" if i type like "shixyzyz" it
> should clear list and hide autocomplete layer.
>
> In my case it is not doing that. Layer stay there with old results.
>
> Pleaes note that i am making service call using JSONP and following is
> my code.
>
> $j(".autocomplete").autocomplete('URL/Service.svc/REST/SEARCH/', {
>                minChars: 3,
>                matchContains: true,
>                selectFirst: false,
>                cacheLength: 0,
>                width:307,
>                dataType: "jsonp",
>
> any suggestion or hint on this.
>
> Please help me.
>
> Thanks in advance.
>
>


[jQuery] Re: Jquery Autocomplete Problem

2009-05-24 Thread Tom Worster

i assume you are using this plugin?
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

if so, why did you put the call to autocomplete() inside an event handler?

normally autocomplete() is called on page ready and it establishes its own
event handlers.
 

On 5/22/09 1:50 PM, "the_guru"  wrote:

> my script is->
> 
> $(".stock_item").live("keypress",function(){
> console.log($(this));
> $(this)
> .autocomplete("includes/pages/stock_item_autocomplete.php",{
> width:150,
> max:5,
> multiple: true,
> }).result(function(){
> 
> var name= $(this).val();
> 
> if(name.match("#")){
> var stock_id= parseInt( name.split("#")[0]);
> 
> $(this).val(name.split("#")[1]);
> 
> $(this).next("input[name=stock_item[]]").val(stock_id);
> }
> });
> 
> });
> 
> this script gets the 1#Nokia1166 and stores the 1 into the hidden
> field but
> my problem is it does not trigger even on the first time and some time
> not at all
> 
> help needed please




[jQuery] Re: Jquery Autocomplete Problem

2009-05-22 Thread the_guru

@wesleycjx


I guess the event is called on "keypress" event.


i have a similar sort of problem like  deafGuru

my script is->

$(".stock_item").live("keypress",function(){
console.log($(this));
$(this)

.autocomplete("includes/pages/stock_item_autocomplete.php",{
width:150,
max:5,
multiple: true,
}).result(function(){

var name= $(this).val();

if(name.match("#")){
var stock_id= parseInt( name.split("#")[0]);

$(this).val(name.split("#")[1]);


$(this).next("input[name=stock_item[]]").val(stock_id);
}
});

});

this script gets the 1#Nokia1166 and stores the 1 into the hidden
field but
my problem is it does not trigger even on the first time and some time
not at all

help needed please


[jQuery] Re: Jquery Autocomplete Problem

2009-03-25 Thread wesley...@gmail.com

Hi,
i have a question,
how to manually fire the autocomplete event?


aa,
bb,
cc,
dd ...

$(document).ready(function(){
$("#acTxt").autocomplete(theUrl, {
minChars: 2,
matchContains: true,
max: 20
});

$(".pTxt").click(function() {
$("#acTxt").val($(this).html()? $(this).html():'');
});
});


if the user click on SPAN with class 'pTxt', the innerHTML of the SPAN
will place in the textbox,
how to activate the autocomplete without pressing UP, DOWN, PAGE UP,
and ?


[jQuery] Re: Jquery Autocomplete Problem

2009-03-15 Thread brian

Don't pass true to clone() as you're copying the event handlers. I
suspect that's the problem.

On Sun, Mar 15, 2009 at 8:26 PM, deafGuru  wrote:
>
> Hi,
>
> I have a bug with JQuery Autocomplete plugin. I don't know whether
> it's a bug or feature by design. The bug is easy to produce on-demand.
>
> Step-by-step to produce a bug.
> . Click to add new Author textbox.
> . Select second Author textbox to focus.
> . Type first two characters, says, 'La'.
> . Autocomplete list is popped up on the second textbox as expected.
> . Type 'DOWN' key one time.
> . It causes to jump to first original Author textbox.
> Why? Instead of moving a highlight to second item of autocomplete list
> on second textbox.
>
> The code is here:
> 
>  media="screen">
> 
> 
> 
> $(document).ready(function(){
>        $("#author_0").autocomplete( ,{minChars:2,autoFill:true});
>        $("#addAuthor").click(function(){
>                var oldid=$("#authorDiv input:last").attr("id");
>                var newid="author_"+(parseInt(oldid.substr(12))+1);
>                $("#authorDiv div:last").clone(true).insertAfter("#authorDiv
> div:last");
>                $("#authorDiv input:last")
>                        .attr("id",newid)
>                        .removeAttr("value");
>                $("#"+newid).autocomplete(  url>,{minChars:2,autoFill:true});
>        });
> });
> 
> 
> 
> AutoComplete Field - Acid Test
> 
>        
>                Author: 
>                
>        
> 
> 
> 
>
> Any resolution? JQuery autocomplete seems not following current id?


[jQuery] Re: jQuery Autocomplete Documentation for Eclipse JSDT/WTP 3 - JsDoc

2009-02-23 Thread Jörn Zaefferer

We provide an export of our documentation in the OpenAjax Metadata
format, which is already supported by Aptana (an alterantive to
JSDT/WTP), and also by other IDE, at least planned for Visual Studio,
Dreamweaver etc.

You can generate the metadata via the openAjaxMetadata target from our
ant build: http://jqueryjs.googlecode.com/svn/trunk/jquery/build.xml

Jörn

On Mon, Feb 23, 2009 at 7:11 AM, rwpreece  wrote:
>
> I noticed while downloading jquery that there is a download of Visual
> Studio documentation so that you get code / autocompletion within
> Visual Studio.
>
> It would be really cool if you could provide documentation for Eclipse
> JSDT/WTP 3 that would allow the editor to provide code completion and
> "hover text" for jQuery.
>
> The following link takes you to the Eclipse JSDT wiki page where
> you'll find a "Libraries" topic that describes how to add libraries
> and code completion documentation to your eclipse projects.
>
> http://wiki.eclipse.org/index.php/ATF/JSDT#Libraries
>
> Please check it out and see if you can provide the JsDoc files for
> jQuery.
>
> As a fairly new java developer, having code completion in your IDE is
> tremendously helpful and increases you productivity tremendously.
>
> In addition, there is a huge number of developer that use Eclipse for
> their development.  You could really gain some ground with those
> developers and an edge over your competition by making your tool even
> easier to user.
>
> Thanks so much for listening.
>
>


[jQuery] Re: jQuery AutoComplete - how to post a variable if option is selected?

2009-02-06 Thread Han

Solved my own problem.  See solution here:
http://groups.google.com/group/jquery-en/msg/89adfbd3e15fde09 on
discussion: 
http://groups.google.com/group/jquery-en/browse_thread/thread/84950b404129b00b

On Feb 6, 10:29 am, Han  wrote:
> James, that problem that you just described is the exact problem that
> I am having.  I can get the autocomplete plugin to update a hidden
> input with an id value perfectly fine if the user selects a value from
> the list and triggers the result() function, however I also need it to
> clear the hidden input in every other case.  Do you know how to
> accomplish this, or what part of the autocomplete plugin code might be
> relevant if I were to add something in?
>
> Thanks.
>
> On Feb 3, 6:00 pm, James  wrote:
>
> > One way I can think of is that you make a JSON list that has an "id"
> > and "name" pair. When an existing option is selected, using 
> > theAutocomplete'sresult() function, add the id's value to some JS
> > variable.
> > (result() 
> > function:http://docs.jquery.com/Plugins/Autocomplete/result#handler)
>
> > If it's typed in, the variable won't be set (because the result()
> > function would not be triggered).
>
> > Then when the form is submitted, use the extraParams option to pass
> > the id value of that JS variable.
>
> > You'd probably want to find a way to clear that JS variable also
> > (probably through a typing event). There might be the possibility that
> > someone selects from a list, the variable gets set, and decides to
> > type his own name. But the variable is still set, which is incorrect.
>
> > On Feb 3, 12:19 pm, ripcurlksm  wrote:
>
> > > I am using a jQueryAutoCompleteplugin which fills in text as you type. I
> > > need to find a way when the page is submitted (submit.php) to determine if
> > > the user choose a company from the list, or if they typed in their own
> > > unique company.
>
> > > If an option is selected, can i have jQuery post an extra $_POST variable
> > > like "new" or "existing" so I can pick it up on the submit.php page? Or 
> > > when
> > > an option is selected, can I have .js write a hidden tag which contains 
> > > the
> > > variable "existing"?
>
> > > Example:
> > > [url]http://www.psylicyde.com/_old/autocomplete/[/url]
>
> > > Source Code:
> > > [url]http://www.psylicyde.com/_old/autocomplete/autocomplete.zip[/url]
>
> > > The end goal here is to post a variable on the next page if the user
> > > selected an option from theautocompletelist.
> > > --
> > > View this message in 
> > > context:http://www.nabble.com/jQuery-AutoComplete---how-to-post-a-variable-if...
> > > Sent from the jQuery General Discussion mailing list archive at 
> > > Nabble.com.


[jQuery] Re: jQuery AutoComplete - how to post a variable if option is selected?

2009-02-06 Thread Han

James, that problem that you just described is the exact problem that
I am having.  I can get the autocomplete plugin to update a hidden
input with an id value perfectly fine if the user selects a value from
the list and triggers the result() function, however I also need it to
clear the hidden input in every other case.  Do you know how to
accomplish this, or what part of the autocomplete plugin code might be
relevant if I were to add something in?

Thanks.

On Feb 3, 6:00 pm, James  wrote:
> One way I can think of is that you make a JSON list that has an "id"
> and "name" pair. When an existing option is selected, using 
> theAutocomplete'sresult() function, add the id's value to some JS
> variable.
> (result() function:http://docs.jquery.com/Plugins/Autocomplete/result#handler)
>
> If it's typed in, the variable won't be set (because the result()
> function would not be triggered).
>
> Then when the form is submitted, use the extraParams option to pass
> the id value of that JS variable.
>
> You'd probably want to find a way to clear that JS variable also
> (probably through a typing event). There might be the possibility that
> someone selects from a list, the variable gets set, and decides to
> type his own name. But the variable is still set, which is incorrect.
>
> On Feb 3, 12:19 pm, ripcurlksm  wrote:
>
> > I am using a jQueryAutoCompleteplugin which fills in text as you type. I
> > need to find a way when the page is submitted (submit.php) to determine if
> > the user choose a company from the list, or if they typed in their own
> > unique company.
>
> > If an option is selected, can i have jQuery post an extra $_POST variable
> > like "new" or "existing" so I can pick it up on the submit.php page? Or when
> > an option is selected, can I have .js write a hidden tag which contains the
> > variable "existing"?
>
> > Example:
> > [url]http://www.psylicyde.com/_old/autocomplete/[/url]
>
> > Source Code:
> > [url]http://www.psylicyde.com/_old/autocomplete/autocomplete.zip[/url]
>
> > The end goal here is to post a variable on the next page if the user
> > selected an option from theautocompletelist.
> > --
> > View this message in 
> > context:http://www.nabble.com/jQuery-AutoComplete---how-to-post-a-variable-if...
> > Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: jQuery AutoComplete - how to post a variable if option is selected?

2009-02-03 Thread James

One way I can think of is that you make a JSON list that has an "id"
and "name" pair. When an existing option is selected, using the
Autocomplete's result() function, add the id's value to some JS
variable.
(result() function: http://docs.jquery.com/Plugins/Autocomplete/result#handler)

If it's typed in, the variable won't be set (because the result()
function would not be triggered).

Then when the form is submitted, use the extraParams option to pass
the id value of that JS variable.

You'd probably want to find a way to clear that JS variable also
(probably through a typing event). There might be the possibility that
someone selects from a list, the variable gets set, and decides to
type his own name. But the variable is still set, which is incorrect.


On Feb 3, 12:19 pm, ripcurlksm  wrote:
> I am using a jQuery AutoComplete plugin which fills in text as you type. I
> need to find a way when the page is submitted (submit.php) to determine if
> the user choose a company from the list, or if they typed in their own
> unique company.
>
> If an option is selected, can i have jQuery post an extra $_POST variable
> like "new" or "existing" so I can pick it up on the submit.php page? Or when
> an option is selected, can I have .js write a hidden tag which contains the
> variable "existing"?
>
> Example:
> [url]http://www.psylicyde.com/_old/autocomplete/[/url]
>
> Source Code:
> [url]http://www.psylicyde.com/_old/autocomplete/autocomplete.zip[/url]
>
> The end goal here is to post a variable on the next page if the user
> selected an option from the autocomplete list.
> --
> View this message in 
> context:http://www.nabble.com/jQuery-AutoComplete---how-to-post-a-variable-if...
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.


[jQuery] Re: Jquery autocomplete with spring MVC

2008-12-12 Thread anny

Thank you so much. It works great.

On Dec 11, 5:05 pm, "Jörn Zaefferer" 
wrote:
> Though in this case you don't really need JSON, just a line-delimited list.
>
> searchVal =  ServletRequestUtils.getStringParameter(request, "q");
> list= service.getResult(searchVal );
> for (String entry : list) {
>   response.getWriter().write(entry + "\\n");}
>
> return null;
>
> On Thu, Dec 11, 2008 at 11:03 PM, Jörn Zaefferer
>
>
>
>  wrote:
> > You should use a JSON library (see json.org) to generate valid JSON,
> > then write that directly to the response, returning null to indicate
> > to Spring that the response is already rendered.
>
> > Something like this:
>
> > searchVal =  ServletRequestUtils.getStringParameter(request, "q");
> > list= service.getResult(searchVal );
> > response.getWriter().write(new JSONArray(list).toString());
> > return null;
>
> > Jörn
>
> > On Thu, Dec 11, 2008 at 8:34 PM,anny<2000.ann.s...@gmail.com> wrote:
>
> >> I have jquery auto complete example working. Trying to integrate with
> >> spring MVC.
>
> >> I use InternalResourceViewResolver and SimpleUrlHandlerMapping.
>
> >> I am trying to pass url in autocomplete(url), which is mapped to
> >> multiactioncontroller which returns array based on value entered in
> >> tex box.
> >> But its returning entire jsp instead of array.
>
> >> Jsp
>
> >> Code:
> >> 
> >> 
> >>   http://code.jquery.com/jquery-latest.js";>
> >> http://dev.jquery.com/view/trunk/plugins/
> >> autocomplete/demo/main.css" type="text/css" />
> >>  http://dev.jquery.com/view/trunk/
> >> plugins/autocomplete/jquery.autocomplete.css" type="text/css" />
> >>  http://dev.jquery.com/view/trunk/
> >> plugins/autocomplete/jquery.autocomplete.js">
> >>  http://dev.jquery.com/view/trunk/
> >> plugins/autocomplete/lib/jquery.bgiframe.min.js">
> >>  http://dev.jquery.com/view/trunk/
> >> plugins/autocomplete/lib/query.ajaxQueue.js">
> >>  http://dev.jquery.com/view/trunk/
> >> plugins/autocomplete/lib/thickbox-compressed.js">
> >>  
> >>  $(document).ready(function(){
> >>      var url = "searchResult.htm";
> >>    $("#example").autocomplete(url);
> >>      });
> >>  
> >> 
> >> 
> >>  API Reference:  (try "C" or "E")
> >> 
> >> 
>
> >> Here is what I return in multiaction actroller
>
> >> Code:
> >> searchVal =  ServletRequestUtils.getStringParameter(request, "q");
> >> list= service.getResult(searchVal );
> >> return new ModelAndView("SEARCH",  "Arr",  list.toArray());
>
> >> Thanks in advance.
> >> Any help will be appreciated.
>
> >>Anny- Hide quoted text -
>
> - Show quoted text -


[jQuery] Re: Jquery autocomplete with spring MVC

2008-12-11 Thread Jörn Zaefferer
Though in this case you don't really need JSON, just a line-delimited list.

searchVal =  ServletRequestUtils.getStringParameter(request, "q");
list= service.getResult(searchVal );
for (String entry : list) {
  response.getWriter().write(entry + "\\n");
}
return null;

On Thu, Dec 11, 2008 at 11:03 PM, Jörn Zaefferer
 wrote:
> You should use a JSON library (see json.org) to generate valid JSON,
> then write that directly to the response, returning null to indicate
> to Spring that the response is already rendered.
>
> Something like this:
>
> searchVal =  ServletRequestUtils.getStringParameter(request, "q");
> list= service.getResult(searchVal );
> response.getWriter().write(new JSONArray(list).toString());
> return null;
>
> Jörn
>
> On Thu, Dec 11, 2008 at 8:34 PM, anny <2000.ann.s...@gmail.com> wrote:
>>
>> I have jquery auto complete example working. Trying to integrate with
>> spring MVC.
>>
>> I use InternalResourceViewResolver and SimpleUrlHandlerMapping.
>>
>> I am trying to pass url in autocomplete(url), which is mapped to
>> multiactioncontroller which returns array based on value entered in
>> tex box.
>> But its returning entire jsp instead of array.
>>
>>
>> Jsp
>>
>> Code:
>> 
>> 
>>   http://code.jquery.com/jquery-latest.js";>
>> http://dev.jquery.com/view/trunk/plugins/
>> autocomplete/demo/main.css" type="text/css" />
>>  http://dev.jquery.com/view/trunk/
>> plugins/autocomplete/jquery.autocomplete.css" type="text/css" />
>>  http://dev.jquery.com/view/trunk/
>> plugins/autocomplete/jquery.autocomplete.js">
>>  http://dev.jquery.com/view/trunk/
>> plugins/autocomplete/lib/jquery.bgiframe.min.js">
>>  http://dev.jquery.com/view/trunk/
>> plugins/autocomplete/lib/query.ajaxQueue.js">
>>  http://dev.jquery.com/view/trunk/
>> plugins/autocomplete/lib/thickbox-compressed.js">
>>  
>>  $(document).ready(function(){
>>  var url = "searchResult.htm";
>>$("#example").autocomplete(url);
>>  });
>>  
>> 
>> 
>>  API Reference:  (try "C" or "E")
>> 
>> 
>>
>>
>> Here is what I return in multiaction actroller
>>
>> Code:
>> searchVal =  ServletRequestUtils.getStringParameter(request, "q");
>> list= service.getResult(searchVal );
>> return new ModelAndView("SEARCH",  "Arr",  list.toArray());
>>
>> Thanks in advance.
>> Any help will be appreciated.
>>
>> Anny
>>
>>
>


[jQuery] Re: Jquery autocomplete with spring MVC

2008-12-11 Thread Jörn Zaefferer
You should use a JSON library (see json.org) to generate valid JSON,
then write that directly to the response, returning null to indicate
to Spring that the response is already rendered.

Something like this:

searchVal =  ServletRequestUtils.getStringParameter(request, "q");
list= service.getResult(searchVal );
response.getWriter().write(new JSONArray(list).toString());
return null;

Jörn

On Thu, Dec 11, 2008 at 8:34 PM, anny <2000.ann.s...@gmail.com> wrote:
>
> I have jquery auto complete example working. Trying to integrate with
> spring MVC.
>
> I use InternalResourceViewResolver and SimpleUrlHandlerMapping.
>
> I am trying to pass url in autocomplete(url), which is mapped to
> multiactioncontroller which returns array based on value entered in
> tex box.
> But its returning entire jsp instead of array.
>
>
> Jsp
>
> Code:
> 
> 
>   http://code.jquery.com/jquery-latest.js";>
> http://dev.jquery.com/view/trunk/plugins/
> autocomplete/demo/main.css" type="text/css" />
>  http://dev.jquery.com/view/trunk/
> plugins/autocomplete/jquery.autocomplete.css" type="text/css" />
>  http://dev.jquery.com/view/trunk/
> plugins/autocomplete/jquery.autocomplete.js">
>  http://dev.jquery.com/view/trunk/
> plugins/autocomplete/lib/jquery.bgiframe.min.js">
>  http://dev.jquery.com/view/trunk/
> plugins/autocomplete/lib/query.ajaxQueue.js">
>  http://dev.jquery.com/view/trunk/
> plugins/autocomplete/lib/thickbox-compressed.js">
>  
>  $(document).ready(function(){
>  var url = "searchResult.htm";
>$("#example").autocomplete(url);
>  });
>  
> 
> 
>  API Reference:  (try "C" or "E")
> 
> 
>
>
> Here is what I return in multiaction actroller
>
> Code:
> searchVal =  ServletRequestUtils.getStringParameter(request, "q");
> list= service.getResult(searchVal );
> return new ModelAndView("SEARCH",  "Arr",  list.toArray());
>
> Thanks in advance.
> Any help will be appreciated.
>
> Anny
>
>


[jQuery] Re: jquery autocomplete local data

2008-09-29 Thread Mark Szu

On Sep 11, 1:09 pm, Julian <[EMAIL PROTECTED]> wrote:
> anyone?

The way around it is to save the input widget names into the array and
initialize it again after flush.

___Mark Szu


[jQuery] Re: jquery autocomplete local data

2008-09-11 Thread Julian

anyone?

On 7 Септ, 20:00, Julian <[EMAIL PROTECTED]> wrote:
> Thanks for the fast response, but after i use flushCache() there are
> no results after i press key into the inputbox.
> I ask this question because i use more than one input box with that
> data, and after i update the JSON data i must unbind all inputs.
> Greetings!


[jQuery] Re: jquery autocomplete local data

2008-09-07 Thread Julian

Thanks for the fast response, but after i use flushCache() there are
no results after i press key into the inputbox.
I ask this question because i use more than one input box with that
data, and after i update the JSON data i must unbind all inputs.
Greetings!


[jQuery] Re: jquery autocomplete local data

2008-09-07 Thread Jörn Zaefferer
You can flush the cache, that should make modifications to the data
array visible: http://docs.jquery.com/Plugins/Autocomplete/flushCache

Jörn

On Sun, Sep 7, 2008 at 4:31 PM, Julian <[EMAIL PROTECTED]> wrote:
>
> Greetings!
> I`m using jquery auto complete plugin from
> http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
> Initialized with local JSON data which i receive from server the data
> is something like
> var data = [{"elem0":"data0"},{"elem1":"data1"}]
> After that i`m trying to  add new element to the data variable by
> data.push({"elem2":"data2"})
> but the auto complete plugin works with the data which is initialized.
> I don`t have access to add or remove new elements to the
> variable which i initialize with atucomplete without unbind and call
> autocomplete again.
> Is there any other solutions?
>
>


[jQuery] Re: Jquery Autocomplete plugin question = Can I feed it an xml or js file for the completion items?

2008-05-20 Thread mickes

Nevermind, I found the localdata.js file!!!



On May 20, 8:00 am, mickes <[EMAIL PROTECTED]> wrote:
> Has anyone used the Autocomplete plugin by feeding it an xml file not
> generated from a sql result?
>
> I am writing a Greasemonkey script to autofill an input box from a
> list of possible selections that I would like to store in an xml file
> or a js file inside the Greasemonkey script.
>
> Anyone have a tutorial, sample etc.?
>
> I guess it would be similar to the php script but I do not want to
> query a db. I just want to supply a flat file.
>
> Thanks & regards,
> Mike


[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New

2007-09-18 Thread Alexsandro_xpt

No yet, but in next time I will post something ;)

On 18 set, 01:54, edavis <[EMAIL PROTECTED]> wrote:
> I am looking into refactoring AutoSuggest to use jQuery.  Any progress
> on your side?
>
> On Sep 10, 2:07 pm, Alexsandro_xpt <[EMAIL PROTECTED]> wrote:
>
> > Please.. somebody...



[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New

2007-09-18 Thread edavis

I am looking into refactoring AutoSuggest to use jQuery.  Any progress
on your side?

On Sep 10, 2:07 pm, Alexsandro_xpt <[EMAIL PROTECTED]> wrote:
> Please.. somebody...



[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New

2007-09-11 Thread Alexsandro_xpt

Please.. somebody...



[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New

2007-09-09 Thread Alexsandro_xpt

No body?

On 7 set, 15:08, Alexsandro_xpt <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I need/would like get (jQuery 
> Autocomplete)http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
> efficiency and make a new AutoSuggest(http://www.brandspankingnew.net/
> archive/2006/08/ajax_auto-suggest_auto-complete.html) because it
> AutoSuggest is a nice design, somebody know help me?
>
> Someone think do it sometime? I think, but I need a help.
>
> Thank in advance



[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New

2007-09-09 Thread Alexsandro_xpt

Hellow???



[jQuery] Re: jquery autocomplete plugin with php

2007-09-09 Thread Saidur

Thanks for the help.

On Sep 8, 12:33 am, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Giovanni Battista Lenoci schrieb:
>
> > Saidur ha scritto:
> >> Hello ,
>
> >> I am a new bie in jquey. I need  tutorial  to work on jquery auto
> >> complete plugin with php .
> >> I need code. That i will test .
>
> >> Thanks
>
> > I used this one, it has documentation and examples.
>
> >http://www.dyve.net/jquery/?autocomplete
>
> The successor to that plugin is 
> here:http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
>
> -- Jörn



[jQuery] Re: jquery autocomplete plugin with php

2007-09-07 Thread Jörn Zaefferer


Giovanni Battista Lenoci schrieb:


Saidur ha scritto:

Hello ,

I am a new bie in jquey. I need  tutorial  to work on jquery auto
complete plugin with php .
I need code. That i will test .

Thanks


  

I used this one, it has documentation and examples.

http://www.dyve.net/jquery/?autocomplete
The successor to that plugin is here: 
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/


-- Jörn


[jQuery] Re: jquery autocomplete plugin with php

2007-09-07 Thread Giovanni Battista Lenoci


Saidur ha scritto:

Hello ,

I am a new bie in jquey. I need  tutorial  to work on jquery auto
complete plugin with php .
I need code. That i will test .

Thanks


  

I used this one, it has documentation and examples.

http://www.dyve.net/jquery/?autocomplete

Bye


[jQuery] Re: jQuery Autocomplete Mod

2007-05-31 Thread tuliopaiva

Other thing...

How Could I pass a string with the id of hidden field for the
"findValue" function??

Thank You.


On 31 maio, 14:32, tuliopaiva <[EMAIL PROTECTED]> wrote:
> It worked!
> Thank You!
>
> On 31 maio, 10:22, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
> wrote:
>
> > >Hello!
>
> > >First thing: I'm starting in jquery and my english is poor. :P
>
> > >I'm using Django + jquery autocomplete mod (http://www.pengoworks.com/
> > >workshop/jquery/autocomplete.htm) and it's working fine, but one thing
> > >doesn't works: the hidden value.
> > >For example, my string is "Tulio|123\n" where "Tulio" is the displayed
> > >information and "123" is (or not?) the hidden information.
> > >I only catch the information "Tulio" and I'm trying to catch the
> > >hidden information ("123") whithout success.
> > >Can You help me about this?
>
> > You need to specifically write code to copy. If you look at the example at:
>
> >http://www.pengoworks.com/workshop/jquery/autocomplete.htm
>
> > you'll see that it binds 2 functions to the autocomplete plug-in which are
> > used for detecting the hidden value:
>
> > function findValue(li) {
> > if( li == null ) return alert("No match!");
>
> > // if coming from an AJAX call, let's use the CityId as the value
> > if( !!li.extra ) var sValue = li.extra[0];
>
> > // otherwise, let's just display the value in the text box
> > else var sValue = li.selectValue;
>
> > alert("The value you selected was: " + sValue);
>
> > }
>
> > function selectItem(li) {
> > findValue(li);
>
> > }
>
> > You can use those functions are blueprint for your code (just replace the
> > alert() in the findValue() with the code to update your hidden form field.)
>
> > Also, you need to remember to bind this functions to the onSelectItem and
> > onFindValue callbacks.
>
> > -Dan



[jQuery] Re: jQuery Autocomplete Mod

2007-05-31 Thread tuliopaiva

It worked!
Thank You!

On 31 maio, 10:22, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
wrote:
> >Hello!
>
> >First thing: I'm starting in jquery and my english is poor. :P
>
> >I'm using Django + jquery autocomplete mod (http://www.pengoworks.com/
> >workshop/jquery/autocomplete.htm) and it's working fine, but one thing
> >doesn't works: the hidden value.
> >For example, my string is "Tulio|123\n" where "Tulio" is the displayed
> >information and "123" is (or not?) the hidden information.
> >I only catch the information "Tulio" and I'm trying to catch the
> >hidden information ("123") whithout success.
> >Can You help me about this?
>
> You need to specifically write code to copy. If you look at the example at:
>
> http://www.pengoworks.com/workshop/jquery/autocomplete.htm
>
> you'll see that it binds 2 functions to the autocomplete plug-in which are
> used for detecting the hidden value:
>
> function findValue(li) {
> if( li == null ) return alert("No match!");
>
> // if coming from an AJAX call, let's use the CityId as the value
> if( !!li.extra ) var sValue = li.extra[0];
>
> // otherwise, let's just display the value in the text box
> else var sValue = li.selectValue;
>
> alert("The value you selected was: " + sValue);
>
> }
>
> function selectItem(li) {
> findValue(li);
>
> }
>
> You can use those functions are blueprint for your code (just replace the
> alert() in the findValue() with the code to update your hidden form field.)
>
> Also, you need to remember to bind this functions to the onSelectItem and
> onFindValue callbacks.
>
> -Dan



[jQuery] Re: jQuery Autocomplete Mod

2007-05-31 Thread Dan G. Switzer, II

>Hello!
>
>First thing: I'm starting in jquery and my english is poor. :P
>
>I'm using Django + jquery autocomplete mod (http://www.pengoworks.com/
>workshop/jquery/autocomplete.htm) and it's working fine, but one thing
>doesn't works: the hidden value.
>For example, my string is "Tulio|123\n" where "Tulio" is the displayed
>information and "123" is (or not?) the hidden information.
>I only catch the information "Tulio" and I'm trying to catch the
>hidden information ("123") whithout success.
>Can You help me about this?

You need to specifically write code to copy. If you look at the example at:

http://www.pengoworks.com/workshop/jquery/autocomplete.htm

you'll see that it binds 2 functions to the autocomplete plug-in which are
used for detecting the hidden value:

function findValue(li) {
if( li == null ) return alert("No match!");

// if coming from an AJAX call, let's use the CityId as the value
if( !!li.extra ) var sValue = li.extra[0];

// otherwise, let's just display the value in the text box
else var sValue = li.selectValue;

alert("The value you selected was: " + sValue);
}

function selectItem(li) {
findValue(li);
}

You can use those functions are blueprint for your code (just replace the
alert() in the findValue() with the code to update your hidden form field.)

Also, you need to remember to bind this functions to the onSelectItem and
onFindValue callbacks.

-Dan