[jQuery] Re: [OT] twitter
just found out digsby can be a twitter client. Great! Digsby manages now my msn, gtalk, facebook and twitter. thanks a lot for the feedback guys! On Wed, May 21, 2008 at 1:02 AM, Ariel Flesler <[EMAIL PROTECTED]> wrote: > > +1 for Gtalk > > -- > Ariel Flesler > http://flesler.blogspot.com > > On 20 mayo, 16:54, Marcelo Wolfgang <[EMAIL PROTECTED]> wrote: > > I use Snitter with is a client that runs over Adobe AIR ( and you can > > try others, there are at least 3 different clients) or you can use only > > the website, subscribe to the jquery user and recieve updates by sms ( > > if you are able to) > > > > Marcelo Wolfgang > > > > > > > > Alexandre Plennevaux wrote: > > > hi friends, > > > > > now that jquery uses twitter, i might give twitter a chance. Can you > > > recommend a good way to use it? A twitter client? Which? > > > i'm a bit afraid of the "distraction" it brings. but using it in my > > > Greader is not very satisfactory. Any clue, welcomed ! > > > > > Thanks, > > > > > -- > > > Alexandre Plennevaux > > > LAb[au] > > > > >http://www.lab-au.com- Ocultar texto de la cita - > > > > - Mostrar texto de la cita - > -- Alexandre Plennevaux LAb[au] http://www.lab-au.com
[jQuery] Re: Only Acept Number and "." or ","
Muchas Gracias Exactamente eso es lo que necesitaba. Saludos. Don Quijote de Nicaragua. Elder Soto. On 20 mayo, 13:20, Ariel Flesler <[EMAIL PROTECTED]> wrote: > This is exactly what you need: > http://itgroup.com.ph/alphanumeric/ > > This could be useful too: > http://digitalbush.com/projects/masked-input-plugin > > -- > Ariel Fleslerhttp://flesler.blogspot.com > > On 20 mayo, 01:48, Don Quijote de Nicaragua <[EMAIL PROTECTED]> > wrote: > > > I need to create a input, but only acept numer or this caracter "." or > > "," > > > Español. > > Necesito crear un input, pero que únicamente acepte números o los > > caracteres "." ò ",". > > Gracias. > > > Don Quijote de Nicaragua. > > Elder Soto.
[jQuery] Re: reflect.js question
anyone would be help? On May 20, 7:09 pm, Davis <[EMAIL PROTECTED]> wrote: > OOps...this suitation not work in IE, but FF2 are work fine. > is it a IE limitation? or anything wrong of my html? > > On May 20, 6:15 pm, Davis <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > a very simple html with reflection > > >
[jQuery] Re: jQuery tooltip doesn't work after UpdatePanel update?
You need to hookup a callback using the ms ajax page request manager like so Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); var EndRequestHandler=function(){ ReEnableTooltips(); } On May 20, 9:36 pm, Gauthier Segay <[EMAIL PROTECTED]> wrote: > You may need to reattach the tooltip plugin to the dom being > refreshed. > > Does your asp.net component support attaching custom javascript on > content refresh? > > If it doesn't support that (not very extensible), you may override the > default behaviour by "monkey patching" the javascript function being > call when update pannel is trigged. > > On May 20, 10:29 pm, vladv <[EMAIL PROTECTED]> wrote:> Does jQuery supposed > to work with asp.net ajax update panel? > > I used jQuery tooltip > > :http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ > > > but after the update panel update every tooltip is reset to default > > tooltip. > > > how can this be fixed? > > > Thank you > >
[jQuery] jScrollPane ie error on ajax response
I've been using the jScrollPane on two divs in my page. Everything works fine in FireFox and Safari, but both IE 6 & 7 returns an error. if I remove the line, i get no errors in IE. [code] $(holdTracks).jScrollPane(); [/code] The error I do get with this line in place is in the jQuery file, I've tried version 1.2.3 and 1.2.4 The error is [code] if(value!=undefined)elem[name]=value;return elem[name];} [/code] this error means nothing to me. here's the code I'm using. First the code where the jScroll breaks in IE [code] $.ajax({ type: "GET", url: "processes/getTracksList.php", data: "bandid="+bandid, success: function(response){ var holdTracks = $('.holdSongs#'+bandid); $(holdTracks).html(response); $(holdTracks).jScrollPane(); [/code] and almost the same code, but does not error in ie, but also does not create the scrolling list [code] $.ajax({ type: "POST", url: "processes/showList.php", data: "lat="+point.y+"&long="+point.x+"&genre="+genre+"&page="+page +"&address="+addressQ+"&distance="+range, success: function(response){ $('#holdBands').html(response); $("#holdBands").jScrollPane(); $('.searchHolder').hide(); $('#filterList').show(); return false; } }); [/code] i've tried adding the bgiframe plugin, and i've checked my DTD as I understand those can help fix weird things in ie. my DTD is [code] http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> [/code] anybody used jScrollPane within an .ajax response? the demo shows using the .load function, but I need to set parameters and run further functions, so I think I need the .ajax. thanks Pete
[jQuery] Re: BlockUI: Strange flickering behavior.
> http://rock-itnaturalstone.com/dev/ThinVeneer.php > > Just hover over some of the stone samples to see what it's doing. It's > driving me crazy. It's almost as if the mouseover even fires constantly > while the mouse is hovered over the element, rather than just firing once. > Any thoughts? > > Thanks, > Chris Hey Chris, You mouseout handler is definitely getting called. Maybe moving the calls around like this would help: $(".thumb").bind("mouseover", function(){ $(this).block({ message: $(this).attr("alt"), // other options here }).bind("mouseout",function(){ $(this).unblock().unbind('mouseout'); }); });
[jQuery] Need to assign and then track a class after browser refreshes
I like the accordion plug in, but it does not do everything that I need. So I rebuilt everything to do what I needed it to... with one exception. I need to have a "last active state". By that I mean, I need to first set and then track an active state in my accordion. Using the jquery.cookie.js plug in, I am able to write the cookie. However, I can't figure out the following: 1. How to track where the last click was... 2. How to reintroduce the classes assigned to that click. I may be going about this all wrong... that's ok, it's how I learn. So, I want to assign a class to the last a href clicked (done), add that class to a cookie (done), then get that class back from the cookie (done), then reassign the class to the html after refresh. (NOT done) Code is below. Any help would be awesome. Dave JS /* * Site Settings * * Copyright (c) 2008 Dave Merwin * Dependencies: * */ $(document).ready(function(){ //Ultimate Sidebar Nested Accordion Menu // Add the class for ul $('#subNav ul').addClass('subNavMenu'); $('#subNav li').children('ul').parent().prepend('CloseOpen'); var COOKIEMONSTER = $.cookie('selected'); if (COOKIEMONSTER == '' || COOKIEMONSTER == null) { $('#subNav li').children('ul').hide(); } else if(COOKIEMONSTER == 'on') { $('#subNav li').children('ul').hide(); $('.lastSelected').parent().children('ul').show(); alert(COOKIEMONSTER); } //Set nav function Buttons $('.subNavToggle').click(function() { $(this).parent().children('ul').slideToggle('fast'); $(this).children('span').toggle(); $(this).siblings('a').addClass('active'); $(this).addClass('closeIcon').addClass('mir'); $ (this).parent().siblings().children('ul:visible').slideUp('fast'); $.cookie('selected', 'on'); alert('Cookie Added'); return false; }); });
[jQuery] image maps and Jquery
I have a following problem: I'm trying to make a sliding accordion menu (with accordion sub-menus - those are not a problem) that is invoked by means of clicking on an image map. I have tried the following code: $(document).ready(function() { $('div#po_info> div.woj').hide(); $('div#po_info> area').click(function() { $(this).next('div.woj:hidden').slideDown('normal') .siblings('div.woj:visible').slideUp('normal'); }); }); where div "woj" should be shown (or appear, or slide, or what-so- ever :-) ) when clicked on the appropriate part of the image. With the code above all "woj" divs are hidden (success) but when you click on the imagemap nothing happens. I'm an absolute newbe to jQuerry hence the question - Is there any way to achieve that??? my testing site is (in Polish) at http://txp.ctpoland.pl/ctpoland Thanx in advance for advice. Sincere, Pawel Wrobel part of HTML code: >> nasi agenci Kliknij na województwo, aby zobaczyćlistę agentów CT Poland Woj. DOLNOŚLĄSKIE x Woj. Kujawsko-Pomorskie x $(document).ready(function() { $('div.slider> p').hide(); $('div.slider> h4').click(function() { $(this).next('p:hidden').slideDown('normal') .siblings('p:visible').slideUp('normal'); }); });
[jQuery] Re: Validate Plugin - Message customization with metadata
Ticket #2908 created and patch attached. Let me know if I should change anything. On May 19, 1:57 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Just use "messages" for embedding messages as metadata. The odds of > adding a method "messages" are extremely low, and once its released, > I'll update the docs accordingly. > > Jörn > > On Fri, May 16, 2008 at 7:05 PM, Dane <[EMAIL PROTECTED]> wrote: > > > -> "Avoiding the conflict between a method "messages" and those actual > > messages should be easy enough. " > > > Should we plan on supporting a simulatanious "message" method and > > custom messages in metadata? > > > As stated, I'm still climbing the learning curve :). Before I > > implement this I just want to make sure your not envisioning a better > > way. The strait forward check I'm planning on is to see if validator > > has any "message" methods defined, if it does it will treat "messages" > > in meta as a rule method, else it will treat it as a custom message > > object. This check, however, means a dev can't simultaneously have a > > method named "message" and still use custom messages in metadata. A > > minor, but strange requirement. Is this ok? > > > I was trying to figure out a way to compare the message object in meta > > to the "message" rule signature. If the method sig matches it will be > > treated as rule metadata, else custom message metadata. Don't know if > > we can guarantee repeatable results with that since rule method sigs > > can match the custom message object in rare cases. Leaving us with an > > even more rare, but stranger requirement. > > > I'm probably missing something so i figured I'd just ask what you had > > in mind that was "easy enough". > > > Thanks > > > On May 16, 9:33 am, Dane <[EMAIL PROTECTED]> wrote: > >> Ah, agreed. I'll make these changes and send in a ticket. > > >> On May 15, 4:20 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> > >> wrote: > > >> > How about this? > > >> > meta: default > >> > class="{required:true,minlength:2,messages:{required:'Enter > >> > this!',minlength:'Way to short'}}" > > >> > meta: "validation" > >> > class="{validation:{required:true,minlength:2,messages:{required:'Enter > >> > this!',minlength:'Way to short'}}}" > > >> > No need to change the meta-option that way. The code reading the > >> > messages just checks for a messages-property within the metadata. > >> > Avoiding the conflict between a method "messages" and those actual > >> > messages should be easy enough. > > >> > Contributions are welcome in any format, a ticket on dev.jquery.com > >> > with a diff attached is the preferred way. > > >> > Jörn > > >> > On Thu, May 15, 2008 at 5:23 PM, Dane <[EMAIL PROTECTED]> wrote: > > >> > > Ok I have a first cut done. elements can now have metadata like: > >> > > > > >> > > Quick question though. Which do you prefer? > > >> > > 1)$("#Form").validate({meta:"rules", metaMessages:"messages"}); > >> > > 2)$("#Form").validate({meta:{rules:"rules", messages:"messages"}}); > > >> > > I like 2, but it changes the existing API. > > >> > > How do you want the changes? > > >> > > On May 14, 1:04 pm, Dane <[EMAIL PROTECTED]> wrote: > >> > >> Thanks for the help on getting started. I'd already started wading > >> > >> through the source so you definitely saved me some time. I'm not > >> > >> totally comfortable with Jquery yet but I'm getting there :). I'll > >> > >> give this a go and see what happens. Should I just reply to this > >> > >> thread to contribute/ask questions? or is there a better way? > > >> > >> On May 14, 12:07 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> > >> > >> wrote: > > >> > >> > It isn'T supported, yet. You could help getting it into the plugin > >> > >> > by > >> > >> > trying to implement it yourself, and contributing it back. > > >> > >> > To get started, take a look at the defaultMessage-method. Currently > >> > >> > it > >> > >> > looks for custom messages specified via options, then for the title > >> > >> > attribute, then for default messages. You can access metadata via > >> > >> > $(element).metadata(). > >> > >> > To be able to throw rules and messages together, you'd use the > >> > >> > meta-option to "namespace" rules, eg. > >> > >> > class="{rules:{required:true,email:true}, messages: {required:"yo", > >> > >> > email:"no"}", then $(...).validate({ meta: "rules" }) > > >> > >> > Hope this helps to get started. > > >> > >> > Jörn > > >> > >> > On Wed, May 14, 2008 at 5:11 PM, Dane <[EMAIL PROTECTED]> wrote: > > >> > >> > > Hi, > > >> > >> > > I'm trying to build a web framework utilizing the great work > >> > >> > > thats > >> > >> > > already been done on the validation plugin. I'm trying to use > >> > >> > > metadata > >> > >> > > to specify my rules. I'm having a problem overriding the default > >> > >> > > messages for multiple rules via metadata. It appears as though I > >> > >> > > can > >> > >> > > only specify one generic message for all my rules on a given > >> > >> > > element > >> > >> >
[jQuery] [autocomplete] jquery plugin with json data returned
I'm using the autocomplete from Jörn's blog (http://bassistance.de/ jquery-plugins/jquery-plugin-autocomplete/) (thanks Jörn'!) I would like to return my data from the php script in json format, eg: [{"displayname":"Joe Smith","username":"Jsmith","email_address":"[EMAIL PROTECTED]"}, {"displayname":"Jane Smith","username":"JaneS","email_address":"[EMAIL PROTECTED]"}] Can this plugin play nicely with json returned data? I know it works if it is static json data.. But at the moment it only views it as 1 string.
[jQuery] BlockUI: Strange flickering behavior.
Hi folks, after solving my previous BlockUI problem, I'm wondering if anyone has ever seen it do this before: http://rock-itnaturalstone.com/dev/ThinVeneer.php Just hover over some of the stone samples to see what it's doing. It's driving me crazy. It's almost as if the mouseover even fires constantly while the mouse is hovered over the element, rather than just firing once. Any thoughts? Thanks, Chris -- http://cjordan.us
[jQuery] Re: [OT] twitter
+1 for Gtalk -- Ariel Flesler http://flesler.blogspot.com On 20 mayo, 16:54, Marcelo Wolfgang <[EMAIL PROTECTED]> wrote: > I use Snitter with is a client that runs over Adobe AIR ( and you can > try others, there are at least 3 different clients) or you can use only > the website, subscribe to the jquery user and recieve updates by sms ( > if you are able to) > > Marcelo Wolfgang > > > > Alexandre Plennevaux wrote: > > hi friends, > > > now that jquery uses twitter, i might give twitter a chance. Can you > > recommend a good way to use it? A twitter client? Which? > > i'm a bit afraid of the "distraction" it brings. but using it in my > > Greader is not very satisfactory. Any clue, welcomed ! > > > Thanks, > > > -- > > Alexandre Plennevaux > > LAb[au] > > >http://www.lab-au.com- Ocultar texto de la cita - > > - Mostrar texto de la cita -
[jQuery] when to call noConflict?
hi everybody I have some code where i need to use jQuery.noConflict() Do i call it before or after jQuery(document).ready() ?
[jQuery] Re: Need your help (Newbie) for HHeaings Tags visble and invisible
Hi, It seems that what i need to do is a TOC (table of Content" !!! I have found a plugin jTOC but it is not workig, any one have any other alternative or better a solution ??? thank you On 20 mai, 16:34, superyms <[EMAIL PROTECTED]> wrote: > > Title I > Chapter I > Art. 1. > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Chapter II > Section I > Art. 2. > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Art. 3. > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Section II > Mini-Section I > Art. 4. > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Title II > Chapter I > Art. 6. > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis > aute irure dolor quis nostrud exercitation excepteur sint occaecat. p> > > > As you can see it is simple Headings tags, that compose this text. > My goal is simply to change or add classes tah tlet elements been > revelead or not ! > > i explain : > > At the opening page you will have to see : > - H1 contents only (all H1- all other have to be hided). > - onlick on H1 we will see all H2 of the concerning H1 clicked (all > the others will be invisible) > - onclick on H2 we will have : > - all H3 listed with them (H4 and H5 and P not visible) > - all H5 listed with them (in some case H5 is just after H2). > - onclik on H3 we will have : > - all H4 visible (but not H5 and P under them) > - all H5 direct under H3 (in some cas this happened) > - onclick on H4 we will have all H5 under the appereaing > - onclick on H5 we will see all P under them (P have to been > revealed only one clicked on H5) > > And in case we click again on a element it will change again his > status to invible > > i a not using any div container nor ny css for this, i jus twanan see > how to do ro see it working ??? > > As i am a newbie with jquery (tried during 10 days without success), > may be i am stupid or not enough concentrate ??? > > Please could you give me the solution (a code) or any other sample > that inspirates me or even if a plugin exist ???
[jQuery] Re: jQuery tooltip doesn't work after UpdatePanel update?
You may need to reattach the tooltip plugin to the dom being refreshed. Does your asp.net component support attaching custom javascript on content refresh? If it doesn't support that (not very extensible), you may override the default behaviour by "monkey patching" the javascript function being call when update pannel is trigged. On May 20, 10:29 pm, vladv <[EMAIL PROTECTED]> wrote: > Does jQuery supposed to work with asp.net ajax update panel? > I used jQuery tooltip > :http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ > > but after the update panel update every tooltip is reset to default > tooltip. > > how can this be fixed? > > Thank you
[jQuery] Case Insensitive Selector
Hi! I'm using a [attribute*='value'] selector, and the only problem is that I need it to be case insensitive. Is there any way I could do it? Thanks.
[jQuery] Page Over Preview Navigation.
Hello All, First off thanks to the jquery team, they've made a great little library which has made me get my hand dirty, and understand a little bit of javascript, thanks. Im hoping someone can help me out with the following... Im trying to make a preview window, that lets you scroll over a page by moving a control. In the page below the page is set to 1,1 pixels. The black box is 100/100. When someone moves the white box (control) the page is scrolled to the relative position. See below for an example: http://www.kith-kin.co.uk/tests/scroller_kinda.asp It works ok when someone moves the white box to navigate, but when they scroll using the scrollbars or mousewheel I need to get the control box to update its location. I have had attempt at making this work, but am getting strange results. See below. http://www.kith-kin.co.uk/tests/scroller.asp When you load the page the box doesn't update its relative location. But when you move the white box it jumps to the original location, then slowly creaps back to the new location. Its a cool thing, but not what im after! I think my problem / complication lies with using $(window).scroll beacuse when someone scrolls using scrollbars this works (as intended), but the call also works when you move the box, and hence scroll the page. Is there anyway to work out that somehas scrolled the page by using a mouse wheel, or the scrollbars? Or am I approching this wrong? Any help much appriciated, hope this wasn't too ramblling. Cheers Ian.
[jQuery] Re: BlockUI: What's wrong with this code?
I figured it out. It should be $(this).block() NOT $(this).blockUI()... duh... On Tue, May 20, 2008 at 5:10 PM, Chris Jordan <[EMAIL PROTECTED]> wrote: > Can anyone tell me what's wrong with the following code: > > $(function(){ > $(".thumb").bind("mouseover", function(){ > $(this).blockUI({ > message: $(this).attr("alt") > }) > }).bind("mouseout",function(){ > $(this).unblockUI(); > }); > }); > > the "thumb" class is applied to a bunch of images on my page. when I > mouseover the image I want a layer put up over just that image along with a > message (the alternate text). The error I get is: $(this).blockUI() is not a > function. Likewise I get the same on the mouseout only with the appropriate > function name listed in the error. > > Can anyone tell me what I'm doing wrong? > > Thanks! > Chris > > -- > http://cjordan.us -- http://cjordan.us
[jQuery] Re: [OT] twitter
I've tried several, but always come back to Twitterific: http://iconfactory.com/software/twitterrific - jason (http://twitter.com/easykill)
[jQuery] Re: Checking a radio button
Right, the problem is that every radio button has the same id, remove them. You can use: $(':radio[value="EasyOrder Basic"]').attr('checked', true); On a side note, why do you need to check the radio button via JavaScript, why can't you check it on the server side? Karl Rudd On Wed, May 21, 2008 at 5:24 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks for this feedback but that is what I'm trying and the radio > button is empty. My script is > > >$(document).ready(function() { > $('#Demo[value="EasyOrder Basic"]').attr('checked', true); >}); > > > and the URL is > > http://www.remanresource.com/signup.php?SubscrIDP=5 > > Thanks, - Dave > > On May 19, 8:34 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: >> Remember to be careful how you mix the various quotes ' and ". The >> following should work. >> >> $('#Demo[value="hello there"]').attr('checked', true); >> >> Karl Rudd >> >> On Tue, May 20, 2008 at 11:33 AM, [EMAIL PROTECTED] >> >> >> >> <[EMAIL PROTECTED]> wrote: >> >> > I may have spoken a little too soon. Karl, that was a great solution, >> > but what if the part of the value clause has a space in it? This >> > isn't working for me ... >> >> > $('#Demo[value=hello there]').attr('checked', true); >> >> > nor is this ... >> >> > $('#Demo[value="hello there"]').attr('checked', true); >> >> > Any suggestions are greatly appreciated, - Dave >> >> > On May 19, 7:56 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: >> >> Assuming the following: >> >> >> >> >> >> The following will "check" the radio button: >> >> >> $('#Demo').attr('checked', true); >> >> >> If you _really_ need to ONLY check the radio button if it's got an >> >> id="Demo" AND value="hello": >> >> >> $('#Demo[value=hello]') >> >> >> Karl Rudd >> >> >> On Tue, May 20, 2008 at 8:47 AM, [EMAIL PROTECTED] >> >> >> <[EMAIL PROTECTED]> wrote: >> >> >> > Hi, >> >> >> > When my page loads, I'd like to check a radio button whose ids are >> >> > "Demo" and whose value is "hello". How do I do this with JQuery? >> >> >> > Thanks, - Dave- Hide quoted text - >> >> >> - Show quoted text -- Hide quoted text - >> >> - Show quoted text - >
[jQuery] BlockUI: What's wrong with this code?
Can anyone tell me what's wrong with the following code: $(function(){ $(".thumb").bind("mouseover", function(){ $(this).blockUI({ message: $(this).attr("alt") }) }).bind("mouseout",function(){ $(this).unblockUI(); }); }); the "thumb" class is applied to a bunch of images on my page. when I mouseover the image I want a layer put up over just that image along with a message (the alternate text). The error I get is: $(this).blockUI() is not a function. Likewise I get the same on the mouseout only with the appropriate function name listed in the error. Can anyone tell me what I'm doing wrong? Thanks! Chris -- http://cjordan.us
[jQuery] alert shows value, but can't get it passed to a function??
Hey, I'm kinda stumped on this one, but I'm sure it's not that complicated. I'm using jmaps to load a google map, and i can set the zoom with mapZoom by manually entering 'mapZoom: 12', etc. However I have a form, and I am trying to adjust the maps zoom based on the range selected in the form. I have an alert, and it shows the right value, and the other value from the .split (range) works perfectly, and is below the 'zoom2', but zoom2 just doesn't work. Can you see my mistake? I can't find it. [code] function getList(event, page){ var distance = $('#distance').val(); var split_distance=distance.split("-"); var zoom2 = split_distance[1]; var range = split_distance[0]; var genre = $('#genre').val(); var addressQ = $('#address').val(); $('#filterList').hide(); $('.searchHolder').html('searching '+ genre + ' playing within '+ range + ' miles of '+ addressQ ).show(); $('#map').jmap("searchAddress", { address: $('#address').val() }, function(options, point) { alert(zoom2); $('#map').jmap({pointLatLng:[point.y, point.x], pointHTML: 'Address' + options.address }); $('#map').jmap('init', {mapCenter: [point.y, point.x], mapZoom: zoom2}); $('#holdBands').html(''); $.ajax({ type: "POST", url: "processes/showList.php", data: "lat="+point.y+"&long="+point.x+"&genre="+genre+"&page="+page +"&address="+addressQ+"&distance="+range, success: function(response){ [/code] i'd appreciate any help on this, Thanks Pete
[jQuery] Re: attr difference in Firefox and IE7
No, no API changes, .attr() is still .attr(). But it has been modified and a lot of existing issues were fixed. -- Ariel Flesler http://flesler.blogspot.com On 20 mayo, 18:10, David McFarland <[EMAIL PROTECTED]> wrote: > On May 20, 2008, at 12:47 PM, Ariel Flesler wrote: > > > > > So.. Have you tried using jQuery 1.2.4 ? > > jQuery.attr works completely different now. > > It does? Do you mean there are API changes? > > thanks > > --dave
[jQuery] Re: [autocomplete] Is there an update planned to work with jQ 1.4 ?
Thanks for your answer ! We are all waiting :) Continue the good job Jörn On 20 mai, 19:29, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Yes, absolutely! I'm just waiting for the release. That applies to > other plugins using dimensions, too, eg. tooltip. > > Jörn > > On Tue, May 20, 2008 at 4:38 PM, Romain Sauvaire > > <[EMAIL PROTECTED]> wrote: > > > Hello everybody, > > > Since Dimensions plugin is fully included into the next jQuery > > release, do you plan (Jörn or someone else) to update your > > autocomplete plugin ? > > > More infos > > :http://blog.brandonaaron.net/2008/05/09/dimensions-now-in-jquery-core/ > > > Thanx for your answers !
[jQuery] Re: attr difference in Firefox and IE7
On May 20, 2008, at 12:47 PM, Ariel Flesler wrote: So.. Have you tried using jQuery 1.2.4 ? jQuery.attr works completely different now. It does? Do you mean there are API changes? thanks --dave
[jQuery] Re: How to extract an object from a jQuery reference?
> > I understand that you can take an ordinary DOM object and create a > > jQuery reference out of it: > > > > var myDOMObject = document.myform.mytextfield; var myJQueryRef = > > $(myDOMObject); var myHtml = myJQueryRef.html(); > > > > I know, I can chain. But for the sake of this example, I won't. > > > > Is there a way to do the opposite? An imaginary method could be: > > > > var extractedDOMObject = myJQueryRef.extractObject(); var myHtml2 = > > extractedDOMObject.innerHTML; > > > > What might be used to replace the imaginary extractObject() method? > You want $.get(), which returns an array of DOM elements, or > $.get(index) which returns a single element. If you want a > single item, then $('#objectOfMyDesire').get(0) is your > method of choice. > > Reference: http://docs.jquery.com/Core/get .get(n) will certainly work, but there's a faster and shorter way to do it. The jQuery object returned by $() is an array of DOM elements. It's not an actual Array object - it doesn't have all the Array methods - but for purposes of reading it, you can treat it just like an Array: It has a .length property and [0], [1], ... elements. So, instead of writing: $('#objectOfMyDesire').get(0) You can use: $('#objectOfMyDesire')[0] In fact, .get(n) simply uses the [n] indexing to return a value. .get() with no arguments does a bit more. It makes a copy of the jQuery object as an actual Array, with all of the methods that any other JavaScript Array has (and doesn't have any jQuery methods, being an Array object, not a jQuery object). Here's the source code for .get(): // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { return num == undefined ? // Return a 'clean' array jQuery.makeArray( this ) : // Return just the object this[ num ]; }, -Mike
[jQuery] Re: selectors question
nos wrote: Cat1 Cat2 Cat3 Cat4 Cat5 I'm not quite sure what you're looking to do, and this markup is part of the issue. There is no "type" attribute on your "input" tag. Is this just a text field? Also, the tag is also not closed. Is the "ul" element supposed to somehow be embedded in the "input" element? -- Scott
[jQuery] Re: How to extract an object from a jQuery reference?
And that seems to be what I'm looking for. Thanks for pointing this out. Jerome. On May 20, 2:56 pm, Pyrolupus <[EMAIL PROTECTED]> wrote: > On May 20, 3:37 pm, Jerome <[EMAIL PROTECTED]> wrote: > > > > > I'm not quite sure how to describe, or search for, my question in > > existing discussions. I apologize in advance for my lack of search > > savvy. > > > I understand that you can take an ordinary DOM object and create a > >jQueryreference out of it: > > > var myDOMObject = document.myform.mytextfield; > > var myJQueryRef = $(myDOMObject); > > var myHtml = myJQueryRef.html(); > > > I know, I can chain. But for the sake of this example, I won't. > > > Is there a way to do the opposite? An imaginary method could be: > > > var extractedDOMObject = myJQueryRef.extractObject(); > > var myHtml2 = extractedDOMObject.innerHTML; > > > What might be used to replace the imaginary extractObject() method? > > You want $.get(), which returns an array of DOM elements, or > $.get(index) which returns a single element. If you want a single > item, then $('#objectOfMyDesire').get(0) is your method of choice. > > Reference: http://docs.jquery.com/Core/get > > Cheers, > Pyro
[jQuery] jQuery tooltip doesn't work after UpdatePanel update?
Does jQuery supposed to work with asp.net ajax update panel? I used jQuery tooltip : http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ but after the update panel update every tooltip is reset to default tooltip. how can this be fixed? Thank you
[jQuery] Re: explorer 6 conditional statement?
Ah, Brilliant! That works in IE6 and FF2 I need to make sure it works in IE7 as well. Can I take the same statment: top: $.browser.msie ? 100 : -60 , and make it specific to IE6? so is: top: $.browser.msie6 ? 100 : -60, going to work? Thanks! On May 20, 2:04 pm, Mike <[EMAIL PROTECTED]> wrote: > > Thanks for this. I played around and can't find any docs to explain it > > specifically... > > > This is the code I'm working with: > > > $.tooltip = { > > blocked: false, > > defaults: { > > delay: 200, > > showURL: true, > > extraClass: "", > > top: -60, > > left: 15, > > id: "tooltip" > > }, > > > Would this become: > > > $.tooltip = { > > blocked: false, > > defaults: { > > delay: 200, > > showURL: true, > > extraClass: "", > > top: $.browser.ie ? 100 : -60 > > left: 15, > > id: "tooltip" > > }, > > > Sorry for the confusion... I've looked at the syntax of javascript > > before today... > > > Brian > > Jörn meant to write this: > > top: $.browser.msie ? 100 : -60
[jQuery] Re: explorer 6 conditional statement?
Justed tested in IE6 and IE7 and FF... works in all three! Thanks so much! here is the link should you be interested: http://www.projects.redpointdesign.ca/rp Brian On May 20, 2:04 pm, Mike <[EMAIL PROTECTED]> wrote: > > Thanks for this. I played around and can't find any docs to explain it > > specifically... > > > This is the code I'm working with: > > > $.tooltip = { > > blocked: false, > > defaults: { > > delay: 200, > > showURL: true, > > extraClass: "", > > top: -60, > > left: 15, > > id: "tooltip" > > }, > > > Would this become: > > > $.tooltip = { > > blocked: false, > > defaults: { > > delay: 200, > > showURL: true, > > extraClass: "", > > top: $.browser.ie ? 100 : -60 > > left: 15, > > id: "tooltip" > > }, > > > Sorry for the confusion... I've looked at the syntax of javascript > > before today... > > > Brian > > Jörn meant to write this: > > top: $.browser.msie ? 100 : -60
[jQuery] Re: [OT] twitter
I use Snitter with is a client that runs over Adobe AIR ( and you can try others, there are at least 3 different clients) or you can use only the website, subscribe to the jquery user and recieve updates by sms ( if you are able to) Marcelo Wolfgang Alexandre Plennevaux wrote: > hi friends, > > now that jquery uses twitter, i might give twitter a chance. Can you > recommend a good way to use it? A twitter client? Which? > i'm a bit afraid of the "distraction" it brings. but using it in my > Greader is not very satisfactory. Any clue, welcomed ! > > > Thanks, > > -- > Alexandre Plennevaux > LAb[au] > > http://www.lab-au.com
[jQuery] Re: twitter
On May 20, 3:48 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]> wrote: > now that jquery uses twitter, i might give twitter a chance. Can you > recommend a good way to use it? A twitter client? Which? > i'm a bit afraid of the "distraction" it brings. but using it in my Greader > is not very satisfactory. Any clue, welcomed ! I have my Twitter set up to send IMs to my Google Talk account. Works great.
[jQuery] Re: [OT] twitter
Twitterfox works ok, I have not tried anything else On Tue, May 20, 2008 at 12:48 PM, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: > hi friends, > > now that jquery uses twitter, i might give twitter a chance. Can you > recommend a good way to use it? A twitter client? Which? > i'm a bit afraid of the "distraction" it brings. but using it in my Greader > is not very satisfactory. Any clue, welcomed ! > > > Thanks, > > -- > Alexandre Plennevaux > LAb[au] > > http://www.lab-au.com -- http://morglog.alleycatracing.com Lets make up more accronyms! http://www.alleycatracing.com LTABOTIIOFR! ROFL! ROFL! ROFL! Upcoming alley cats, reviews, touring logs, and a general congregation of bike nerdity.
[jQuery] Re: How to extract an object from a jQuery reference?
On May 20, 3:37 pm, Jerome <[EMAIL PROTECTED]> wrote: > I'm not quite sure how to describe, or search for, my question in > existing discussions. I apologize in advance for my lack of search > savvy. > > I understand that you can take an ordinary DOM object and create a > jQuery reference out of it: > > var myDOMObject = document.myform.mytextfield; > var myJQueryRef = $(myDOMObject); > var myHtml = myJQueryRef.html(); > > I know, I can chain. But for the sake of this example, I won't. > > Is there a way to do the opposite? An imaginary method could be: > > var extractedDOMObject = myJQueryRef.extractObject(); > var myHtml2 = extractedDOMObject.innerHTML; > > What might be used to replace the imaginary extractObject() method? You want $.get(), which returns an array of DOM elements, or $.get(index) which returns a single element. If you want a single item, then $('#objectOfMyDesire').get(0) is your method of choice. Reference: http://docs.jquery.com/Core/get Cheers, Pyro
[jQuery] Re: explorer 6 conditional statement?
> Thanks for this. I played around and can't find any docs to explain it > specifically... > > This is the code I'm working with: > > $.tooltip = { > blocked: false, > defaults: { > delay: 200, > showURL: true, > extraClass: "", > top: -60, > left: 15, > id: "tooltip" > }, > > Would this become: > > $.tooltip = { > blocked: false, > defaults: { > delay: 200, > showURL: true, > extraClass: "", > top: $.browser.ie ? 100 : -60 > left: 15, > id: "tooltip" > }, > > Sorry for the confusion... I've looked at the syntax of javascript > before today... > > Brian Jörn meant to write this: top: $.browser.msie ? 100 : -60
[jQuery] Re: [OT] twitter
I chose Snitter since it was built using jQuery and has all of the features that I want. http://getsnitter.com/ Other options include the open source Spaz http://funkatron.com/spaz (also built using jQuery) and TWhirl. Rey Alexandre Plennevaux wrote: hi friends, now that jquery uses twitter, i might give twitter a chance. Can you recommend a good way to use it? A twitter client? Which? i'm a bit afraid of the "distraction" it brings. but using it in my Greader is not very satisfactory. Any clue, welcomed ! Thanks, -- Alexandre Plennevaux LAb[au] http://www.lab-au.com
[jQuery] Re: How to extract an object from a jQuery reference?
> I'm not quite sure how to describe, or search for, my question in > existing discussions. I apologize in advance for my lack of search > savvy. > > I understand that you can take an ordinary DOM object and create a > jQuery reference out of it: > > var myDOMObject = document.myform.mytextfield; > var myJQueryRef = $(myDOMObject); > var myHtml = myJQueryRef.html(); > > I know, I can chain. But for the sake of this example, I won't. > > Is there a way to do the opposite? An imaginary method could be: > > var extractedDOMObject = myJQueryRef.extractObject(); > var myHtml2 = extractedDOMObject.innerHTML; > > What might be used to replace the imaginary extractObject() method? Think of the jQuery object as an array. In your case the array has a length of 1. var extractedDOMObject = myJQueryRef[0];
[jQuery] Re: Show element onclick
hubbs wrote: I have a list of divs that I would like to display one at a time when a link is clicked. How would I do this with jQuery? Show another Content 1 Content 2 Content 3 Content 4 Content 5 Content 6 What I would like to do is reveal the next div in the list when the "Show another" link is clicked, allowing the user to reveal all of the divs, or just a few. How about something like the following?: var $divs = $("div:not(:first)"), currentIdx = 0; $("a").click(function() { if (currentIdx <= $divs.length - 1) { $($divs.get(currentIdx++)).show(); } return false; }); And you might want to add this before the return: if (currentIdx == $divs.length) { $(this).hide(); } Obviously the selectors would really need to change for anything more like a real page, but I think that logic would do it. -- Scott
[jQuery] Re: attr difference in Firefox and IE7
So.. Have you tried using jQuery 1.2.4 ? jQuery.attr works completely different now. -- Ariel Flesler http://flesler.blogspot.com On 20 mayo, 08:35, Sid <[EMAIL PROTECTED]> wrote: > Karl, > > Thanks a lot :-) > > Works perfectly well. But IE still shows an error notification in the > status bar. I'm just afraid it might come in between as I add more > features. Any ideas? > > Regards
[jQuery] [OT] twitter
hi friends, now that jquery uses twitter, i might give twitter a chance. Can you recommend a good way to use it? A twitter client? Which? i'm a bit afraid of the "distraction" it brings. but using it in my Greader is not very satisfactory. Any clue, welcomed ! Thanks, -- Alexandre Plennevaux LAb[au] http://www.lab-au.com
[jQuery] Re: [tooltip] explorer 6 conditional statement?
Thanks for this. I played around and can't find any docs to explain it specifically... This is the code I'm working with: $.tooltip = { blocked: false, defaults: { delay: 200, showURL: true, extraClass: "", top: -60, left: 15, id: "tooltip" }, Would this become: $.tooltip = { blocked: false, defaults: { delay: 200, showURL: true, extraClass: "", top: $.browser.ie ? 100 : -60 left: 15, id: "tooltip" }, Sorry for the confusion... I've looked at the syntax of javascript before today... Brian
[jQuery] How to extract an object from a jQuery reference?
I'm not quite sure how to describe, or search for, my question in existing discussions. I apologize in advance for my lack of search savvy. I understand that you can take an ordinary DOM object and create a jQuery reference out of it: var myDOMObject = document.myform.mytextfield; var myJQueryRef = $(myDOMObject); var myHtml = myJQueryRef.html(); I know, I can chain. But for the sake of this example, I won't. Is there a way to do the opposite? An imaginary method could be: var extractedDOMObject = myJQueryRef.extractObject(); var myHtml2 = extractedDOMObject.innerHTML; What might be used to replace the imaginary extractObject() method? Thanks, Jerome.
[jQuery] Bug Fix: Multiple File Upload Plugin
Hi All, All users of this plugin should download the latest version to fix a fatal bug in IE7. SEE: http://www.fyneworks.com/jquery/multiple-file-upload/ Cheers, Diego A.
[jQuery] Re: Checking a radio button
Thanks for this feedback but that is what I'm trying and the radio button is empty. My script is $(document).ready(function() { $('#Demo[value="EasyOrder Basic"]').attr('checked', true); }); and the URL is http://www.remanresource.com/signup.php?SubscrIDP=5 Thanks, - Dave On May 19, 8:34 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > Remember to be careful how you mix the various quotes ' and ". The > following should work. > > $('#Demo[value="hello there"]').attr('checked', true); > > Karl Rudd > > On Tue, May 20, 2008 at 11:33 AM, [EMAIL PROTECTED] > > > > <[EMAIL PROTECTED]> wrote: > > > I may have spoken a little too soon. Karl, that was a great solution, > > but what if the part of the value clause has a space in it? This > > isn't working for me ... > > > $('#Demo[value=hello there]').attr('checked', true); > > > nor is this ... > > > $('#Demo[value="hello there"]').attr('checked', true); > > > Any suggestions are greatly appreciated, - Dave > > > On May 19, 7:56 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote: > >> Assuming the following: > > >> > > >> The following will "check" the radio button: > > >> $('#Demo').attr('checked', true); > > >> If you _really_ need to ONLY check the radio button if it's got an > >> id="Demo" AND value="hello": > > >> $('#Demo[value=hello]') > > >> Karl Rudd > > >> On Tue, May 20, 2008 at 8:47 AM, [EMAIL PROTECTED] > > >> <[EMAIL PROTECTED]> wrote: > > >> > Hi, > > >> > When my page loads, I'd like to check a radio button whose ids are > >> > "Demo" and whose value is "hello". How do I do this with JQuery? > > >> > Thanks, - Dave- Hide quoted text - > > >> - Show quoted text -- Hide quoted text - > > - Show quoted text -
[jQuery] Re: MooTools to Query
jQuery.LocalScroll: http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html -- Ariel Flesler http://flesler.blogspot.com On 20 mayo, 08:27, Michael <[EMAIL PROTECTED]> wrote: > Hi, > > I have a coda slider working using mootools, but want to use JQuery as > my main library. > > I have this code for my slider: > > window.addEvent('domready', function(){ > var scroll = new Fx.Scroll('demo-wrapper', { > wait: false, > duration: 1000,//Speed to slide > transition: Fx.Transitions.Quad.easeInOut > }); > > $('link1').addEvent('click', function(event) { > event = new Event(event).stop(); > scroll.toElement('content1'); > }); > > $('link2').addEvent('click', function(event) { > event = new Event(event).stop(); > scroll.toElement('content2'); > }); > > $('link3').addEvent('click', function(event) { > event = new Event(event).stop(); > scroll.toElement('content3'); > }); > > $('link4').addEvent('click', function(event) { > event = new Event(event).stop(); > scroll.toElement('content4'); > }); > > $('link5').addEvent('click', function(event) { > event = new Event(event).stop(); > scroll.toElement('content5'); > }); > > }); > > The slider works fine with mootools.v1.1.js, but want it to work with > jquery (I've tried putting it with jquery.1.2.3.pack.js) but it > doesn't work. What 'mootools' code is in the above javascript and what > would be the jquery equivalent? > > And the HTML: > > > > > > Lorem ipsum dolor sit amet, consectetur > adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. > Ut enim ad minim veniam, quis nostrud > exercitation ullamco laboris > nisi ut aliquip ex ea commodo consequat > > > > > > Lorem ipsum dolor sit amet, consectetur > adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. > Ut enim ad minim veniam, quis nostrud > exercitation ullamco laboris > nisi ut aliquip ex ea commodo consequat > > > > > > Lorem ipsum dolor sit amet, consectetur > adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. > Ut enim ad minim veniam, quis nostrud > exercitation ullamco laboris > nisi ut aliquip ex ea commodo consequat > > > > > > Lorem ipsum dolor sit amet, consectetur > adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. > Ut enim ad minim veniam, quis nostrud > exercitation ullamco laboris > nisi ut aliquip ex ea commodo consequat > > > > > > Lorem ipsum dolor sit amet, consectetur > adipisicing elit, sed do > eiusmod tempor incididunt ut labore et dolore magna aliqua. > Ut enim ad minim veniam, quis nostrud > exercitation ullamco laboris > nisi ut aliquip ex ea commodo consequat > > > > > > > > > > > > > > href="javascript:void(0)" > name="link1" > class="active" > onfocus="this.hideFocus=true;">Text > > > href="javascript:void(0)" > name="link2" > onfocus="this.hideFocus=true;">Media > > > href="javascript:void(0)" > name="link3" > onfocus="this.hideFocus=true;">Table > > > href="javascript:void(0)" > name="link4" > onfocus="this.hideFocus=true;">Link > > > href="javascript:void(0)" > name="link5" > onfocus="this.hideFocus=true;">Link > > > > >
[jQuery] [SITE] Site
http://www.eurovision.tv/ on pages dedicated to each contestant. At least, they use lyte(light)box and sifr. -- Dragan Krstić krdr http://krdr.ebloggy.com/
[jQuery] Re: .css question
Maybe you're moving the image but not the link. So the link stays where it was, try putting that id to the link instead. -- Ariel Flesler http://flesler.blogspot.com On 20 mayo, 07:34, Davis <[EMAIL PROTECTED]> wrote: > Hi, > > i got a simple html > > > > > > once i applied $('#xxx').css({position:'absolute',top:'250px'}), it > taken effect, but why href are disappear? > > appreciated for any input. > > Thanks/Davis.
[jQuery] Re: Only Acept Number and "." or ","
This is exactly what you need: http://itgroup.com.ph/alphanumeric/ This could be useful too: http://digitalbush.com/projects/masked-input-plugin -- Ariel Flesler http://flesler.blogspot.com On 20 mayo, 01:48, Don Quijote de Nicaragua <[EMAIL PROTECTED]> wrote: > I need to create a input, but only acept numer or this caracter "." or > "," > > Español. > Necesito crear un input, pero que únicamente acepte números o los > caracteres "." ò ",". > Gracias. > > Don Quijote de Nicaragua. > Elder Soto.
[jQuery] AJAX ui.tabs and $(document).ready()
It appears that when you use the AJAX implementation of ui.tabs the $ (document).ready() function is never executed. Should I be doing something else to get some JS to run when the page loads?
[jQuery] Thumbnail Cycle Plugin ala YouTube?
I've been trying to google if such jquery plugin is available, but I am not quite sure how to search for it (or what to call it). I am referring to the cycle effect that shows the 'What is being watched right now.' thumbnails in YouTube. If you know of a jquery implemented plugin, please let me know. Thanks!
[jQuery] Re: livequery in navigation
No site yet - just hosting it on my client's sandbox machine. Here are the pertinent parts - I can always email them to you also. For my index.php - just sets up the navivgation and content div: [code] ... [/code] Now my "nav.inc" file which sets up the horizontal navbar according to the superfish instructions: [code] Company X Home Search Last Name First Name Company Job . [/code] So now I have my index file with navigation. Let's say a user selects Search-Last Name. This is my "companyx.js" script: [code] $('#home').livequery('click', function() { $('#content').load('index.php'); $("#content").show(); return false; }); $('#by-lastname').livequery('click', function() { $('#content').load('by-lastname.html'); $("#content").show(); return false; }); . [/code] And this is my "by-lastname.html", which appears in the content div: [code] Search by Last Name [/code] So the user types in a last name and presses Search. searchlast.php goes to a mysql db and loads the results in the content div: [code] $(document).ready(function() { $("#datatable") .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({container: $("#pager")}); }); "); while ($row = mysql_fetch_array($query)) { echo("\n"); echo($row["lastname"]); } [/code] This all works well. It just doesn't work after the user has view some results of some sort, then clicks on another navigation option. (Like Search-FirstName). The user must click "Home" first, then Search-FirstName, which is a pain. I would like the user to be able to view results, and click immediately on another navigation pane. Does this make sense? Thanks for anyhelp you can give me - I've been struggling with this for a while and it seems like it should be pretty simple!
[jQuery] Re: [tooltip] explorer 6 conditional statement?
There is are options for the positioning, top and left. Something like this should work: $("...").tooltip({ top: $.browser.ie ? 100 : -60 }); More details at http://docs.jquery.com/Plugins/Tooltip/tooltip Jörn On Tue, May 20, 2008 at 7:17 PM, olestaats <[EMAIL PROTECTED]> wrote: > > I've using the tooltip script from bassistance.de and I have some > issues with IE6. > > The jquery code has a line that defines the position of the tooltip > (top: 15;) > > I'm not 100% sure why, but for all other browsers, the value for "top" > should be -60 and just for IE6, it should be 100 > > Is there any way I can add a line to the jquery.tooltip.js file that > will target the change for IE6? > > The link is: http://www.projects.redpointdesign.ca/rp/index.php > > I am using a conditional css for IE6. > > I'm not a javascript programmer at all. > > Thanks! > > Brian >
[jQuery] Re: jscrollPane scroll to can't find first element
I got this to work, but not in the nicest way. It appears the script is adamant that I do not call .scrollTo within the following function [code] function getList(event, page){ $('#holdList')[0].scrollTo(0); var distance = $('#distance').val(); var addressQ = $('#address').val(); $('#map').jmap("searchAddress", { address: $('#address').val() } } [/code] but it happily runs (but a bit slowly) within this function [code] $('.next').livequery('click', function(event){ $('#holdList')[0].scrollTo(0); var page=this.id; getList(event, page); }); [/code] Don't know why, but it works. The '[0]' is needed in front of the .scrollTo function as well. Thanks Ariel
[jQuery] Re: Weather forecast recommendation?
Hi Lukas, If it's a general question not related to jQuery, your best bet is to look at forums such as SitePoint.com for assistance. Thanks, Rey... lukas wrote: Hi! I am looking for a nice looking 2 or other multiple-day weather forecast. Does anybody have good recommendations (also for commercial use)? Thanks for your help!
[jQuery] Weather forecast recommendation?
Hi! I am looking for a nice looking 2 or other multiple-day weather forecast. Does anybody have good recommendations (also for commercial use)? Thanks for your help!
[jQuery] Re: Accordian crashes IE6
Thanks for pointing that out! I have removed both UI scripts as I didnt need them. IE6 is still crashing... does it not like the selectors? On May 20, 1:25 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > You include the UI accordion plugin, but don't use it at all. Take a > look at the accordion documentation and use > that:http://docs.jquery.com/UI/Accordion > > Jörn > > On Tue, May 20, 2008 at 3:21 PM, Austin S. <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I can't seem to figure out why IE6 crashes with this accordian script. > > Here is a live demo:http://tiny.cc/TIQ11 > > > http://code.jquery.com/jquery- > > latest.js"> > > http://dev.jquery.com/view/trunk/ > > ui/ui.core.js"> > > http://dev.jquery.com/view/trunk/ > > ui/ui.accordion.js"> > > > >$(document).ready(function() { > >$("#resources> div").hide(); > >$("#resources> h3").click(function() { > >$(this).next("div").slideToggle('slow') > >.siblings("div:visible").slideUp("slow"); > >}); > >$("#resources> h3").mouseover(function() { > >$(this).addClass("over"); > >}); > >$("#resources> h3").mouseout(function() { > >$(this).removeClass("over"); > >}); > >}); > > > > > I followed this article to create something similar: > > >http://www.learningjquery.com/2007/03/accordion-madness
[jQuery] Best RSS/XML/News feeder for jTabs?
Does anybody have experiences with setting up a news feeder for jTabs/ Tab browsing? (like Yahoo is doing it?) I am confused with all the info on the web. Thank you!
[jQuery] Re: jsonp in GAE for jQuery xss
Hi Andiih, I know the feeling! Don't worry, you will get it all sorted out. Take a look at the Google App Engine samples project: http://code.google.com/p/google-app-engine-samples/ It has a couple of samples that may be close to what you're looking for: The geochat and myhangouts apps both use simplejson (the standard Python JSON module) to generate JSON output. I didn't look to see if they generate JSONP - there's a jsonfilter.py in the simplejson folder that generates JSONP, but I wasn't sure from a quick glance at the code if they are actually using that. In any case, converting from JSON to JSONP is trivial: jsonp = prefix + '(' + json + ')' jQuery isn't involved in the server code, so you'll probably want to ask followup questions in the GAE discussion group. But come on back here when you start on the client code! Hope that helps, -Mike > From: Andiih > > Alphabet soup! I think I'm trying to learn too many new > things at once... > > Anyone got examples for Google App Engine deliving basic web > service type API's ? A "hello world" type example would do > nicely - I would like to serialize objects and return them > with jsonp so I can fetch them from jQuery code running on > multiple sites.
[jQuery] jQuery Error with auto-tabbing and browser autocomplete options
I'm working on an auto tabbing plugin and keep getting an odd error from Firebug. In my example I have three text fields that serve the purpose of typing a phone number. If what I begin typing matches previously entered numbers, Firefox will display autocomplete matches. After three numbers, my script automatically tabs to the next field, but I get the following error: [Exception... "'Permission denied to set property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: jquery.js :: anonymous :: line 2039" data: no] jquery.js Line 2039 I am able to prevent the error from appearing by alerting prior to setting the focus to the next field. If I type a set of numbers not previously entered, the error does not occur as well. Because of this, I believe the issue is in jQuery and not with my plugin. I can replicate this error and provide a sample page if necessary. Thanks.
[jQuery] Re: Traversing AJAX Response?
On May 20, 9:40 am, Yansky <[EMAIL PROTECTED]> wrote: > How exactly does $(response).find('#mylinks') work? How does it traverse the > dom tree if the response is just a text version of the page's html? If response is HTML, then $(response) creates a DOM. That's what $ (string) does with HTML (instead of a CSS selector). E.g., $('A new paragraph!') generates a brand new paragraph element. Reference: http://docs.jquery.com/Core/jQuery#html jQuery( html ) "Create DOM elements on-the-fly from the provided String of raw HTML." Cheers, Pyro
[jQuery] HotChili (Greasemonkey/userscript) breaks easing
I have (well, had) HotChili[1] enabled for all sites for its convenient go-anywhere syntax highlighting ability. Today, I tracked a problem with one of my sites to having HotChili enabled (as a Greasemonkey userscript) on my installation of Firefox. I assume that since HotChili pulls in its own copy of jQuery that it's blowing away plugin extensions. I presume the same could be true of other userscripts (Firefox or Opera--can Safari/IE do userscripts?) that pull in their own jQuery. Text of error: jQuery.easing[jQuery.easing.def] is not a function http://[mydomain].com/js/lib/jquery/jquery.easing.1.3.js Line 20 Disabling HotChili made the problem go away. Has anyone else experienced this? Can anyone verify or debunk me? I don't yet know whether a userscript can check for the existence of jQuery already in a page before trying to pull in a separate copy-- thus blowing away extensions--but that would be cool. Cheers, Pyro [1] http://noteslog.com/category/hotchili/
[jQuery] [tooltip] explorer 6 conditional statement?
I've using the tooltip script from bassistance.de and I have some issues with IE6. The jquery code has a line that defines the position of the tooltip (top: 15;) I'm not 100% sure why, but for all other browsers, the value for "top" should be -60 and just for IE6, it should be 100 Is there any way I can add a line to the jquery.tooltip.js file that will target the change for IE6? The link is: http://www.projects.redpointdesign.ca/rp/index.php I am using a conditional css for IE6. I'm not a javascript programmer at all. Thanks! Brian
[jQuery] Show element onclick
I have a list of divs that I would like to display one at a time when a link is clicked. How would I do this with jQuery? Show another Content 1 Content 2 Content 3 Content 4 Content 5 Content 6 What I would like to do is reveal the next div in the list when the "Show another" link is clicked, allowing the user to reveal all of the divs, or just a few.
[jQuery] Finder like navigational widget
Hi, Does anyone know of and OS X Finder style widget/plugin? As in, several lists of items, click one a list of child items appear in the list to the right etc. Cheers Rory
[jQuery] Re: [autocomplete] Is there an update planned to work with jQ 1.4 ?
Yes, absolutely! I'm just waiting for the release. That applies to other plugins using dimensions, too, eg. tooltip. Jörn On Tue, May 20, 2008 at 4:38 PM, Romain Sauvaire <[EMAIL PROTECTED]> wrote: > > Hello everybody, > > Since Dimensions plugin is fully included into the next jQuery > release, do you plan (Jörn or someone else) to update your > autocomplete plugin ? > > More infos : > http://blog.brandonaaron.net/2008/05/09/dimensions-now-in-jquery-core/ > > Thanx for your answers ! >
[jQuery] Re: [validate] disabling onBlur validation on per field basis
You can customize the onfocusout-option for that. Something like this: $("...").validate({ onfocusout: function(element) { if (element.name != "someElementNameToExclude") this.element(element); } }); Jörn On Tue, May 20, 2008 at 3:32 PM, Matti Bäckman <[EMAIL PROTECTED]> wrote: > > Hello. > > Is it possible to disable onBlur validation of a single field? > >
[jQuery] Re: Accordian crashes IE6
You include the UI accordion plugin, but don't use it at all. Take a look at the accordion documentation and use that: http://docs.jquery.com/UI/Accordion Jörn On Tue, May 20, 2008 at 3:21 PM, Austin S. <[EMAIL PROTECTED]> wrote: > > Hi, > > I can't seem to figure out why IE6 crashes with this accordian script. > Here is a live demo: http://tiny.cc/TIQ11 > > http://code.jquery.com/jquery- > latest.js"> > http://dev.jquery.com/view/trunk/ > ui/ui.core.js"> > http://dev.jquery.com/view/trunk/ > ui/ui.accordion.js"> > >$(document).ready(function() { >$("#resources> div").hide(); >$("#resources> h3").click(function() { >$(this).next("div").slideToggle('slow') >.siblings("div:visible").slideUp("slow"); >}); >$("#resources> h3").mouseover(function() { >$(this).addClass("over"); >}); >$("#resources> h3").mouseout(function() { >$(this).removeClass("over"); >}); >}); > > > > > I followed this article to create something similar: > > http://www.learningjquery.com/2007/03/accordion-madness >
[jQuery] Re: Using javascript on Ajax loaded content?
Your assumption is correct. The following FAQ page discusses a couple ways to use JavaScript on ajax-loaded content and links to a few plugins to help you along as well: http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 20, 2008, at 11:40 AM, Civ2boss wrote: Hi there I am having trouble using javascript on contact that was pulled in using Ajax. I assume this is because the javascript already loaded when the page loaded that any new content won't be affected by it. Am I wrong on this? Is there a way to use javascript on the new Ajax loaded content? Thanks
[jQuery] selectors question
hi list I try to access the innerHTML of a list to change it's content to links with wich I wand to insert the text of the list to an input field. the code looks like this: Cat1 Cat2 Cat3 Cat4 Cat5 list items should change to: Cat1 So I need an array of all list items. This so var I could like this. function setLinks() { $("input.listcomplete ~ ul > li").each(function(i){ ... } } but first I need the name of the text input (Categories) cause I need it to pass to the function in the link. So I split the each above into two arrays. First to get the name of the input and the secound each to go true the li elements. Now I cant figure out how to define the secound selector properly: .this.$("~ ul > li").each(function(i){; in the function below: function setLinks() { $("input.listcomplete").each(function(i){ .this.$("~ ul > li").each(function(i){; .this.html("li with link") }); }); } could anyone give me a hint how to do it tanks nos
[jQuery] Jquery Iframe Sizing Issue
Hello all, I'm fairly familiar with JQuery and am using it across a new CMS site implementation with various plugins, and have been successful in getting these to work until I went for http://sonspring.com/journal/jquery-iframe-sizing, which allows the height of an iframe to be determined based on the content inside the iframe. I'd love to not use IFrames, but it's been decided that this is the way we need to go. It looks like the script works fine on his site, but once you download it it doesn't work on your local machine - I attempted to implement this at http://www.plasticsurgery.org/public/new/29-bucket-iframe-full.html without success (and uploaded it in case it had to do with being on a server). It just resizes to a height of 40 and chops off everything else. Am I doing something wrong and have to modify my code, or does the script have to be modified? Has anyone worked with this script and can help me out, or have you found another way of doing this in JQuery? We're going to be pulling some of our .NET pages into the new CMS with IFrames and I need to make sure they resize correctly (scrollbars are NOT fun). Thanks in advance! Tim AIM: TymArtist
[jQuery] Using javascript on Ajax loaded content?
Hi there I am having trouble using javascript on contact that was pulled in using Ajax. I assume this is because the javascript already loaded when the page loaded that any new content won't be affected by it. Am I wrong on this? Is there a way to use javascript on the new Ajax loaded content? Thanks
[jQuery] Need your help (Newbie) for HHeaings Tags visble and invisible
Title I Chapter I Art. 1. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Chapter II Section I Art. 2. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Art. 3. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Section II Mini-Section I Art. 4. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Title II Chapter I Art. 6. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. Ut labore et dolore magna aliqua. Eu fugiat nulla pariatur. Duis aute irure dolor quis nostrud exercitation excepteur sint occaecat. As you can see it is simple Headings tags, that compose this text. My goal is simply to change or add classes tah tlet elements been revelead or not ! i explain : At the opening page you will have to see : - H1 contents only (all H1- all other have to be hided). - onlick on H1 we will see all H2 of the concerning H1 clicked (all the others will be invisible) - onclick on H2 we will have : - all H3 listed with them (H4 and H5 and P not visible) - all H5 listed with them (in some case H5 is just after H2). - onclik on H3 we will have : - all H4 visible (but not H5 and P under them) - all H5 direct under H3 (in some cas this happened) - onclick on H4 we will have all H5 under the appereaing - onclick on H5 we will see all P under them (P have to been revealed only one clicked on H5) And in case we click again on a element it will change again his status to invible i a not using any div container nor ny css for this, i jus twanan see how to do ro see it working ??? As i am a newbie with jquery (tried during 10 days without success), may be i am stupid or not enough concentrate ??? Please could you give me the solution (a code) or any other sample that inspirates me or even if a plugin exist ???
[jQuery] Image replacement Gallery based on links with fade
I found this site http://www.webdesignerwall.com/demo/jquery/img-replacement.html and like the image replace but i would like to add a fade in effect when you hover over a link or click on a link. Also would this work the same way if i wanted to update a div with new content? I have tried searching for simple image replacement but this was the only one i could find. Any one know of an easier way or better way to do this? Example of what i am trying to do... http://www.webdesignerwall.com/demo/jquery/ images/img2-lg.jpg"> http://www.webdesignerwall.com/demo/jquery/ images/img3-lg.jpg"> http://www.webdesignerwall.com/demo/jquery/ images/img4-lg.jpg"> http://www.webdesignerwall.com/demo/jquery/ images/img5-lg.jpg"> http://www.webdesignerwall.com/demo/jquery/ images/img6-lg.jpg"> JQuery Code: $(document).ready(function(){ $("h2").append('') $(".thumbs a").click(function(){ var largePath = $(this).attr("href"); var largeAlt = $(this).attr("title"); $("#largeImg").attr({ src: largePath, alt: largeAlt }); $("h2 em").html(" (" + largeAlt + ")"); return false; }); }); Any help would be greatly appreciated.
[jQuery] Re: append div trouble [SOLVED]
ok i am trying to do the same thing you are doing, with no success. Only difference is I'm using suckerfish for my navigation menus across the top. The navigation is loaded via an external file, with things like "add", "search", etc as my main menus. The drop down menus set up nicely, and I have js set up so that when a user selects a menu item, different content is loaded into a in the middle of the page depending on what they click on. I just switched to livequery, so my js is: $(document).ready(function() { ('#home') .livequery('click', (function() { $('#content').load('index.php') return false; }) ('#search') .livequery('click', (function() { $('#content').load('search.php') return false; }) ); My goal is for the user to always be able to click on the navigation menu and "start over" or load new content. So if the user chooses "search", "search.php" is loaded, which is a form. They enter the users company name and press submit. Data is shown in the in the middle of the page. Now I want the user to be able to click on the navigation menu again and search on something different. This does not work - it seems like once data is displayed in the #content , the navigation menu doesn't work. I guess I thought this was what livequery would do for me. Does anyone have time to look at this and see what I am doing wrong?
[jQuery] Re: jQuery UI
Thanks for the input, I'll update the existing tutorial to reflect that new (to me) bit of knowledge, and add a link in the wiki. I'm currently working on the next tutorial, UI Tabs. Should be ready this week. On May 17, 4:58 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > This is a great article. Thank you for sharing, and I'm looking forward to > more. > > A minor note: 1.5b2 and 1.5b4 require alpha and beta versions of jQuery > 1.2.4. They are included in each zip file (if you download the whole thing), > or can be grabbed here: > > http://dev.jquery.com/view/tags/ui/1.5b2/jquery-1.2.4a.jshttp://dev.jquery.com/view/tags/ui/1.5b4/jquery-1.2.4b.js > > Also, they include dimensions; it's no longer a separate plugin. Your dialog > tutorial may not have hit any issues with using 1.2.3, but other plugins > have some. > > Don't forget - the docs are a wiki, so include links to your tutorials > there. > > - Richard > > Richard D. Worthhttp://rdworth.org/ > > On Fri, May 16, 2008 at 11:20 AM, mdrisser <[EMAIL PROTECTED]> wrote: > > > I've just started playing around with the jQuery UI and while I was at > > it I decided to put together a series of tutorials on implenting the > > UI, I've never written any tutorials before, so it may not be the > > best, but I hope that it will be useful to someone. > > > You can find it athttp://mdrisser.r1designs.net/blog > > > Let me know what you guys think and how I can improve the series. > > > Thanks in advance
[jQuery] hiding a div when another div becomes empty?
Hi all, I am removing links from a div when they are clicked on using the code below: $('#hiddenleft a').livequery('click', function() { var $this = $(this).attr("class"); $('#'+$this).show(); $(this).remove(); }); when all links are removed, i want hide that div & the div above it - hiddencontent . the links are displayed in the following divs: hidden items ...links... any ideas on how i would do it?
[jQuery] Re: livequery in navigation
I'm a little confused about your setup. Could you post a link to the site or an example of the issue you are having? Also, I'm sure it was just a typo but your missing the $ on ('#home') and ('#search'). -- Brandon Aaron On Wed, May 7, 2008 at 10:47 AM, kws452 <[EMAIL PROTECTED]> wrote: > > I am using jquery and superfish in my horizontal navigation menu. The > navigation is loaded via an external file. The drop down menus set > up nicely, and I have js set up so that when a user select a menu > item, different content is loaded into a in the middle of the > page depending on what they click on. I just switched to livequery, so > my js is: > > $(document).ready(function() { > ('#home') > .livequery('click', (function() { > $('#content').load('index.php') > return false; > }) > > ('#search') > .livequery('click', (function() { > $('#content').load('search.php') > return false; > }) > ); > > My goal is for the user to always be able to click on the navigation > menu and "start over" or load new content. So if the user chooses > "search", "search.php" is loaded, which is a form. They enter the > users company name and press submit. Data is shown in the in > the middle of the page. Now I want the user to be able to click on a > navigation link, or the home link to do whatever they want. This does > not work - it seems like once data is displayed in the #content , > the navigation menu doesn't work. I guess I thought this was what > livequery would do for me. Does anyone have time to look at this and > see what I am doing wrong? >
[jQuery] Sorted: Re: add a link after page load?
got it fixed by using the livequery plugin on the newly created links. On May 19, 11:39 pm, thekman <[EMAIL PROTECTED]> wrote: > sorry, that last bit of code has > append not add in the line below. > however i'm still stuck, the link does nothing when clicked on until a > page reload... > > $('#hiddenleft').append(''+boxName+' a>'); > > On May 19, 11:07 pm, thekman <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I am trying to add links to a div when another div is clicked. > > The links get added fine, but they do not work when clicked. However i > > am also saving the value to a cookie & display them on page refresh, > > at this stage they do work as expected. > > Any ideas on how I can get the links to work just after they are added > > to the div without a page refresh. Code used below. > > > $('.closeleft').click(function() { > > var $this = $(this); > > var boxName = $this.parents(".leftBoxContainer").attr("id"); > > $(this).parents(".leftBoxContainer").hide(); > > > $.cookieJar('leftBoxClosed').set($this.parents(".leftBoxContainer").attr("id"), > > 'hidden'); > > $('#hiddencontent').show(); > > $('#hiddenleft').add(''+boxName+' > a>'); > > return false; > > > });
[jQuery] [autocomplete] Is there an update planned to work with jQ 1.4 ?
Hello everybody, Since Dimensions plugin is fully included into the next jQuery release, do you plan (Jörn or someone else) to update your autocomplete plugin ? More infos : http://blog.brandonaaron.net/2008/05/09/dimensions-now-in-jquery-core/ Thanx for your answers !
[jQuery] Re: Very basic animation of an image is jerky (not smooth). Am I doing something wrong?
It was failing in IE 7 as well, I fixed this, sorry for that. Any help on the jerkyness. On May 19, 4:35 pm, ripple <[EMAIL PROTECTED]> wrote: > FYI. > > Fails to execute in IE 6. > > Ariel Barreiro <[EMAIL PROTECTED]> wrote: > > I am new to jquery but an experience developer. > > Here's the code actually running: > > http://guilespi.dyndns.org/jquery/bounceimage/ > > CSS:http://guilespi.dyndns.org/jquery/bounceimage/bounce.css > JS:http://guilespi.dyndns.org/jquery/bounceimage/bounce.js > > The first vector is generally very jerky. Sometimes it stops and then > jumps 40px at once. Is there anything I am missing. HTML, CSS and > javascript is very basic. Javascript has a bunch of math coding to > calculate the time needed for each vector so it appears to be the same > speed along each vector. > > Thank you very much, I am new to jquery and I don't think this is a > problem of jquery, but rather something I am missing. > > Thanks, > a.=
[jQuery] Re: attr difference in Firefox and IE7
On May 20, 1:35 pm, Sid <[EMAIL PROTECTED]> wrote: > Karl, > > Thanks a lot :-) > > Works perfectly well. But IE still shows an error notification in the > status bar. I'm just afraid it might come in between as I add more > features. Any ideas? > > Regards The "original blue" anchor has a mouseover event defined where you call a function that doesn't exist. -> onmouseover="prev('style1')"
[jQuery] Re: Tablesorter - Disabled Header Options with Pager
In most cases, you never want to call the same plug-in twice on a set of jQuery objects that initialize a behavior on the page (you called tablesorter() twice in your "incorrect" example.) This is because in most cases you're applying the behavior twice and may end up with really bizarre results. -Dan >-Original Message- >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of shoo >Sent: Tuesday, May 20, 2008 9:22 AM >To: jQuery (English) >Subject: [jQuery] Tablesorter - Disabled Header Options with Pager > > >This week I've been working on implementing Tablesorter. It's a great >Jquery table sorting utility, but I spent quite a bit of time trying >to figure out why I could only sort columns in descending order while >using the pager plugin when I set the header option to disable some >columns. I didn't see anything on here about it so, I thought I would >post my fix / solution. > >Below, the incorrect way to do it. > >$(document).ready(function() { >$("#SearchResultsTable").tablesorter({ >// pass the headers argument and assing a object >headers: { > >0: { >// disable it by setting the property sorter to false >sorter: false >}, >4: { >// disable it by setting the property sorter to false >sorter: false >} >} >}) >.tablesorter({widthFixed: true, widgets: ['zebra']}) >.tablesorterPager({ > container: $("#ctl00_MainContent_pager"), > positionFixed: false > }); ; >}); > >From what I've discovered, you really need to pass all the parameters >in one pass like below: > >$(document).ready(function() { >$("#SearchResultsTable") > .tablesorter({ > headers: {0: {sorter: false},6: {sorter: false}}, > widgets: ['zebra'] > }) > .tablesorterPager({ > container: $("#ctl00_MainContent_pager"), > positionFixed: false > }); >}); > >Above, I am calling table sorter to disable columns 0 and 6, use the >zebra widget, then call the tablesorter Pager plugin.
[jQuery] jsonp in GAE for jQuery xss
Alphabet soup! I think I'm trying to learn too many new things at once... Anyone got examples for Google App Engine deliving basic web service type API's ? A "hello world" type example would do nicely - I would like to serialize objects and return them with jsonp so I can fetch them from jQuery code running on multiple sites.
[jQuery] Re: Jquery Autocomplete plugin question = Can I feed it an xml or js file for the completion items?
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: Traversing AJAX Response?
How exactly does $(response).find('#mylinks') work? How does it traverse the dom tree if the response is just a text version of the page's html? Nicolas R wrote: > > > If you convert your response to a jQuery object then yes. So something > like $(response).find('#mylinks') should work, if used in the success > callback function. Your response doesnt need to be in XML, HTML is > just fine. > > > On Apr 19, 5:46 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> Is it possible to parse the HTML of an AJAX response and grab only a >> certain piece of the response to be displayed by the caller? >> >> Specifically, I'm trying to modify a page so that when I hover over a >> certain set of links, a pop-up window is displayed with the link's >> target in the pop-up. The problem is that the URL is an entire >> webpage, and I only want to display a certain piece of text from this >> webpage. Is it possible to traverse the AJAX response using selectors >> so that I can grab a certain div class and display its text? > > -- View this message in context: http://www.nabble.com/Traversing-AJAX-Response--tp16789239s27240p17340513.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [validate] disabling onBlur validation on per field basis
Hello. Is it possible to disable onBlur validation of a single field?
[jQuery] Tablesorter - Disabled Header Options with Pager
This week I've been working on implementing Tablesorter. It's a great Jquery table sorting utility, but I spent quite a bit of time trying to figure out why I could only sort columns in descending order while using the pager plugin when I set the header option to disable some columns. I didn't see anything on here about it so, I thought I would post my fix / solution. Below, the incorrect way to do it. $(document).ready(function() { $("#SearchResultsTable").tablesorter({ // pass the headers argument and assing a object headers: { 0: { // disable it by setting the property sorter to false sorter: false }, 4: { // disable it by setting the property sorter to false sorter: false } } }) .tablesorter({widthFixed: true, widgets: ['zebra']}) .tablesorterPager({ container: $("#ctl00_MainContent_pager"), positionFixed: false }); ; }); >From what I've discovered, you really need to pass all the parameters in one pass like below: $(document).ready(function() { $("#SearchResultsTable") .tablesorter({ headers: {0: {sorter: false},6: {sorter: false}}, widgets: ['zebra'] }) .tablesorterPager({ container: $("#ctl00_MainContent_pager"), positionFixed: false }); }); Above, I am calling table sorter to disable columns 0 and 6, use the zebra widget, then call the tablesorter Pager plugin.
[jQuery] Accordian crashes IE6
Hi, I can't seem to figure out why IE6 crashes with this accordian script. Here is a live demo: http://tiny.cc/TIQ11 http://code.jquery.com/jquery- latest.js"> http://dev.jquery.com/view/trunk/ ui/ui.core.js"> http://dev.jquery.com/view/trunk/ ui/ui.accordion.js"> $(document).ready(function() { $("#resources> div").hide(); $("#resources> h3").click(function() { $(this).next("div").slideToggle('slow') .siblings("div:visible").slideUp("slow"); }); $("#resources> h3").mouseover(function() { $(this).addClass("over"); }); $("#resources> h3").mouseout(function() { $(this).removeClass("over"); }); }); I followed this article to create something similar: http://www.learningjquery.com/2007/03/accordion-madness
[jQuery] appendTo does not return an object
Hello, I want to use the JavaScript chart component "flot" which uses jQuery. There is a line where Firefox (2.0.0.14) gets an error (IE 6 works fine). I tried to step through the jQuery source but I can not find the problem: canvas = $('').appendTo(target).get(0); target is a jQuery object which stores a div-node. I debugged the script and target is correctly filled. But target is undefined after this call. Maybe somebody can help me. TIA Susanne
[jQuery] Re: [jQuery][ANN] New jQuery group on LinkedIn
On May 8, 2008, at 5:51 PM, Brandon Aaron wrote: You can join the LinkedIn group by following this invite link: http://www.linkedin.com/e/gis/100943/4C28294034F5 Is larger version of that logo available somewhere? -- Mika Tuupola http://www.appelsiini.net/
[jQuery] Re: JQuery Tablesorter can't sort number in Coldfusion
Hey, you are right, that was the fault. :-) Thanks a lot for your help. Have a nice day. Bettina
[jQuery] Re: attr difference in Firefox and IE7
Hi Sid, Unfortunately, I'm not sure where that error message is coming from. I have no experience with the LiveQuery plugin, so I can't say if it's from that. Are you running other JavaScript code that might be causing the error? $('#preview').livequery(function() { $('#preview') .attr('src',previewImage) .css({width: '302px', height: '188px'}); return false; }); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On May 20, 2008, at 7:35 AM, Sid wrote: Karl, Thanks a lot :-) Works perfectly well. But IE still shows an error notification in the status bar. I'm just afraid it might come in between as I add more features. Any ideas? Regards
[jQuery] Re: attr difference in Firefox and IE7
Karl, Thanks a lot :-) Works perfectly well. But IE still shows an error notification in the status bar. I'm just afraid it might come in between as I add more features. Any ideas? Regards
[jQuery] Jquery Autocomplete plugin question = Can I feed it an xml or js file for the completion items?
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: Sometimes my dynamic content doesn't load - please help!
How do you load your different stylesheets? Basic style elements like background-color etc load pretty fast, its the images that usually take time. So I think you should check by trying different background colors, because I face the same problem while the styles are switching. Also, try the LiveQuery plugin, if you're introducing new elements into the DOM (because they aren't recognised immediately), or check out Karl's 'Events' tutorial on learningjquery.com Hope this helps. Regards
[jQuery] Re: tooltip - highlighting when a formfield is reached by a tab
Yup, there is and it's pretty simple. With the mouseover, bind the tooltip to a 'focus()' event (HTML: onFocus). And you can remove the tooltip with the 'blur()' event (HTML: onBlur) I think that'll work. Regards
[jQuery] MooTools to Query
Hi, I have a coda slider working using mootools, but want to use JQuery as my main library. I have this code for my slider: window.addEvent('domready', function(){ var scroll = new Fx.Scroll('demo-wrapper', { wait: false, duration: 1000,//Speed to slide transition: Fx.Transitions.Quad.easeInOut }); $('link1').addEvent('click', function(event) { event = new Event(event).stop(); scroll.toElement('content1'); }); $('link2').addEvent('click', function(event) { event = new Event(event).stop(); scroll.toElement('content2'); }); $('link3').addEvent('click', function(event) { event = new Event(event).stop(); scroll.toElement('content3'); }); $('link4').addEvent('click', function(event) { event = new Event(event).stop(); scroll.toElement('content4'); }); $('link5').addEvent('click', function(event) { event = new Event(event).stop(); scroll.toElement('content5'); }); }); The slider works fine with mootools.v1.1.js, but want it to work with jquery (I've tried putting it with jquery.1.2.3.pack.js) but it doesn't work. What 'mootools' code is in the above javascript and what would be the jquery equivalent? And the HTML: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat Text Media Table Link Link
[jQuery] Re: [AutoComplete]
Thats a known bug, not solved, yet. It has top priority! Jörn On Tue, May 20, 2008 at 12:57 PM, ChrisLongden <[EMAIL PROTECTED]> wrote: > > Additionally, I have noticed that this seems to be a problem in > FireFox, not in IE7. > > Many thanks, > Chris. > > On May 20, 8:16 am, ChrisLongden <[EMAIL PROTECTED]> wrote: >> Thank you, Jörn. >> >> One other (small) thing I have noticed - if you use .focus() to give >> the input textarea focus when the page loads, the auto-complete does >> not work until you physically click the mouse in the textarea. Is >> there a known fix for this? I'd like to be able to have the page load >> with focus on the input textarea. >> >> Many thanks, >> Chris. >> >> On May 19, 10:29 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> >> wrote: >> >> > Rather undocumented: The formatItem-option can be used as a filter. If >> > it returns false for a value (instead of the formatted value), the >> > value isn't displayed. >> >> > Jörn >> >> > On Sun, May 18, 2008 at 9:36 PM, ChrisLongden <[EMAIL PROTECTED]> wrote: >> >> > > Hi, >> >> > > I am using the brilliantautocompletefunctionality available here >> > > (http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/) >> >> > > I am using the 'Multiple Birds (remote)' version from the demo. I >> > > can't see anything in the documentation about removing items that the >> > > user has already selected from theautocompletelist. Is this >> > > something I need to do manually, or is there a setting that I can >> > > tweak? >> >> > > Many thanks, >> > > Chris.- Hide quoted text - >> >> > - Show quoted text - >
[jQuery] Re: JQuery Tablesorter can't sort number in Coldfusion
Bettina, try downloading the latest development version: http://jqueryjs.googlecode.com/svn/trunk/plugins/tablesorter/2.0/ And see if it fixes the problem, there is a bug in the 2.0.3 version that doesn't auto detect number if the equal zero. /Christian 2008/5/20 Hamish Campbell <[EMAIL PROTECTED]>: > H... CF might be causing the problem, but you'll still be able to > see it in the generated code. > > Can you compare the output with and without - the > difference should give you a clue as to why it isn't working. > > On May 19, 11:59 pm, Bettina <[EMAIL PROTECTED]> wrote: > > Hi > > > > Yeah of course. Here i posted a picture how the table looks like: > http://www.onebyte.ch/tablesorter.jpg > > > > But it must be a Problem with ColdFusion because wenn i leave the > > away, and write the table and content by hand, the problem > > ist gone and its working. Its really weard. > > > > And the code from the site looks like this: > > http://192.168.88.5/ > > OneTool4/site/scripte/tablesorter/themes/blue/style.css"> > > > > http://192.168.88.5/OneTool4/site/ > > scripte/tablesorter/jquery.tablesorter.js"> > > > > > > $(document).ready(function() { > > // extend the default setting to always include the zebra > widget. > > $.tablesorter.defaults.widgets = ['zebra']; > > > > // extend the default setting to always sort on the > second column > > $.tablesorter.defaults.sortList = [[3,1]]; > > > > $("table").tablesorter({ > > // pass the headers argument and assing a object > > headers: { > > // assign the fourth column (we start counting zero) > > 5: { > > // disable it by setting the property sorter to false > > sorter: false > > } > > } > > });}); > > > > > > > > > > > > > > > > > > > > Datum > > > > Titel > > > > Gefahrene Kilometer > > > > Kategorie > > > > > > > > > > > > > > > > > > > > href="act_change_param.cfm?param=status&value=0&id=78"> > src="../images/status_aktiv.gif" alt="aktiv, sichtbar" title="aktiv, > > sichtbar" border="0" /> > > > > > > align="center">13.02.2008 > > > > href="index.cfm?incl=dsp_reise_auto_edit&edit=78">Superman > > 2 > > > > 0 > > > > Schweiz > > > > > > href="act_reise_auto_del.cfm?del=78" > > onClick="javascript:return confirm('Wollen Sie diesen Eintrag wirklich > > löschen?');" > > > src="../images/del.gif" width="17" height="20" border="0" > > alt="Eintrag löschen" title="Eintrag löschen"> > > > > > > > > > > > > > > href="act_change_param.cfm?param=status&value=0&id=85"> > src="../images/status_aktiv.gif" alt="aktiv, sichtbar" title="aktiv, > > sichtbar" border="0" /> > > > > > > align="center">01.01.2008 > > > > Abschiebsparty > > > > 0 > > > > Schweiz > > > > > > href="act_reise_auto_del.cfm?del=85" > > onClick="javascript:return confirm('Wollen Sie diesen Eintrag wirklich > > löschen?');" > > > src="../images/del.gif" width="17" height="20" border="0" > > alt="Eintrag löschen" title="Eintrag löschen"> > > > > > > > > > > > > > > href="act_change_param.cfm?param=status&value=0&id=87"> > src="../images/status_aktiv.gif" alt="aktiv, sichtbar" title="aktiv, > > sichtbar" border="0" /> > > > > > > align="center">24.04.2008 > > > > href="index.cfm?incl=dsp_reise_auto_edit&edit=87">Ahorn > a> > > > >