[jQuery] Superfish hover question
Thanks for a really excellent plugin, Joel. I've got it working just great, with one small hitch. In your example of a horizontally aligned navbar with submenus, when one of the main navigation tabs is hovered over, the background of the tab changes, and becomes the only "highlighted" tab. On my menu, the background of the tab does change, but the background of the current pages tab remains constant. You can see the page here, and notice that the "home" tab background never changes, which it does
[jQuery] jQuery Camp 2008 to be held at The Ajax Experience on Sept. 28th.
The jQuery Team is pleased to announce the second annual jQuery Camp! jQuery Camp 2008 will be held on Sunday, Sept. 28, the day before The Ajax Experience, in Boston, MA (location TBA). Last year, over 100 jQuery developers gathered for a full day of jQuery sessions, which included talks from such big names as jQuery creator John Resig and other core team members, as well as talks from expert users exploring new and exciting jQuery projects. It brought together the largest group of jQuery Core Team
[jQuery] Checkboxes, difference in browsers
Hello. I have this JQuery code which works absolutely fine in Firefox: if ($("#createNewAccount").is(":checked")){ // do stuff } The variable 'createNewAccount' is defined as follows: <input type="checkbox" name="createNewAccount" id="createNewAccount"> But this simply will not work in IE. What am I doing wrong please?
[jQuery] [validate] success, failure?
Hi! I want to do something when input is correct and something else when isn't. I found options 'success' and 'errorPlacement' which aren't in documentation. errorPlacement: function(error, element) { error.appendTo(element.parent()); doSomething(); }, success: function(label) { doSomethingElse(); label.remove(); } Works well, but I don't like it. I must remove label in success, because another way errorPlacement works
[jQuery] select all divs with the same name
Hello, How would I select all divs with a certain name? In mootools I could use: $$('#mydelete'). That would return an array of the divs named "mydelete". What would the JQuery equivalent be? Thank you.
[jQuery] OT: any idea how to know what firefox is currently loading ?
hi mates, in one of my application interfaces, the page is fully rendered but the browser loading icon (top-right of firefox ) keeps on turning and the status bar also says so. I'm working on my local test server (localhost) and checked both the source code and generated source code: all loaded css and javascript file urls are correct. Any idea if there is a plugin that allows to view in detail what firefox is trying to load ? PS: i use an instance of FCKEditor. could it be it? thanks!! Alexandre
[jQuery] Google Code Download not working - Any Mirrors?
I'm trying to download the latest jQuery from the links on the jQuery home page. My browser gets to Google Code, but all listed downloads are failing w "Firefox can't establish a connection to the server at jqueryjs.googlecode.com." I've been trying for a while now with no luck. Are there any mirrors available?
[jQuery] Resizing two divs proportionally
I would like to know how I could resize two divs proportionally to each other. I have the resize UI plugin working to resize the top div, but I would like the bottom div to resize as well, depending on the resizing of the top div. (Similar to how many mail programs manage the list of mail, and viewing the mail below that). I used: $("#resizebleImage").resizable({ handles: "s", proxy: "proxy" }); Now, I know there is a UI option called proportionallyResize, but I can find no info or help about this.
[jQuery] Is there a way to use the css function with $(document) directly?
I was tinkering with jQuery when I got an idea: why not have a way to do something like: $(document).css(selector,rule); Then it could be chained for as many rules as you would wish: $ (document).css(selector1,rule1).css(selector2,rule2)...css(selectorN,ruleN); If this is already part of the jQuery functionality, tell me the syntax to use. Otherwise, consider this a submission of a new idea.
[jQuery] Finding all inputs with name X?
How can we find all inputs with name X? Thanks
[jQuery] [validate] Validate based on other fields but not being required
[validate] Validate based on other fields Hi all, I'm just getting to grips with this Validation plug-in but would like to check whether something is possible. I would like to run validation on a field based on values from other parts of the form. I realise that this is possible with the required field, i.e. required: function(element) { return jQuery("#textarea1").val == 'buga' && jQuery("#textarea2").val != 'booga' } But this is also possible for the other functions? i.e. the same as above but
[jQuery] kudos to Mike Malsup for his cycle plugin
Just wanted to send a word of thanks for Mike Malsup for his cycle plugin. I just completed a project with a same-day deadline, and it would have been a static, boring page without the cycle plugin. One line of javascript, and I had a beautiful fading slideshow. Here it is: http://www.barfbrand.com/
[jQuery] Sorting Divs by Span Value
I got a little bit of info from this old thread - http://groups.google.com/group/jquery-en/browse_thread/thread/e0d6c199552dd1f7/145d28867f5e9577?lnk=gst&q=sorting#145d28867f5e9577, however, not enough. For some reason, when sorting numbers, it disregards the second number. So if I have {11,100, 500} it would sort it {100,11,500}. That is completely wrong. My intension is to have a Div which holds hotel information. (I know I could do a table and use tablesorter, but the layout does not look good
[jQuery] tablesorter: Glue two rows together
Hi, is it possible to glue two table rows together, so that when the first row is sorted, the second row always comes next? Michael
[jQuery] JQuery variables
Hi all. I've done some searching, but being new to this am struggling to find what I'm after even though I'm sure the answer is simple. I'm in at the deep end working with a webapp that uses JQuery, I presume with various plugins for form validation. I have some code as follows: jQuery(document).ready(function() { if ($("#createNewAccount").is(":checked")){ jQuery('div.showHideAccountDetails').show(); }else{ jQuery('div.showHideAccountDetails').hide(); }
[jQuery] [validate] Resetting validation rules dynamically
I'm currently using the jQuery Validation plugin on a page that needs to dynamically update the particular rules you validate against according to which options the user selects (imagine a payment page which accepts different payment methods; you wouldn't want to validate against credit card fields if the user isn't paying by credit card). I've been working under the assumption that I could do this simply by firing the $().validate(options); method again, with a new set of arguments, but this doesn't
[jQuery] Why do i keep getting: test is not defined!
hey, function removeItem(name, obj) { var answer = confirm("Are you sure you want to delete: " + name + "?") var test = obj; if (answer) { $(test.parentNode.parentNode).fadeOut("slow"); } } the code is simple and still not working.. the issue is that i try to call a variable in a if that wasn't made there.. but how can i resolve that? Why is javascript not working how you would expect it to work :S i know Java and PHP well and things like this are no issue in them. o and in this code i already put
[jQuery] conflict in list menu: overlapping lists
i use this function to show/hide the second level. But when i use the slideDown method the sublevel menu sometimes is still visible during hovering another list item with classname niv1, so you get 2 levels overlapping and i don't want that of course. It is a crossbrowser problem. Is anyone familiar with this problem? function Menu(){ $('li.niv1').hover( function(){ var elm = $(this).find("ul.submenu"); elm.slideDown('fast'); }, function(){ var elm = $(this).find("ul.submenu");
how do i respond to click and hover at the same time?
Hi. This is what i have tried but doesnt seem to work... $(document).ready(function(){ $("#gallery-thumbs a").bind('click', 'hover', function(){ $("#img2").fadeTo(1, 0.0); var largePath = $(this).attr("href"); var largeAlt = $(this).attr("title"); $("#img2").attr({ src: largePath, alt: largeAlt }).fadeTo(1500, 1.0); $("h2 em").html("" + largeAlt + ""); return false; }); Im not really sure what i am doing. Also, i get an
Selecting last row (range 1-4)
Hi, No clue if this is really possible. But I have an undefined amount of div-tags floating in an content div. There are max. 4 divs in a row. Now I want to select always the last divs to add an extra class. I know to select the last object but not the last one in a range from 1-4 depending on how many containers are on the page. Any idea if this is somehow possible? thx T.C.
[jQuery] Firefox is taking a long time to load an external script
For some reason, Firefox consistently takes about 30-40 seconds to load an external script. IE loads the script right away. The javascript is actually a JSP script that returns Javascript code for a live chat script. Has anyone noticed something like this before? Why might this delay occur only with Firefox? Is there anything that can be done about it? One workaround that I've thought of is to try and load that script last so at least the user doesn't have to wait for that script to load before all
[jQuery] Get some text and replace it
I have this: <span class="email">contact [monkeytail] yabadabadoo [dot] .com</span> Now I want to replace the text [monkeytail] with some other text. Is there a simple solution that I can get the monkeytail text and replace it with something else?
[jQuery] jquery.ajax does not handle UTF-8 HTML
Hi folks, I was trying to use jquery ajax to receive the utf-8 HTML from a Java servlet. Even I set the servlet response to "Content-Type: text/html; charset=utf-8", it still shows ???? if there are utf-8 chars in the returning HTML. Now, my hack is to use utf-8 XML to wrap the HTML. It works, but I feel it is a little bit urgly. Anyone please tell how I can tell jquery ajax to decode the returning HTML with utf-8? Thanks in advance!
[jQuery] innerfade element with opacity and IE
Hey everyone, I've run into an issue with innerFade and IE when I'm fading an element that has the opacity set in css. More specifically, I have a slide div, which has an img, and then a caption div. The caption div is set to 80% opacity. Of course it works fine in FF, but when IE runs the effects, it first kicks the opacity to 100%, which is greatly not desired. example at: http://client.grcmc.org/wip/nv/ thanks all Duby
[jQuery] cluetip and FF3
hello, i'm having issues implementing a simple cluetip in Firefox 3, it blocks the browser with a "script is running slowly" message. i use the default (rel="url") ajax call. The error message points to line 503 anyone has the issue ? thanks, Alex Alexandre Plennevaux<br clear="all">
[jQuery] Online Career resources study on careerbirds.com
20-6-2008 –walkin,IT FRESHER,IT EXP OPENINGS Online Career resources study on careerbirds.com http://www.hotjobseeker.com/ * Oracle Apps Techno Functional Consultant http://www.hotjobseeker.com/ * J2EE TECHNICAL ASSOCIATES AT PROKARMA AT HYDERABAD http://www.hotjobseeker.com/ * BEA-Weblogic-Application Server Admin http://www.hotjobseeker.com/ * Datastage Developer -ASAP Infosystems Pvt Ltd http://www.hotjobseeker.com/ * Cognos Developer -ASAP Infosystems Pvt Ltd http://www.hotjobseeker.com/ * Javascript
[jQuery] lightbox with form
Anyone know of a j.box? <a href="http://particletree.com/features/lightbox-gone-wild/">http://particletree.com/features/lightbox-gone-wild/</a> I need to place a link that triggers a lightbox that holds a form. Any ideas, people? Thank you in advance. -A
[jQuery] Valuable Information
www.BrandonsCastle.com
[jQuery] [validate] integration with spring web flow 2.0
Is anyone using web flow 2.0 with the jquery validation plugin? It seems that some extra work needs to be done in order to properly integrate it For example, I had to override the errorPlacement and add "$(element).prev(".error").replaceWith("");;" because the old error messages would not be removed $(document).ready(function(){ $("#command").validate({ errorPlacement: function(label, element) { $(element).prev(".error").replaceWith("");; label.insertBefore(
[jQuery] Interesting list - Javascript framework usage among top websites
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher"
[jQuery] Can't make a .click to work
Hi list I'm having a problem with a simple .click function, can anyone hint me on what I'm doing wrong? Here's the code I'm using: //this works $("#aboutIs").load("<?php bloginfo('template_directory'); ?>/ zerocincoe.php"); //to get the first quote //this works $("span#reload img").hover(function () { $(this).css({'cursor':'pointer'}); }) //this don't work, I can't even get the alert to show up; $("span#reload img").click(function () { $("#aboutIs").load("<?php bloginfo('template_directory');
[jQuery] jQuery cannot select <!-- COMMENT --> element?
Am I right in thinking jQuery can not selected the <! COMMENT --> element?
[jQuery] Modify ID attribute
Hi!, I'm new with jQuery, and I tried to modify the id attribute of a div without success. I need to do that because I want to change some CSS properties of that div, and I already have the code. So, how can I change something like this: <div id="header-blue" class="span-24"> into this: <div id="header-yellow" class="span-24"> ? I've already tried with $("#header-blue").attr("id","header-yellow); without success. Any ideas? Thanks in advance. -- View this message in context: http://www.nabble.com/Modify-ID-attribute-tp18010518s27240p18010518.html
[jQuery] .load() post issues
I'm having a problem getting my server side script to see the variables posted by a .load(). Consider this code snippet: $('#modal_editphotos').load('/includes/members/ajax_edit_album.cfm', { albumID: 3 }); Given that it is coldfusion, I should be able to access the variable "albumID" with "form.albumID," however, the response is a 500 error saying that "albumID" does not exist. A GET method works fine (referring to albumID as "url.albumID"), but I cannot for the life of my figure out why these vars
[jQuery] [validate] integration with spring web flow 2.0
Is anyone using web flow 2.0 with the jquery validation plugin? It seems that some extra work needs to be done in order to properly integrate it For example, I had to override the errorPlacement and add "$(element).prev(".error").replaceWith("");;" because the old error messages would not be removed $(document).ready(function(){ $("#command").validate({ errorPlacement: function(label, element) { $(element).prev(".error").replaceWith("");; label.insertBefore( element ); }, Now,
[jQuery] Can't post in this forum
Hello, Most of my posts in this forum are not published. Why? Thanks, Miguel
[jQuery] Modify ID attribute
Hi!, I'm new with jQuery, and I tried to modify the id attribute of a div without success. I need to do that because I want to change some CSS properties of that div, and I already have the code. So, how can I change something like this: <div id="header-blue" class="span-24"> into this: <div id="header-yellow" class="span-24"> ? I've already tried with $("#header-blue").attr("id","header-yellow); without success. Any ideas? Thanks in advance.
Calling multiple ID's for one event
Hello all! I'm trying to figure out a way to call multiple ID's listeners for a single click event. I'm not sure if I'm explaining myself right, here is an example... I don't want to do this: $("#id1").click(function(){ DO SOMETHING HERE }); $("#id2").click(function(){ DO SAME AS ID1 }); $("#id3").click(function(){ DO SAME AS ID1 }); Instead, I'm trying to find a way to have one click event on multiple IDs, something similar to this: $("#id1"),$("#id2"),$("#id3").click(function(){ DO
[jQuery] Trouble referencing an element's id after binding a click event to a set of elements
Hello chaps and chapesses I have hit a bit of a snag and wondered if you could help me out. I am using the jHelperTip plugin and am trying to apply a tooltip to multiple info icons in one hit rather than code each one up individually. Here is my code $(".tooltipContainer .tooltipTrigger").jHelperTip({ trigger: "hover", topOff: 18, leftOff: -73, dC:"#" + $(this).find(".tooltipContent").attr("id"), autoClose: false }); The problem is that the content for the first tooltip pops up for each one. I'm
[jQuery] What is the best way to send data betwen JS -> PHP
Hi, I use POST for send all data to a PHP scrip, for ex: data:"script.php?id="+id+"&text="+text, but sometimes text contains \& or another strange char and I think that is not the better way for send data. ¿what is the best way? PHP -> JS I use json, but for JS->PHP? Thanks
Next Page