[jQuery] jCarousel - A bug appears after resizing browser's window
I am using jCarousel 0.2.3 in my project for a continuous circular logo scroller. Implementation is at the bottom. jCarosouel is working smoothly. But the problem occures when browsers's window is resized. Under this problem, number of visible items are reduced from 6 to 3 and appear in such a fashion that these items scrolls left and next item does not appear on right and similar situation for next scroll. And when only one logo is there, it disappears and next 3 items appears to continue this strange
[jQuery] [VALIDATION] Fields not updating numberOfInvalids count
Hi, It's kind of difficult for me to explain for English is not my native language. I'll explain it briefly and refer you to the actual page. If the 'Rule' for a field has a "Required" attribute and with or without any other attributes, then it works fine. But when a field has any other 'Rules' attribute other than 'Required', and when the field is blank, it updated the this.defaultShowErrors(); status but it doesn't update the "numberOfInvalids" count (it will show there is (1) error). Here is the
[jQuery] getting hover and active css styles?
hi i need to detect an elements hover and active css styles without actually mousing over or clicking on it. how can i do that using jquery?
[jQuery] jquery validation
I am using jquery validation from bassistance.de I have problem with dynamic forms which have same input name. (i know the demo has one dynamic form, but they have unique name) this is the example <form name='myform' id='myform'> <input type='text' name='name[]' id='name1' class='required name' /> <input type='text' name='name[]' id='name2' class='required name' /> <input type='text' name='name[]' id='name3' class='required name' /> <input type='text' name='name[]' id='name4' class='required name'
[jQuery] Confirmed the bug and have a fix
The bug is that yuicompressor is not happy with the 'float' property being standalone. The fix is to quote the property 'float' on that line: Instead of: li.css({overflow: "hidden", float: o.vertical ? "none" : "left"}); use: li.css({overflow: "hidden", 'float': o.vertical ? "none" : "left"}); Hope that helps, Jerry http://www.whatcodecraves.com/
Accordion initial state after page changes
Hello, I'm stuck with a simple jquery accordion script that is http://www.stevekrueger.com/jquery-accordion-tutorial/. The problem is that there are links inside my divs that brings to another page where the same accordion menu should be included and left opened at the same state like the previous page (hope to be enough clear... ). The script I'm using will always close all the accordion divs upon the second page load. I'm a total newbie of jquery and couldn't understand exactly how jquery works
[jQuery] WymEditor forum
I registered with the WymEditor forum a few hours ago and haven't received a confirmation email. Does anyone know if this is automated or someone does that manually? It's run with phpBB, FWIW. Also, there seems to be something odd happening with their site. Somehow, I ended up at this page: http://www.wym-editor.org/en/more-info/ ... though I'd been browsing at www.wymeditor.org (no hyphen). Anyway, at that page, there's a link for mailing lists pointing to list.wymeditor.org (no hyphen). However,
[jQuery] how to capture error 500/404 ?
Hi, how to capture error that produced by server (err 505 or 404) inside $.post() and $.get() ? thanks !!!
[jQuery] Selector filters don't allow descendent selection
I want to select all labels except those within a div of a given class, but the exclusion is ignored :/ These work fine: $("div[class='t2-display'] label").append("Only expected ones"); $("div.t2-display label").append("Only expected ones"); These don't - all labels are selected, no matter the div: $("div[class!='t2-display'] label").append("All!"); $("div:not(.t2-display) label").append("All!"); The basic selector filters, work fine: $("div[class!='t2-display']").append("Only expected ones"); $("div:not(.t2-display)").append("Only
[jQuery] ListSearch
Hi, I have an asp.net application built with .Net framework 2.0. I'm looking at adding some Javascript and Ajax functionality in it but i don't want to upgrade my whole application to 3.5 just to use some custom controls. So i was looking at external libraries to fulfill my needs. And after a lot of searching and comparison, i decided to start with jQuery. My problem is though that i need the following functionality: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ListSearch/ListSearch.aspx I
[jQuery] Dropshadows with jQuery Sifr Plugin v2.0 Beta 3 ?
Hello, On the moment I'm using sifr from novemberborn http://novemberborn.net/sifr3 and using dropshadows. Now I want to use the jQuery Sifr Plugin v2.0 Beta 3 http://jquery.thewikies.com/sifr/ is it possible to have dropshadows with the jQuery Sifr Plugin v2.0 Beta 3 ? Thanks, Edski
[jQuery] Tabs - External link not working on remote tab in IE 7
Dear jQuery gang, I am having the following issue with a remote content tab in IE 7. Here's the scoop: Link on one page ie: (http://appname/list/#tab_two) takes me to another page with 3 tabs and via that link I want to default to the 2nd tab open. This of course works like a dream in Firefox and loads up the ajax for that tab... IE 7 does not do this. I found an example of the same issue occurring on Klaus' site here: http://stilbuero.de/jquery/test/remote_tabs_with_scripts.html#Tab_one The text
Does anyone ever create drop down menu like brookchase.com?
Hi all,i want to ask..Does anyone ever made drop down menu like http://www.brookechase.com/ ??Please teach me how to do it..Are there any reference on the web??Thanks a lot...
[jQuery] Getting PHP values remotley
Hello, I was wondering how to get a value from a php file after I send data to it using the $.ajax() method. Here's my code. jQuery: var path = $(this); var addtask = $('.inputtask').val(); $.ajax({ url: 'todolistadd.php', data: 'addtask= ' + addtask, success: function() { // Stuff } }); PHP: $addtask = $_POST['addtask']; $q = "INSERT INTO task (tasks) VALUES ('$addtask')"; $ans = mysql_query($q); $q = "SELECT task_id FROM task WHERE
[jQuery] jquery ajax-built page with embedded ajax code issue
i've got a page where the body is dynamically generated/regenerated using ajax with clickable links, using the following snippet to replace the maintext div w/ the output from the ajax.php script: $('.ajax_link').click(function() { clicked_link_id = $(this).attr("id"); $.ajax({ dataType: "text", type: "POST", url: "ajax.php", data: "a=" + clicked_link_id, success: function(msg) { $("#maintext").fadeOut("slow", function() { document.getElementById('maintext').innerHTML = msg; $("#maintext").fadeIn("slow");
[jQuery] jquery in a commercial script?
hello i am making a script i want to sell and i want to use jquery can we use it in a commercial environment?
[jQuery] Does jQuery do the encode thing
My default character set is utf8, should I use encodeURI when use ajax sending the data to server? for example $username = $('#username').val() $.ajax( { url:'xxx.php', data:{username:encodeURI($username)} ...... ... ... });
[jQuery] Animating two elements simultaneously
How would I go about animating the width of two divs simultaneously? IE, I have two <div> elements on a page, both are 50% width. then I'd want one of them to animate down to a width of 10%, and the other to a width of 90%. how would I make them do that, at the same time?
[jQuery] Setting source of a frame with jQuery
Hi, I have two html pages that are consisting of frames. They are using shared jQuery code, and I used the anchor click events to load pages into frames (as target attibutes fails to work when jQuery is present). I used the click event of two anchor classes two create the same funcionality and while the event of the first class works correctly, the second just fails during execution. Here are the jQuery codes (custom.js) - other jQuery is of jTree code: $(document).ready(function() { $("a.contentLink").click(
[jQuery] Multiple plugins in same namespace?
I'm trying to create a plugin with two entry points. You would use it like this: $('#someid').myPlugin.doThis(options); $('#anotherid').myPlugin.doThat(options); I've looked hard at http://docs.jquery.com/Plugins/Authoring and http://www.learningjquery.com/2007/10/a-plugin-development-pattern to no avail. Any help much appreciated! Marion
[jQuery] Retrieve webmethod from webservice
hi every body I want to call a webmethod of my webservice and to do this I try the 3 follwing methods but none of them show me the result and nothing happen It also has no error please help me Method 1: jQuery.getJSON("WebService.asmx/HelloWorld" , function(json){ jQuery("#result").html(json); }); Method 2: jQuery.ajax({ type: "POST", url: "WebService.asmx/HelloWorld", data: "{}", contentType: "application/json; charset=utf-8", dataType: "json", success: function(msg) { jQuery("#result").html(msg);
[jQuery] flexcroll within cycle or tabs disappears completely
i'm trying to use cycle to with different div that include a custom scroll bar, created using flexcroll (http://www.hesido.com/web.php? page=customscrollbar). in both cycle and tabs, the div containing the scrollable content just doesn't show up at all. anyone knows if it's possible to overcome this issue? it does work fine when i use it with coda-slider (http://www.ndoherty.com/demos/ coda-slider/1.1.1/), which is good instead of tabs, but i would really like to use cycle if possible... any help
is there is another good way
hi all i want to embed pages using jquery is this a good way or there is another better ? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script src="jquery.js"> </script> <script> $(document).ready(function(){ $(".title1").click(function () { $(".page").css("visibilty","visible"); $(".page").replaceWith("<iframe src='a.html' ></iframe>"); }); $(".title2").click(function () { $(".page").css("visibilty","visible");
[jQuery] Problems selecting elements...
I've been beating my head over this code for quite some time. I was hoping somewhere here can send me on the right direction... Here is my jQuery Code: $(document).ready(function() { // Dynamically Configures the active link based on ID attribute in body tag var pageIndex = $("body").attr("id"); // Pulls ID value from body tag pageIndex = pageIndex.substring(4); // Extracts Index from value $("#nav_container ul span").slice(pageIndex, pageIndex+1).addClass ("activeLink").prepend(">"); }); Here
[jQuery] Konqueror problems?
I have a site using JQuery which works a treat using Firefox, Opera and IE, on Windows and Linux (as well as Safari), but which does not work at all with Konqueror on Kubuntu (Gutsy, 7.10). Using fadeIn animations, nothing fades in - the elements remain invisible. Are there known problems with Konqueror? There does not appear to be an error console as such to check things with.
[jQuery] BlockUI unchecks checkboxes
Alright, so I saw that this issue had been raised before, but apparently never actually fixed. I only tested it in FF and Chrome. To reproduce: html: <input type="checkbox" value="3" id="mycheck" /> <div id="return" ></div> js: $(function() { $("input#mycheck").click(function() { // do something with ajax } $("#return").ajaxStart(function() { $.blockUI(); }) .ajaxStop(function() { $.unblockUI(); }); } The fix because I was in a hurry to get something done: blockui.js, ~ line 265: // var events =
[jQuery] validation plugin question
playing around with it. don't want to get error messages displayed. i'm just putting in a general error message at top and highlighting required fields. but the label for errors gets created with a display: inline set on the element which is thwarting me from not showing it. looking at the marketo example ( for 2 hours now ), i see no such display: inline being set but can't figure out why that is. can anyone explain?
I feel stupid, but ... how to access object value using key?
Using a colorful example instead of the actual code I'm writing, since the problem seems really simple. I just can't figure it out. var lastnames = { 'Fred': 'Flintstone', 'Barney': 'Rubble', 'Wilma': 'Flintstone', 'Betty': 'Rubble', 'Elroy': 'Jetson' } The "first names" (keys) are unique and always will be. How do I pass the first name to the object and get the last name in return? so if I want to have a function like "gimmeLastName(firstname)" how do I access the values in the object??? Seriously,
[jQuery] Add a class to an accordion
Hello, I want to custom this jQuery script : $(document).ready(function(){ $(".accordion h3").eq(0).addClass("active"); $(".accordion p").eq(0).show(); $(".accordion h3").click(function(){ $(this).next("p").slideToggle("fast") .siblings("p:visible").slideUp("fast"); $(this).toggleClass("active"); $(this).siblings("h3").removeClass("active"); }); }); However, I want to add a container after .accordion and before h3, like "foo" : <div class="accordion">
[jQuery] Problems with more than one AJAX request at a time
Hello there! I'm sending an AJAX request using jQuery that could take a minute to complete. However, I also want to send other smaller ajax requests to the same host at the same time just after the first one starts. The problem is, the smaller requests block until the first one finishes. Is there a way to get around that? Shouldn't AJAX be asynchronous?
[jQuery] creating unique IDs
or: DOMWindow -- open with selector I'm writing a plugin that creates a div with a form and attaches it to the document, hidden. There may be several of these on the page so I dispensed with IDs, choosing to use class selectors to get at them to display, etc.. So far, this has been fine. However, I'd like to have the option to use a DOMWindow to display these divs. I'd like to assign a click handler to my button which would open the corresponding div. The problem is that DOMWindow only seems to accept
[jQuery] jQuery Plugin --> DOMisBetter
Hi All, "DOM is Better" is an useful free library to build client-side web design: http://riagallery.appspot.com/static/DOMisBetter/index.html This is the last web site made with jQuery and DOMisBetter: http://riagallery.appspot.com/KillIEbrowser Bye -- Davide
[jQuery] Separate Functions for Events
Hi, I've just started using jQuery and have run into the following problem that I'm sure has an easy answer. I want a function to run after an event, for example, if I click on a test div: $("#test").click(function(){ $(this).css("color","pink") }); Instead of this, I want to have the effects of the click in a separate function, like this: $("#test").click(update_div) jQuery.fn.update_div = function() { this.css("color","pink"); }; I know the example is longer, but if I wanted to do more complex
[jQuery] serialScroll Plugin - Problems with lazy loading of items (dynamically updating item list)
Please take a look at my code. http://pastie.org/337379 or if you want to look at a functioning copy go to http://vansteedesign.com/flashcards/test.php. Even when setting the 'lazy' attribute to true in the parameters, when you delete one of the cards (items) from the list it still exists as empty space in the list. To view what I am explaining go to the webpage and click the x on one of the cards. Then cycle through the list. When scrolling to the item after the one we deleted there will be an intermediate
[jQuery] jqModal Onload
Hi everyone I want to load this window on page load can you plz let me know how to do this. $().ready(function() { $('#tallContent2').jqm(); setTimeout($('#tallContent2').jqm(),2000); }); -- View this message in context: http://www.nabble.com/jqModal-Onload-tp20990657s27240p20990657.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Please help me improve my glassbox plugin
Hi all, By inspiration of glassbox effect here http://www.glassbox-js.com/ and css button here http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html I have try to enhance its feature to suite my need in jQuery way. then by now I have done far but need more improvement. Please a look at simple example here http://www.2shared.com/file/4448827/d6437194/web.html if it cool enough to be qualified as a plugin, I will contributed the finished source. I'm newbie to jquery, please
[jQuery] Documentation stylesheets
Just wanted to let you guys know that your documentation CSS is jacked up: http://docs.jquery.com/Plugins/Validation/validate Print stylesheet's no better (arguably worse, given the media). Thomas
[jQuery] Another date picker
Hi -- We just released another date picker using jQuery that we've been using internally at OpenSourcery for a while now and are really liking. The main benefits of our date picker are that: - Dates can be entered through the keyboard or a calendar widget - Validation for keyboard entered dates is presented unobtrusively and inline. You can view the demo and get the code here: https://www.opensourcery.com/blog/alex-kroman/better-date-picker Thanks, Alex
[jQuery] How to avoid the "required" on a credit card field using validate extension? [validate]
Hi all, I've a form that validates using jQuery. In that form we use a small credit card validation with an extension that you can find here: http://www.ihwy.com/Labs/jquery-validate-credit-card-extension.aspx // Is only a small tweek of creditcard method. We want only some fields required, and that's no problem, adding the rules properly in the JS or with the "class".. but, we DON'T want the field "creditcard" required.. and it's not possible to avoid this. We haven't put the required rule, but
[jQuery] how to write selector of Id contains some text
How can i write selector to retrieve elements (span) that contains 'PB' as part of id. My ids are dynamically generated as PB1 PB2 etc.
Next Page