[jQuery] Bind event to tab selection in 1.1
<div>Ok so I had something really cool setup in 1.3, then I saw Klaus' history object doesnt' integrate with tabs 3!</div> <div> </div> <div>Does anyone know how to bind events to the tab selection action in JQuery 1.1? I'm just trying to focus on one the fields in the tab content area. I have tried the tabs().bind() and the new select: function syntax.</div> <div> </div> <div> </div>
[jQuery] Order of elements in a jquery object
<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] JQuery Cycle Question
Hey guys, i just had a quick question about settings for the jquery pager. I've got it doing mostly what i want, but i'm wondering if it's possible to invoke a pause when you hover over a pager item. Right now when you hover it changes to that item, then continues about it's business cycling through items. http://monsterpocalypsegame.com/ It's not a huge deal, just something i'd like to be able to change if possible. Thanks.
[jQuery] math with form fields
Okay here's my form for a BMI Calculator I'm making. <form action="" id="bmiCalc" onsubmit="return false;"> <fieldset> <legend>Your BMI</legend> <ol> <li><label for="height">Height</label> <select id="feet" class="textfield"> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> </select> ft <select id="inches" class="textfield"> <option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option>
[jQuery] Assign 'active' to nav element
I want my h2 element to be assigned class 'active' when selected, I have tried numerous methods but to no avail, some guidance would be appreciated! function initMenus() { $('div.menu div.gallery').hide(); $.each($('.menu'), function(){ $('#' + this.id + '.expandfirst div.gallery:first').show(); }); $('div.menu h2').click(function() { var checkElement = $(this).next(); var parent = this.parentNode.parentNode.id; if($('#' + parent).hasClass('noaccordion'))
[jQuery] JQuery Validation Script within a Step Wizard Script
I like to incorporate the Validation scripting into a Step Wizard http://worcesterwideweb.com/jquery/wizard/; I got it pretty much licked except the section where it only validates the available step and ignores the others. I pretty much followed the same layout as in this demo > http://jquery.bassistance.de/validate/demo/multipart/ the part I am getting confused with is how it is determining the index in the match function. Is this part of the validate scripting or found in the accordion scripting?
[jQuery] List. Could someone help me in doing this?
Hello, On a page I have two inputs, A and B, a select, C, and a button. I also have an unordered list. When the button is pressed the content of A, B and C should be put together into a string: "A (B) (C)" And added as a list item into the list. There should also be a button for each list item that when pressed should remove the list item. The item should only be added if an option was selected in C and if A is not empty. B can be empty. Is this possible? Could someone, please, help me out? Thanks,
[jQuery] unsubscribe
<div dir="ltr">unsubscribe!!!!!</div>
[jQuery] On writing beautiful code
I'm fairly new to Javascript and although I have become familiar with the jQuery library, I still have no idea how to structure my code cleanly. My current project (http://www.pycmds.org) has risen to about 300 lines of code and although it works, it's basically spaghetti. So I'd appreciate some advice, examples, idioms, etc. on how to refactor my current mess into beautiful, readable code. Thanks, --Chris
[jQuery] jCarousel Width Problems
Hi. I'm have a big problem with the reload() event for all browsers, and some weirdness in IE 6 / 7. I thought I posted this earlier, but doesn't look like it made it on. Basically my problem looks to be with how carousel is figuring out the width / left position.. in the reload() event, <code> this.list.css(this.wh, wh + 'px'); this.list.css(this.lt, -lt + 'px'); </code> im pretty sure its the lt . What happens is once you toggle the horizontal carousel 'next', and then resize the browser, you will
[jQuery] XHTML Selector Nightmare
I really don't know why I'm having such a hard time with this (maybe its the two monsters and three cups of coffee) but I'm trying to select a range of rows in a 1000 row xhtml table, between starting row with class "sMarker" and ending row with class "eMarker". I'm trying to use the following selector... $('.sMarker ~ row:not(".eMarker ~ row")',myTable) In my mind this should take my ".sMarker" row, grab all sibling rows after, and then filter out any rows that come after my ".eMarker" row. Or am
[jQuery] Should not trim the values in jquery validation
<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I think the validation framework should not trim the values.</div><div> </div><div><div>var result = $.validator.methods[method].call( this, $.trim(element.value), element, rule.parameters );</div><div>------------------------------------------------------------------------^</div><div>Should NOT trim it.</div></div><div> </div><div> </div><div>And it now caused a bug:</div><div> </div><div>
[jQuery] form select...
How do I use jQuery to determine which item was selected from the forms below? Thank you for the help. <form> Select your favorite fruit: <select id="fruits"> <option>Apple</option> <option>Orange</option> <option>Pineapple</option> <option>Banana</option> </select> </form> <form> Select your favorite fruit: <select id="analysis"> <option>All fruits</option> <option>Some only...</option> </select> </form>
[jQuery] jcarousel support
Hi There. I'm having a weird problem with jCarousel but I think I've narrowed down a lot. So I believe these issues are related, but 1 is to do with IE (both 6 / 7) and the other happens in all browsers (firefox 3 included). To make this happen in Firefox, you'd have to toggle the carousel 1 direction and then resize the browser window for the 'resize' event that carousel has to be fired. once that fires, its like the width value that it once had changes, and the furthest position left becomes dead
[jQuery] Problem Finding Children
I need to fade the image associated to the inputs that have been checked. Jquery: $('input:checked').each(function(k,s){ $( "label[@for='"+s.id+"']" ) .find(" > span > div > img" ).fadeTo("fast",0.5); }); Sample html: <td id="Cell.1.0" style="vertical-align: Bottom;"> <div></div> <input type="checkbox" name="myName" id="_Q0_C1" class="mrMultiple" style="" value="__1024" checked="checked"> <label for="_Q0_C1"> <span class="mrMultipleText" style=""> <div
[jQuery] Sifr removing header when printing
I am working to get my print CSS correct, however, the h2 tags which I am using sifr on, are getting hidden when printing the page. Any thoughts on how to remedy this? Thanks. Seth
[jQuery] Include Scripts
Hello, I am working on a web site where I have a master page. Most web site pages use this master page as base. Some scripts are used in all pages ... other just in a few pages. Should I load all scripts in master page ... I think they are cached right? Or should I load the common scripts to all pages in my master page and then in each page load the scripts that are not used in all pages? Thanks, Miguel
[jQuery] Licenses
Hi all! I am using jQuery in a web project for scrolls, accordions and slideshows. The client belives that the website become an open source because we are using an open source library. Is this correct? If I use an open source library all the project must be open source? How can I refuse this idea? Thanks in advance!
[jQuery] Problem with JQuery Form, file upload and success option
Hi, The code in my success option does not execute when I have a simple form with a file field. When I use a form without a form field, it works. Here's the code <form id="photo_upload_form" action="/upload" enctype="multipart/ form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <div> <label>Choose your photo:</label> <input type="file" name="photo" id="photo_filename" /> </div> Choose a .jpg, .png, or .gif file (1MB max file size) <span id="uploadbtn"><input type="submit" name="submit_upload"
[jQuery] Adding class to a parent element- traversion help?
I've got the following as my jquery code: <script type="text/javascript"> $(document).ready(function() { $(".bc-wrapper:empty").(this).parent().addClass("none"); }); </script> And the html is: <div class="bottom-content"> <div class="bc-wrapper"> </div> </div> The css is as follows: .bottom-content { display: block; width: 215px; border: 1px solid #ccc; float: left; margin-right: 20px; } .bc-wrapper { padding: 5px; } .none { visibility: hidden; border:
[jQuery] jEditable Clone Referring to the Original Element
Hi all, I'm trying to make a jEditable element part of an duplicateable group of elements so that users can create as many elements as they want. What I'm running into is that, while the new elements take on the properties of the original counterparts, the jEditable elements that are newly inserted still refer to the item from which I based the clones, which has a unique ID from the clone. In short, I can clone jEditable items, but I can't edit them in place without a page reload and rewriting from
[jQuery] Hidden spam on jquery blog
Right after the script tag with urchin.js. Can the powers that be fix this, please?
[jQuery] I want to reduce the header calls
Hello, I want to reduce the header calls for a flash file used repeatedly on a page. There are 24 HTTP requests for a file that is already downloaded.. So My question is how would I call it once and then not again for the rest of the page? the code area is like this ex.1) src: (p.path || '').replace(/([^\/])$/, '$1/') + (p.font || ele.css('fontFamily').replace(/^\s+|\s+$|,[\S|\s]+|'|"|(,)\s+/g, '$1')).replace(/([^\.][^s][^w][^f])$/, '$1.swf'), ex.2) var SORUCE = 'Scripts/flash/rounded_rectangle.swf';
[jQuery] html() doesn't work for me. innerHTML() do. Why?
Hello all: I'm newby in jquery, and I have the next problem: I've a form working with the form plugin. It works fine. I have the next callback method: function showResponse(responseText, statusText){ alert(responseText); $('#frameBody').html(responseText); alert ($('#frameBody').html()); } When the showResponse() method is invoked, the first alert() shows something like that: <div> <spann>buttons</spann> <div id="myDiv"> <div id="errorsDiv"> <html:errors /> </div> <spann>Main Page</spann>
[jQuery] List. Is this possible?
Hello, I have three inputs A, B and C and button. This is a group inside a form. When I click the button I want to add the information on the inputs into a list under the button. The information must be displayed as A ( B ) ( C ) and have a small button on the right to remove from list. When the form is submitted I would like to be able to get all items in the list in order to parse them and create data in my server side code. How can I create this list functionality? Thank You, Miguel
[jQuery] ScrollTo problems
Hi I have been trying to use the scrollTo plug in.. but i just can't get it to work.. can someone please point out where the error is? This is exactly what I typed: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head><title>scroll</title> <script src="jquery.js" type="text/javascript"></script> <script src="jquery.localScroll.js" type="text/javascript"></script> <script src="jquery.scrollTo.js" type="text/javascript"></script> <script src="jquery.js"
[jQuery] jquery anchor
I am wondering how can I do like this, http://davidwalsh.name/dw-content/smooth-scroll.php, with jquery. What I want to do is that a smooth move when I click an anchor within a page. Can anyone help me please?
[jQuery] Animation sequences
Hello, jQuery and all new to me and let me know if anyone among you have a technique that could help me with my problem. I try to make 3 animation sequences one after the other. The problem is that I am unable to complete the animation sequences. They all begin at the same time. Does anyone ever had is `problem and if so, could you help me. Thank you in advance for tips, advice, tutorials and example you give me. Good day! MaDBrain
[jQuery] Help with plugin release editing
Hi all, I've made a plugin and made a mistake with one release, now i can't edit, or even delete.. the plugin is this: http://plugins.jquery.com/project/meioMask And the mistake is tht i've put the compressed version of the plugin saying that it is compatible with version 1.0 of jQuery and it is not! How do i delete it? or edit? I tryed to edit but the 1.2.x version compactibility doe'ns show up (i think that you can just have one file for each version of JQuery, and i still have the uncompressed
[jQuery] offline docs
<div dir="ltr">The <a href="http://docs.jquery.com">docs.jquery.com</a> site doesn't lend to easily making available offline via wget (or am I missing something) is there any sort of offline availability there? I am unable to access the web in the environment I work in so it's kind of a pain.<div> </div><div> </div></div>
[jQuery] Animations sequences
Hello, jQuery and all new to me and let me know if anyone among you have a technique that could help me with my problem. I try to make 3 animation sequences one after the other. The problem is that I am unable to complete the animation sequences. They all begin at the same time. Does anyone ever had is `problem and if so, could you help me. Thank you in advance for tips, advice, tutorials and example you give me. Good day! MaDBrain
[jQuery] Setting the selected item in a combo box
I have an element that I populate with an Ajax call and returns a list of items for a combo box. In some cases the page containing the element gets loaded with existing values and rendered and I'd like the textbox to contain an item that was selected before the element is rendered. Is there a way to set that value? I have done some searching but haven't found a solution as yet. I have looked at setting the "selected" attribute but haven't found an example that works. I have also tried setting the
[jQuery] jCarousel scroll by 4 breaks in tail section
I'm having a strange problem with a customised jCarousel I'm working on. The carousel has 16 dynamically loaded items, 4 are visible and it scrolls by 4. The prev/next buttons are custom and wrap is set to both. Everything works fine until it gets to the 4th page of items, where it will only scroll in 3 more items, making the last item from the 3rd page become the first item of the 4th page leaving the very last item still hidden until you click next - it will then scroll by 1 to display the last
[jQuery] async treeview - disable ajax call for node collapse
The async treeview seems to be making an ajax call when a node is expanded as well as collapsed. We would like it to make the call only on expand and not for collapse. Is there a way to do this currently? Thanks for the help.
[jQuery] select data in a <p> ignoring the <span>
Hi Guys, this is the Code which I am working on Data which I need to select and it hasn't an attribute <span> Data in a Span </span> Data which I need to select and it hasn't an attribute <span> Data in a Span </span> Data which I need to select and it hasn't an attribute <span> Data in a Span </span> How could FIlter and Select the text Before the <span> does someone has an Idea ?
[jQuery] Jquery validation messages repeating
When i press the submit button of a form, it is showing the corresponding error message by the side of the text field. But when i press the submit button again, the error message is getting concatenated with the older one and getting displayed (means it is displaying that many times the submit button is clicked ) Eg: *Required *Required I pressed the submit button 2 times
[jQuery] [validate] regexp validate email error?
I am using jQuery validator and this format doesn't pass although is a standard one" some.email@test.com can I overwrite somewhere/somehow the regexp of this plugin without touching it or there are better ways to do it? Thanks
[jQuery] Mechanics of jQuery
How does jQuery select classes, psuedo-classes, and IDs? What are the actual components of the source behind this? Please, do not respond with how I would use the jQuery class selection functionality.
[jQuery] calling jquery cycle function from flash
Hi, I'm using this http://malsup.com/jquery/cycle/ jquery cycle plugin for a slideshow on http://dev.emsix.com/renaissance/default2.asp this page . I have 2 images to rotate in the graphic masthead, each with a flash movie overlay (the yellow text). Instead of having the images cycle automatically, I'd like to call that function from Flash. In other words, I want to dictate when the image should change at a certain point in my flash movie. I'm not sure at all how to do this. I've tried to tuck the
[jQuery] Validation regarding Jquery
Hi, Small doubt regarding jquery. I am getting the jquery messages as the no.of times I clicked the update button of my form. In detail, When i pressed the update button of my form, i am getting the validation message beside the textbox. But when i pressed the update button one more time (now 2 times the button is pressed), i am getting the validation message 2 times and so on.. Can anyone please help me to fix this one. Thanks, Surya.
Next Page