[jQuery] help: add click event to <TD> element
What I'm trying to do is to add a click event to all <TD> element with class name 'backtotop'. The code works in IE, but not in Fx; It seems like Fx can execute select and focus on the second line too, just not the line containing "trigger". $("td.backtotop").click(function(){ $("a.nav").trigger('click'); $("input[@name=keyword]").select().focus(); }); Any suggestion? Thanks a lot.
[jQuery] Flickering slide in Firefox 1.5 on XP
I've spent awhile searching for a solution in the archives, but have been unable to find one, so I finally bit the bullet and joined the group to ask about it. Here's the situation: I've got two divs, one starts out set to display:none, the other is display:block. When a link is clicked, I want the visible div to slide out, and the previously hidden div to slide in in the same spot. This works, except for a flicker that happens only some of the time. Usually, the div that should be sliding in appears
[jQuery] Google AJAX Feed API
In case anyone missed it, Google recently released an API for mashing feeds on the client. http://googleajaxsearchapi.blogspot.com/2007/04/announcing-google-ajax-feed-api.html It's really quite cool (and fast). Below is a short demo of how it works. To try it, replace [your key] with your Google API key. Mike <html> <head> <style type="text/css"> body { font-family: 'trebuchet ms'; color: #555; font-size: small; } div.feed { margin: 20px; padding: 20px; border: 1px dashed #ddd; background: #ffd }
[jQuery] Show the World Your Talent and Win
Born in Austin, TX - home of the Live Music Capital of the World, FameCast is the first online competition designed to find America's best new talent. Understanding that lack of exposure is what keeps some of our best artists in the shadows, we aim to shine the spotlight on those that have what it takes, but have lacked the breaks. FameCast will provide artists a real opportunity to connect to a nationwide audience and compete for real prizes: $10,000 and national exposure. We hope to find artists
[jQuery] Return a reference to the root DOM object
This is the simplest of ideas, but I'm new to jQuery (I probably shouldn't admit that), and I want to know, when working with the power of the "$" how does one return a reference. I hope I'm saying this correctly. Allow me to illustrate: Let's say one grabs a paragraph with the ID "thisIsMyParagraph" Using CSS traversing, like thus: $("p#thisIsMyParagraph") Yes? With me? Now jQuery provides a whole library to then work with that paragraph. For example, if I wanted to hide the paragraph, go like thus:
[jQuery] using jQuery with multiple libraries
I'm currently trying to implement some jQuery functionality into a site that is using other libraries: prototype and YUI to name a few. I'm having problems getting my jquery code to execute properly. I've read the documentation on jquery.com but i'm still receiving the error message: "jQuery(document).ready is not a function". If I remove the js file that loads the other libraries the code executes fine. Unfortunately, this other js file is required and must remain in the equation. My code looks
[jQuery] Getting null when trying to retrieve textarea value
I am trying to get the value of a textarea with the following code, however it is returning null all the time. var curText= $("input[@id=myText]").val(); alert(curText); <textarea name="myText" rows="5" cols="20" id="myText" style="width: 250px;"></textarea> Is there something else I need to do?
[jQuery] tablesorter plugin - filesize support
Hey all, Just thought I'd give back to the community and offer up a simple addition to the great tablesorter plugin by Christian Bach (http:// motherrussia.polyester.se). I needed a simple sorter based on filesize, and it didn't quite work with the generic sorter. Thanks to the great structure of his code, it was a simple task.. easy as: <code> $.tableSorter.parsers.filesize = { id: 'filesize', is: function(s) { return s.match( new RegExp( /[0-9]+(\.[0-9]+)?\ (KB|B|GB|MB| TB)/
[jQuery] Nav Tab with Controls Play, Pause, Next and Prev.
Hi... i have a prototype code... this code its a navigation tab like this site http://www.endi.com, see?... the seccion on top?... how i can crean some like that but.. with jquery... i have the prototype code... but it to difficult by me!! Helpme!!! the code!! //------------------------------------------------rotacion de tabs --------------------------------------------------------------------------- intervalo=0; inPlay = false; totalTabs=5; //total de tabs function getTabData(id, auto) { if(auto==false){
[jQuery] Unsubscribing
How do we unsubscribe from the mailing list. I didn't join when it was the google group and now it looks like there isn't a way to remove me from the list.
[jQuery] jCarousel
Hi folks 2 things (both related) regarding jCarousel Beta 0.2.0 - Am I right in asumming that the old 'itemStart' var is not equivalent to 'start'. If it is equivalent; this may be a bug, if it isn't; is this feature being dropped? I like being able to set the start item as it allows the use of jCarousel as navigation between different pages - lets you show current location in the carousel (whilst still switching/reloading page). Also is it possible to stop the scroll animation, but only when it's
[jQuery] jQ Curvy Corners
<a href="http://cpns.kokopop.com/">http://cpns.kokopop.com/</a> In IE7, the top and bottom get clipped trying to make curved corners with a white border. Looks fine in FF. Plus, I get a JS error on line 313 of jquery.curvycorners.js . Any ideas what I am doing wrong? Do the boxes being rounded need background-images? Thanks, Glen
[jQuery] [bug]removeClass('') removes all classes
$('#id').removeClass(''); In the svn edge version Calling removeClass with an empty string as className will remove all classes. It's expected to remove nothing. The trac is not back yet so I'm reporting bug here. <br clear="all"> -- Arrix
[jQuery] jquery tabs: setting tab width on IE
Hi, Regarding the JQuery tabs plug-in, I want to have variable width tabs, depending on how long the tab text is. So, using the default style sheet from the example (http://www.stilbuero.de/jquery/tabs/ jquery.tabs.css), I removed the "width: 64px;" line of the following CSS block .tabs-nav a { display: block; position: relative; top: 1px; z-index: 2; padding: 6px 10px 0; width: 64px; height: 18px; color: #27537a; font-size: 12px; font-weight: bold; line-height: 1.2; text-align: center; text-decoration:
[jQuery] jquery tabs: How to make the tab contain both text and a small image
Hi, With regards to the plugin (http://stilbuero.de/jquery/tabs/), I want the text of one of my tabs to contain both text and a small, clickable "x" image on the same line. Is this possible? It seems if I put anything more advanced than <div id="container-10"> <div> <ul class="tabs-nav"> <li><a href="#fragment-25">One</a></li> <li><a href="#fragment-26">Two</a></li> <li><a href="#fragment-27">Three</a></li> </ul> </div> within my <li> tags, I get weird exceptions. In particular, Firefox tells me
[jQuery] New Plugin - SerachDb
I have documented the Serachdb plugin. More information at http://www.trirand.com/blog/ Regards Tony
[jQuery] space on your server for plugin demo?
I have a plugin posted and available on google code, but I don't have a place to put the demo page. It will require any middleware application server. I can write in lasso, php, or jsp. The demo file itself should only be about 20k with code and the plugin is less than 8k. If someone is willing to host the demo file for me, I'd appreciate it. You can contact me offline at my non-work email at macwebdev-web at yahoo (you know the rest).
[jQuery] Weird bug when using ie7 jquery and smarty templates
I got this weird bug happening, it only happens when i add jquery on to my website and only in IE. The page seems to crash then when you try to reload and view the source all you see is this: <script id=__ie_init defer=true src=//:></script> I tracked that bit down to a section in jquery and tried commenting it out but then jquery wont work at all, has anyone had this issue or know how to fix it? You can see the url im working on at http://ww2.wcmp.org/ I tried both the compressed and non compressed
[jQuery] New / Updated Plugin - Focus Fields
Haven't updated outlineTextInput's for a while (due to having issues with IE) - which is a plugin for adding outlines to text fields when they are given focus. Done a new version which does seem to work: http://www.texotela.co.uk/code/jquery/focusfields/ Only done very basic testing on Firefox and Internet Explorer. The input's are given a transparent background in Opera, so that could be easily remedied by giving the inputs a background colour via CSS.
[jQuery] Help on Form plugin and Form validation field
Hi folks, I use the great Form Plugin of Mike Alsup with success, but in my form I need a validation of the fields (more fields are of different type). In my first step I need to validate the fields and then call AjaxForm (Form Plugin). How and wich plugin for the validation fields can I do that? Help would be much appreciated. Thanks. -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay
[jQuery] grabbing all href attribute values on the page - how?
im trying to add a class to link elements that point to an external page, using indexOf("http://") on the href attribute to see if they are internal or external links. im using the line below, but it gives an error probably cause of invalid syntax. $("a").attr("href").indexOf("http://") if i use var linksHref = $("a").attr("href") it only gets the href value of the first link, not all of them. im looping through all links to check if indexOf("http://") is == 0, if so -> add the class, if not, don't
[jQuery] jQuery main library (may be fixed?)
1) I'm just starting to use jQuery in projects but also I'm already using Jack Slockum's JSBuilder (http://code.google.com/p/js-builder). This tool makes compression of .js files and have feature of gettin all files together. So the problem is that when I made project with jQuery (unpacked) it trows exception. So I tried to manage where the problem is, it appeared that problem in jQuery code. I've managed it this way: thinking, that js validation in JSBuilder made by JSLint library (http://www.jslint.com),
[jQuery] Storing extra information about objects
Hi All, I'm looking for a way to store information about a class, like the current "page" it's on (for ajax paging) and such. Essentially I would like to do the following: $("#object").page = 2; $("#object").page; //returns 2 However, this doesn't quite seem to work. I considered using attr(), but that didn't seem like the best way to do it, as it edits the HTML. I looked at the metadata plugin, but after a cursory glance it seemed like overkill. Any suggestions? Thanks, Kyle
[jQuery] IE fade problem
Another problem I've been running into is the fadeIn() effect in IE 6 (of course). When I try to fade in text, in IE 6 the text is fuzzy, as if it's out of focus. Normally it suddenly rights itself when the fade effect is complete, but if the text is bold then it remains out of focus permanently. It happens even when I have no styling classes applied at all. Has anyone else run into this before? Has anyone found a solution? --Larry Garfield
[jQuery] jquery tabs: custom html structure?
Hi, I wanted to get clarification around the "Custom HTML structure" of the JQuery tabs plug-in. Specifically, it is mentioned in the docs "If some HTML structure is required that differs from the default one" Does this mean for the tabs themselves or the container holding the content after you click on a tab? Thanks, - Dave
[jQuery] Backwards positioning problem
Hi all. I'm being beaten by a rather strange positioning problem that my hair would appreciate some help with. I'm trying to have a div "popup" with an ajax call when a link is clicked, and remain present until explicitly closed. That part works fine. The problem is positioning that div. I want it to be located so that its bottom left corner corresponds with the link that was clicked. I can get the horizontal position correct, but the vertical position is completely bizarre. I have a series of links
[jQuery] dynamic content load into div
well, i'm having some trouble running my load function on IE6+. it works fine on FF. there's 2 load functions: 1) one gets the command from div #menu and loads it into div #total. 2) the other one get the command from div #total and loads it in itself (#total). and number 2 is not working on IE. don't know why... i got the lateste version of jquery, and got my load function from this site: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://education.llnl.gov/jQuery/" target="_blank">
[jQuery] $("input").val("") throws exception
I have not checked in IE, but in FF, if you try and set a value for an input to be nothing, i.e. - "", then it throws an exception. If you add a single space " ", then it works just fine. After submitting a form via $.AJAX(), I need to reset the form fields to be empty (nothing in them). Anyone else have this issue before? Loading in the form plugin is not an option. Thanks. Brian
[jQuery] Changing type input on IE
Hi, I need to do this: $("#btnEnviar").attr("type", "button"); But accordind to my googled, I think that it's not possible on IE <a href="http://dev.jquery.com/ticket/120"> http://dev.jquery.com/ticket/120<br clear="all"></a> How can I do to solve my problem ? Regards, Harlley -- <a href="http://www.syssolution.com.br">www.syssolution.com.br</a> ------------------------------------------------------ Desenvolvimento de sistemas e sites ------------------------------------------------------ <a href="mailto:contato@syssolution.com.br">contato@syssolution.com.br</a>
[jQuery] Live Example Question
Hi, On the jquery live examples site http://www.jquery.com/Tutorials:Live_Examples_of_jQuery example B - which is 2 buttons which slide some text into and out of a paragragh. The code for the example is... $("div.contentToChange p.firstparagraph:hidden").slideDown("slow"); $("div.contentToChange p.firstparagraph:visible").slideUp("slow"); I wanted to know how how this was setup on the HTML side? Thanks
[jQuery] show() pops upon element twice
Hi, I've got this weird thing where whenever I call show(), the DOM element it's being called on pops open twice! I've narrowed down the area of the code that seems to run twice to the following section in jquery.js. (starting line 1575) animate: function( prop, speed, easing, callback ) { return this.queue(function(){ this.curAnim = jQuery.extend({}, prop); var opt = jQuery.speed(speed, easing, callback); for ( var p in prop ) { var e = new jQuery.fx( this, opt, p ); if ( prop[p].constructor ==
[jQuery] jQuery.validator.addMethod How To
Hello, I am using the form validation plugin and I am stuck on the addMethod. I have created a method using the addMethod function, in this I have an ajax call to a server side page that validates the passed value. Every thing works ok except I cannot figure out how to get the new userNameInUse method I created to return true or false based on the result of the ajax call. here is my code... jQuery.validator.addMethod( "userNameInUse", function(value) { $.ajax({ type:
[jQuery] New plugin: simple character counter for textareas
I've just released the first version of a simple plugin to add character counters/limiters to textarea elements. The demo and code can be found here: http://www.tomdeater.com/jquery/character_counter/
[jQuery] Stuck: with form validation + forms plugin w/ajax submit and forms options object
While I love jQuery, I haven't used it for anything particularly complicated - I'm having a difficult time getting an ajax submitted form in to work with the form plugin and the validation plugin. I'm trying to use the validation plugin's submit handler method: submitHandler: function(form) { $(form).ajaxSubmit(); } to also include the form plugin's options object that looks something like: var options = { success: function() { self.parent.tb_show('Email My Visit','#TB_inline? height=180&width=407&inlineId=tbSuccess','');},
[jQuery] jQuery svn browser broken. Some documentation unaccessible
In an effort to download the dimensions plugin I've discovered that the svn browser is not working and the link to the plugin on the jQuery site is inaccessible. I understand that there has been some trouble of late so I thought it best to spread the message in the event that these problems are unknown. Now, until this is fixed can anyone mirror the dimensions plugin for download? Thanks -- View this message in context: http://www.nabble.com/jQuery-svn-browser-broken.-Some-documentation-unaccessible-tf3716666s15494.html#a10397396
[jQuery] interface 2 plugin
Is there any news about Interface 2 plugin ? Any beta to test ?
[jQuery] REMINDER: jQuery Tutorials & Documentation
Just a reminder to everyone, especially those that are just starting out with jQuery, that we have a very comprehensive tutorials section for you to learn from. Visit the jQuery tutorials page here: http://docs.jquery.com/Tutorials Two sites that are invaluable are: http://www.learningjquery.com/ http://15daysofjquery.com/ both of which do an excellent job of teaching you how to use the jQuery library. Also, don't forget that about two other very important documentation resources that will greatly
[jQuery] Delay mouseover trigger - how?
Mouseover is a very sensitive trigger and if a page/section has many triggers for mouseover they all inevitably register the event on mouseover and kill the show. I want to achieve a way of triggering the mouseover event only if the mouseover happens for a little longer and cancel the event otherwise. I feel many people would have felt the need of having this at some point. Say the mouseover even will register only if the mouseover happens for 0.5 second and if not the event is cancelled or not triggered.
[jQuery] get url?
I've been trying to do something in php and it dawned on me that jquery would be much easier and better. I have an auto generated link, which when one goes to it, its a redirect to an mp3 file. (link broken to fit. http://www.site.com/app/fetch.app? feed_id=29308&perma_link= http://www.anothersite.com/our-designs.php Redirect goes to http://www.site.com/audio/b/k/d/e/1216578.mp3 Can jquery get the second url and print it to the page? Thanks in advance and apologise if it's a dumb ques.. Bruce Prochnau
[jQuery] click - Basic issue
Hi all I am trying $("p").click( function() { alert("Hello"); } ); but I would like open in same window a page(link) like <a href="http://localhost/home">http://localhost/home</a> How can I do that? I can only receive popups with click() function Regards Mario
Next Page