[jQuery] Re: autocomplete questions
That resulted in the error "onChange" is not a function. I set it to "change" since that's the jQuery function. It still didn't do anything. On 9/10/08 11:24 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > try: > $('#topic1').focus(function(){ $('#topic1').onChange(0,true);} > > > On Sep 9, 8:57 am, Shelane <[EMAIL PROTECTED]> wrote: >> To no avail, I tried adding this line: >> >> $('#topic1').trigger('keydown'); >> >> I also tried it as: >> >> $('#topic1').trigger('keypress'); >> >> to make this function like this: >> >> $('#topic1').focus(function(){ >> $('#topic1').search(); >> $('#topic1').trigger('keydown'); >> >> }); >> >> neither caused it to work. >> >> As I did mention, the .search worked to cause the query to go to the >> server and the server returned results, but the results weren't >> displayed. >> >> On Sep 8, 11:11 am, "[EMAIL PROTECTED]" >> >> <[EMAIL PROTECTED]> wrote: >>> Sorry I wasn't very clear, I don't mean to have your users do that, I >>> mean it gave you a clue how that function worked. >>> You need to add an on-focus event to the field that then bubbles a key- >>> up event that will trigger the autocomplete for the user. >> >>> http:// docs.jquery.com/Release:jQuery_1.2/Events >> >>> On Sep 8, 11:07 am, Shelane Enos <[EMAIL PROTECTED]> wrote: >> >>>> This worked. Thanks. >> >>>> Now, if I can just get something for question 2 :-) >> >>>> On 9/8/08 10:45 AM, "MorningZ" <[EMAIL PROTECTED]> wrote: >> >>>>> For >> >>>>> "Can you submit additional parameters based on the value of another >>>>> input field?" >> >>>>> http:// docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields > > > >
[jQuery] Re: autocomplete questions
Adding the following resulted in the search string being sent to the server, but the results weren't displayed (I can see the results with Firebug): $('#topic1').focus(function(){ $('#topic1').search(); }); On 9/8/08 11:59 AM, "MorningZ" <[EMAIL PROTECTED]> wrote: > > For #2 > > perhaps the ".search" option will do the trick? > > http:// docs.jquery.com/Plugins/Autocomplete/search > > perhaps wire that up to the "focus" event of the textbox > > >
[jQuery] Re: autocomplete questions
This worked. Thanks. Now, if I can just get something for question 2 :-) On 9/8/08 10:45 AM, "MorningZ" <[EMAIL PROTECTED]> wrote: > > For > > "Can you submit additional parameters based on the value of another > input field?" > > http://docs.jquery.com/Plugins/Autocomplete#Dependencies_between_fields > > > >
[jQuery] Re: autocomplete questions
Yes, I saw that little enter then back space. That's horrible user interface to rely upon. Users wouldn't know that and I'd hate to tell them to do that. I'm not sure how I would accomplish your proposed work-around. On 9/8/08 10:24 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > For your "question 2", if you type something into the last field, and > then hit backspace it will show the whole list - so the "0" character > setting is working. Without diving into the autocomplete library, I'd > wager that it is triggering on keyup. You want to add or modify the > handler so that it also fires on focus instead of just keyup. > > Alternatively you could possibly kludge it by adding an on focus > handler that just creates a keyup event. > > > > On Sep 8, 9:51 am, Shelane <[EMAIL PROTECTED]> wrote: >> Just a couple of things that I would like to know if it's possible: >> >> Can you submit additional parameters based on the value of another >> input field? >> >> Can you return all autocomplete results on the focus of the field? >> >> More info and a test page are available here: >> >> http:// education.llnl.gov/test/ > > > >
[jQuery] 1.2.4 to 1.2.6 question
I just found out that this function that worked (doubled checked to confirm) worked under 1.2.4 but isn't working under 1.2.6. I'm not sure what. Can anyone see anything obvious? bindDeleteLinks = function(who){ $("a.rembtn", '#' + who).unbind('click'); $("a.rembtn", '#' + who).click(function(){ console.log('bound and clicked ' + who); $(('#' + this.id + 'row')).css({display:'none'}); $.get('includes/tools/runtime.lasso?task=meetings&who=' + who + '&method=remove&pageID=' + pageID + '&rel=' + this.id); return false; }); } Under 1.2.6, the console message doesn't even show.
[jQuery] Re: JQuery 1.2.6 and JQuery Form Plugin in IE7
Naming conventions have always been my problem. What types of names do you (anyone) give these necessary parameters? On 7/7/08 10:59 AM, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > >> I have set up a test page that shows this problem. It works in FF but not >> IE. >> >> http://education.llnl.gov/uploads/testup.lasso >> >> Mike, can you look into this. If you already have, do you have an estimate >> as to when this will be fixed? >> >> Thanks. > > I can't give you an estimate because the problem arises from a change > to core and not something I can fix in the plugin. However, if you > comment out line 203 of the uncompressed form plugin then things > should work fine. Line 203 contains the following code: > > method: 'POST', > > Note however that you need to ensure that the form's method attribute > is set to POST in the markup since the plugin will no longer catch > that for you. > > Also, I stand by my previous comment about using better input names. > I realize that "method" is a logical name for you, but using names > like method, action, type, nodeType, etc, etc is asking for trouble. > And this is a perfect example of why - your code used to work and now > it doesn't. Surely you can come up with names that make sense and > don't collide with DOM properties. > > Mike > >
[jQuery] Re: JQuery 1.2.6 and JQuery Form Plugin in IE7
I have set up a test page that shows this problem. It works in FF but not IE. http://education.llnl.gov/uploads/testup.lasso Mike, can you look into this. If you already have, do you have an estimate as to when this will be fixed? Thanks. On 7/3/08 2:05 PM, "Shelane" <[EMAIL PROTECTED]> wrote: > > Cute answer Mike. I use "method" as a hidden form name all the time > and my code is already wrapped with that code everywhere. I'm > terrible with coming up with good names for things, but I have to have > some name that makes sense. What do you use? I have two key inputs > that tell my processing pages what to do with the data coming in - > task and method. > > I get this same error with jquery 1.2.6. in IE only. If I downgrade to > jquery 1.2.4, it's fine. > > This is the error I get (you know how non-helpful JS errors in IE > are): > > Line: 2 > Char: 2490 > Error: Object doesn't support this property or method > Code: 0 > URL: myurl here (internal site) > > On Jul 3, 5:16 am, Mike Alsup <[EMAIL PROTECTED]> wrote: >> I think if you avoid using poorly named form inputs, like 'action' and >> 'method', then you'll be fine. I'll look into why those are causing a >> problem in 1.2.6. >> >> Mike >> >> On Jul 3, 2:34 am, Drager <[EMAIL PROTECTED]> wrote: >> >>> I haven't a public link to post, but I'm trying with the sample i was >>> found here:http://www.malsup.com/jquery/form/file/ >>> The only diference is jquery version. >> >>> The error reporting in IE7 is this: >> >>> Line: 24 >>> Character: 531 >>> Code: 0 >>> Error Message: El objeto no acepta esta propiedad o método >> >>> On 2 jul, 17:27, Mike Alsup <[EMAIL PROTECTED]> wrote: >> On Jul 2, 8:50 am, Drager <[EMAIL PROTECTED]> wrote: >> > I want to upload a file using JQuery Form Plugin but I have some > troubles. >> > It work ok with JQuery 1.2.3 but don't with version 1.2.6 and IE 7. In > Firefox2 it works great with both versions of JQuery. >> > * jQuery Form Plugin > * version: 2.12 (06/07/2008) > * @requires jQuery v1.2.2 or later >> You need to provide more details than that. What isn't working? Is there an error? Can you post a link? > >
[jQuery] Re: pausing a link and resuming its normal behavior
I actually found that in this case I'm using jqModal, it stops the click of the a. however, in order to make it go to where the link would be after they have done their login through jqModal, I have a form on the page that I'm submitting. Not the most elegant, but it gets the job done. On 6/4/08 9:13 PM, "Karl Swedberg" <[EMAIL PROTECTED]> wrote: > > Hi Shelane, > > Have you considered using a simple confirm message? > > For example: > > $('a').click(function() { > var c = confirm('are you sure?'); > if (!c) return false; > }); > > --Karl > > Karl Swedberg > www.englishrules.com > www.learningjquery.com > > > > > On Jun 4, 2008, at 6:25 PM, Shelane wrote: > >> >> If I click a link, I want to trigger a modal, and based on a response >> from the modal, I either want to cancel the link click or make the >> link be followed. Has anyone done this sort of thing or know how to >> accomplish it? > > > >
[jQuery] Re: second time jquery is included, kills previously called plugins
That was perfect. Thanks. On 5/19/08 8:00 AM, "Ariel Flesler" <[EMAIL PROTECTED]> wrote: > > //include first > > jQuery(function( $ ){ >// $ will be the first jQuery >$('#bodyframe').corner('tr'); > }); > > // include second > > You can also use jQuery.noConflict(); > > Cheers > > -- > Ariel Flesler > http://flesler.blogspot.com/ > > > On 19 mayo, 10:16, Jason Huck <[EMAIL PROTECTED]> wrote: >> Well, it's easy to detect whether jQuery is loaded using plain >> javascript, but once you've determined that it's not loaded, getting >> it loaded in the correct order (particularly so that you can still use >> document.ready()) gets tricky. You could create a custom version of >> jquery.js that looks like this: >> >> try{ jQuery } catch(err){ ...the rest of the jQuery code... } >> >> That would partially solve your problem. Unfortunately, the browser >> would still be loading multiple copies of the same script. >> >> We use a server-side variable to register all the needed script paths, >> and a separate routine includes them for us at the end of the page. >> This way nothing gets duplicated. If you can't get the portal manager >> to make any concessions for you, you might still be able to manage >> this on the server side if you can control the order that your >> portlets are loaded -- you'd just have to make sure a "utility >> portlet" gets loaded as well. Far from elegant, but it might be your >> best bet. >> >> HTH, >> Jason >> >> On May 18, 11:17 pm, Shelane <[EMAIL PROTECTED]> wrote: >> >> >> >>> Hey Jason, >> >>> I thought it made sense too - the explanation of why it happens. >> >>> Yes, it would be ideal if jquery were just added to the portal >>> templates. However, the developers don't have control over the portal >>> templates. They are strictly locked down, and there is no way the >>> manager of the portal will put it in. So we need to come up with >>> another way of either dynamically adding the plugin, then using it, or >>> detecting if jquery is already called before calling it again. Of >>> course, that last one would require that all developers do that, which >>> may not happen. It would be awesome if jquery itself would know that >>> it's already been declared and not override itself if it was. >> >>> On May 18, 7:42 pm, Jason Huck <[EMAIL PROTECTED]> wrote: >> That makes sense. jQuery is loaded, then extended by loading a plugin, but then replaced with a fresh, unaltered copy of jQuery, all of which takes place before document.ready(), where the (by then nonexistent) plugin is finally called. >> I would consider including the base jQuery file via a stub or template so that it's available on any/all pages in the system, then use something like one of the .require() plugins to manage the loading of additional plugins from within individual portlets. That's if you're looking for a pure Javascript solution. You could do something similar on the server side to prevent scripts from being loaded multiple times. >> - jason >> On May 18, 9:33 pm, Shelane <[EMAIL PROTECTED]> wrote: >> > if you have this in this order, the plugin call won't work. it will > give an error that the plugin function is not defined >> > >> > > script> >> > $(function(){ > $('#bodyframe').corner('tr'); >> > }); >> >