[jQuery] ID's start with #
Hello, How do I find an element who's id starts with #? For example: <textarea id="#SAM1"></textarea> the following does not seem to work $("##SAM1").text("hello"); Any help is greatly appreciated. thank you, Sam
[jQuery] Cycle "Jumps" in IE
Hi All, jQuery file: jquery-1.3.1.min.js jQuery Cycle file: jquery.cycle.all.min.js (I believe these are the most recent versions, downloaded both today) The cycle with pager is working fine on my site in all browsers. In IE7, when I refresh the page, the 4 images contained in the cycle ALL show at once - in a cascade - before collapsing into their desired div. It functions fine in IE (fading through the images perfectly with the pager), but how can I get rid of this "jump"? All 4 images show at
[jQuery] get visibility state after toggle()
How can I tell what the visibility state of an element is which has just been toggled? Is my selector no good or is it a matter of timing? . The situation is that I'm displaying a page of search results. I'd like the "advanced" search features to be present at the top but I'd prefer to hide them. So, I'm creating a link which will toggle the box display. What I haven't been able to figure out is how to swap the text of the link depending upon the state of the box. Or, rather, it will change to "hide
[jQuery] jQuery / FF3 problem using "show()"
I wrote a relatively simple jQuery script to pick a random item from a list and show it. The other items are hidden. The script works in FF2, IE7, and IE8 RC 2. It does not work properly in FF3. A simple "show()" call is used to show the UL element after one of the items is chosen. The evidence suggests that the show() method is not working as expected in the specific circumstances of the test. You can see the problem on this test page: http://www.johncardinal.com/tests/jqff3/index.htm The problem
[jQuery] jQuery.tablesorter("destroy"); ?????
Is there a way to destroy the tablesorter object like: jQuery.tablesorter("destroy"); I don't see anything in the documentation or code. Thanks! Jay -- View this message in context: http://www.nabble.com/jQuery.tablesorter%28%22destroy%22%29--------tp21939503s27240p21939503.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] selector to return the number of rows in a table before the row I just selected
Hi, I am selecting the row of a table. I would like to be able to count how many rows there are in the table before the row I just selected. i suppose there is a jQuery selector that will do this. Thanks
[jQuery] jq.ui and the embedded autocomplete plugin
Earlier I received an embedded autocomplete plugin, when I downloaded a jquery.ui compilation. Now this plugin is missing and it seems like the rc2 version, I still have got here, does not catch on (no errors, just does not react in any way) anymore. Is this still maintained? Where can I get it or should I better look elsewhere? --Jan
[jQuery] form plugin and prettypopin/lightbox
I am using prettyPopin lightbox for a file upload form, and I am also using jQuery Form Plugin to upload the image file and update it accordingly. Unfortunately, the file is not being sent. The $_FILES array is empty. I've included the jQuery and HTML being used. If someone can please look and let me know if I'm missing something, because from all the examples I've seen it doesn't seem to require too much to upload a file. Thanks. updatephoto.php jQuery: $(document).ready(function() { var options
[jQuery] modify from server two jquery elements in the same time
I would like to modify two jquery elements in the same time from PHP module. The PHP module is called by .ajax $.ajax( { type: "POST", url:'my_module.php', dataType: 'html', success: function(resultat) { ***** ????? *****}, error: function(requete,iderror) {alert(iderror);} }) } <div id=field1>... <div id=field2>... PHP code: echo " ***new value for field1 **** new value for field2 *** " How to formulate the success function AND the echo instruction ?
[jQuery] cycle plugin works on one page, but not on the other. NO DIFFERENCE!
Hey guys, I'm currently about to rip my hair out because I cannot figure out what is going on with this jQuery cycle plugin. I've used it several times on several projects, but for some reason, it's not working on this one... PLEASE help me figure out what I'm doing wrong.... <html> <head><title>OsCommerce</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <script language="JavaScript" src="jquery-1.2.6.min.js" type="text/ javascript"></script> <script language="JavaScript"
Show / Hide problem with Comments form
I have been developing a WordPress theme (Nerd)Press but struggling with final stumbling block to get it finished the latest version can be found here... http://dev.nerdpress.co.uk On a single post page for example this one... http://dev.nerdpress.co.uk/?p=16 if you scroll down to the bottom you will see the 'show/hide comments' link. By default they are hidden but my problem is that after a user clicks to show the comments/comment form and submits a post, the page refreshes and the jQuery I have
jQuery purist
Hello.... Trying to grasp the concepts of jQuery and ran into a little issue. Being a selective purist I'm allways trying to do things the right way. Is there any guidelines for class structure i.e. event-hooking, extensions, inline function calls, chaining and so forth?
Odd variable scope issue in .ajax()
Hi all, Apologies if this is actually a general javascript issue but I've only come across it is this instance. I have an asmx web service which contains a few methods that I am calling from .ajax(). For the example, I have one called CountFolders(path), which simply does that, returns an int (as a string .. don't ask) of the number of folders contained in the supplied path. I have tested this method and it works and I have also set a break point in it whilst running the example below and it is returning
[jQuery] [jQuery UI] UI/Datepicker Documentation broken
Just letting you guys know that the documentation for UI/Datepicker is not showing (IE7)
[jQuery] [validate] 'please wait' message on submission
Hi - fantastic validation script Jörn - I wonder if you could advise me on something? In some forms I have in a backoffice, I use a 'please wait' message which appears after the form is submitted. The jQuery looks like this: $("form.myform").submit(function() { $("span.pleasewait").addClass("display"); }); and gives the pleasewait span the CSS property of 'display: block' whereas it is previously 'display: none'. This is pretty rudimentary stuff (it's all i'm capable of) but works fine. However,
[jQuery] How to get the CSS definitions of a class not existing in the DOM
Let's say I have a CSS class for each of two possible states of an element. Now I want to animate from state X (".state-x {width:100%}") to state Y "(.state-y {width:50%}"). Is it possible to get the CSS definitions of ".state-y"? I suppose "$('.state-y').css('width')" doesn't work when there is no element in the DOM with this class. Of course I could define the CSS of these classes in a javascript variable but I need them in the CSS anyway (nonscript version) and I don't want to have to change it
[jQuery] [Validate] API list for main validator object
One of the demos for Validation shows: var errors = validator.numberOfInvalids(); Going to the main list of methods for validator I do not see this documented anywhere. Where can I find the full list of methods I can call on validator?
[jQuery] select inside an object
Hello, I have a jquery object (form) and I would like to select a "select" form element inside of it. This code will work as expected: $('#rating select')[0].selectedIndex = 2;
[jQuery] TableSorter plugin is not working in IE7
Hi! Kindly visit following link: http://vibersol.com/sitesdemo/shipping/admin/continent.php Table sorter plugin works fine in FireFox, but in IE7 this plugin doesn't work. Can some one guide me where and how to rectify this problem in my code, so that plugin begin to work in IE7. Thanks in advance
[jQuery] Get DOM elements under click
hello, I'm wondering how to access the elements under a mouse click. At first I tried iterating through all the elements and checking each one, but as you can guess it was too slow. Then I tried binding mouse click events to all the elements but it got messy. Is there a way to get a list of elements that the mouse has clicked on even if they don't have click events defined? Richard
[jQuery] jquery cycle plugin issue
Hi guys : I'm having a problem with cycle which refuses to see the links I have put in the divs. When I click on my links it just move on the next slide (next div) I don't now how to fix this problem. I have seen there is a parameter "pagerAnchorBuilder: null" ... maybe there is any chance to modify it an put it to work correctly ?? I really don't know. If Somebody out there could help , it would be great !!! Thanks
[jQuery] [autocomplete]
I just want to thank the person (Jorn Zaefferer?) or people who wrote the autocomplete plugin. I've tried getting other live searches and autocompletes to work with my tiny Javascript knowledge, but it was never clear how everything hung together and I'd lose patience before getting anything done. But the way you bundle the files with a demo makes it easy to hack-and-see. Awesome. Thank you!!!
[jQuery] [validation] How to pop current rules for given input and how to set them back?
In some cases I need not to validate some fields. E.g. If I check some checkbox new inputs with further options are shown. These inputs should be validated when submitting form. If I uncheck the checkbox no options are needed and they disappear (they should not be validated). It's clear. My problem is how to remove them from validation. I could remove the rules on "change" on the checkbox, but I don't know the rules on inputs because they are generated. So is it possible to remove somehow the rules
[jQuery] input file and val()
Hi there, I tried to "reset" a file input element by using "val()". <html> <head> <title>FooBar</title> </head> <script src="jquery.js"></script> <script> $(document).ready(function() { $("#resetMe").click(function () { $("#input1").val(''); }); }); </script> <body> <form name="foo"> <input id="input1" type="file" name="foobar"> <input id="resetMe" type="button" value="ResetMe!"> </form>
Stream-lining code
Hi, I have this bit of script that opens a slide while closing another, is there a way I can stream-line it so I can us it on a number of elements. Here's my code: $("#toggle-contact").click(function () { if ($("#push-contact").is(":hidden")) { if ($("#push-league").is(":hidden")) { // $("#push-contact").slideDown("slow"); $("#push-contact").animate({ "height": "toggle", "opacity": "toggle" }, "slow", function() {var $scrollTo = $.scrollTo({top:'160px'},800);}).end();
[jQuery] [BlockUI] custom css class in options
Hi, I find that being able to specify a custom CSS class in the blockUI options would be very usefull in order to specify the styling in css files instead of hard-coding the CSS in the blockUI calls. The ability to add a custom CSS class can be used to style different calls to blockUI using CSS classes.
[jQuery] hide column problem
Hi I just wanted to ask if its possible to hide the entire column in tablesorter plugin or may be by selecting column... I know how to select rows or even cells but how will i hide column : like ('thead tr td') suppose i want to hide column 1,2,7,8 in out of 10 rows ? Is it possible? Thanks Varun
Help Traversing Divs
Hi, If I have a undetermined number of divs that look like this: <div class="mblock" id="myBlock1"></div> <div class="mblock" id="myBlock2"></div> I want these divs to be collapsed when the page loads. Whats is the best way to do that? Thanks.
[jQuery] [autocomplete] display a loading gif
Hi, i need to show a loading gif while autoocmplete plugins make the ajax ask. is there anyway?
[jQuery] [ANN] jQuery Powered S6 Slide Show Package Now on GitHub - Download, Watch, or Fork S6
Hello, The S6 slide show package that started as a rewrite of Eric Meyer’s S5 using the jQuery JavaScript library – offering easier to understand and easier to extend code - now has its own source repo on GitHub. Download, watch or fork the S6 slide show package @ http://github.com/geraldb/s6 Contributions welcome. Add plugins, effects and more. Cheers. PS: Also note that the slide show scripts and templates are dedicated to the public domain. Use it as you please with no restrictions whatsoever.
[jQuery] [jquery.form.js v2.18] file upload field and standard fields
jquery.form.js v2.18 I have a form with a lot of fields and one upload file field: <form action='' id='form1' enctype='multipart/form-data' style='font- size:85%'> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> <table > <tr><td>Nom: </td><td><input type='text' size='30' id='nom' name='nom' /></td></tr> <tr><td>Prénom: </td><td><input type="text" size="30" id="prenom" name="prenom" /></td></tr> <tr><td>Photo: </td><td><input type="file" size="40" id="photo" name="photo" /></td></tr> </table>
[jQuery] Sortable: change input field value on receive
Hi, I have this: $('.sort').sortable({ receive: function(){ $(this).children().children('input.changethis').value = 'ABC'; } }); for this markup: <ul class="sort"> <li> <input class="changethis" name="thename" value="XYZ" /> </li> </ul> ...and I can't get it to work. I need to change the value of the input field as soon as it is dropped in its new location in the list. What am I doing wrong? Thanks in advance.
Simple selector question
Hi Just started out with jQuery, I'm currently reading Manning This selector picks the first TR: table#languages tbody tr:nth-child(1), currently with a class wrappedElement. But when I then try to select the next TR inside the tbody: table#languages tbody tr:nth-child(2), nothing happens. Can somebody guide me? Take a look: <table id="languages" class="" cellspacing="1" border="0"> <thead class=""> </thead> <tbody class=""> <tr class="wrappedElement"> <td class="">Java</td> <td class="">Static</td>
[jQuery] jcarousel question
Hello, I am using jcarousel and i love it! BUT there is just one thing i use the autoscroll and static controls. could we add a class to the active control to change the css... so when the carousel scrolls to the second image the number 2 static control gets a class like active or something...
[jQuery] Numbering ... Could someone please help me out with this?
Hi, I am adding list items to a list as follows: $('#AddTheme').bind('click', function(){ // Other code $theme = $('<li class="Themes"></li>').appendTo ('#Themes'); $theme.append('<input type="hidden" name="Themes[0].Subject" value = "' + $subject.val() + '" />'); $theme.append('<input type="hidden" name="Themes [0].LevelsCsv" value = "' + levelsTypes.join(",") + '" />'); $theme.append('<input type="hidden" name="Themes [0].Description" value = "' + description.val() + '" />'); }); Basically, every
[jQuery] click on gmail new button design (goog-imageless-button) !
I use this code (jQuery) to find and fire the delete button on the gmail tool bar, but the click (3rd line) didn't work as expected since gmail change to the new look where buttons are now div., what is wrong with the new gmail imageless design? var gmCanvasFrame = $('iframe#canvas_frame'); var btnDelete = $(gmCanvasFrame).contents().find('div.goog-imageless- button-content:contains("Delete")'); $(btnDelete).click();
[jQuery] malsup.com form and php validation confusion
Hi all, I'm using the jquery form plugin from malsup.com, and I'm confused about validation. I need to validate the form fields in the php file specified in the action of the form. I realise I can use the success: function() to update a div (I actually want to perform animation on a div elsewhere on the page) when successful, but if the form is incorrectly completed, how do I return a 'failed' code from the php file (so that the animation doesn't happen)? (It seems to me as though the form always
flash gallery using jquery
Hi, I am looking to implement a gallery using flash files. I want to show 5 flash videos with pagination so that when we first go the page, we will see the first video and clicking the "next and previous" it should show other videos. Please let me know if there is a plug in or any example that I can look into it. I am new to jquery and have done few things related to forms divs etc. I found many examples to do the same effect but everything was just for divs and text. I tried placing the flash swf
akModal Problem
Can you implement a code patch to make the window begin at least at the top of the browser window when the akmodal-box is bigger than the browser window? Now the upper part of the box is hidden and not reachable in that case. Thanks.
[jQuery] jQuery query string implementation
<div>John and crew, was curious for your opinion related to storing query string variables in an array (and perhaps expanding to capture key/value pairs beyond the # as well). Something worthwhile to have in the core? </div> <div> </div><a href="http://stackoverflow.com/questions/439463/how-to-get-get-and-post-variables-with-jquery/453688#453688">http://stackoverflow.com/questions/439463/how-to-get-get-and-post-variables-with-jquery/453688#453688</a> <div>-- Matt</div>
Next Page