[jQuery] QuickSearch with a twist
I need to use jQuery to emulate some functionality found in iTunes and Quickbooks. These programs allow users to begin typing the name of a record, and scroll a multiple-select box as the user types to automatically highlight the relevant record. (For example in <a href="http://paul.malan.org/images/tmp/itunes-scr.jpg">this screenshot</a> I typed "pin" and iTunes automatically selected "Pinback" in the Artists box.) I found Rik's <a href="http://rikrikrik.com/jquery/ quicksearch/">QuickSearch plugin</a>
[jQuery] bug in multiple file upload plugin
Hi , Looks like there is a bug in the multiple file upload plugin. The setting which I tried are max: 3 and to allow any file extension. When I upload and remove a single file it works fine, upload the removed file again - works fine upload 2 files, remove one file and upload the removed file again, it says the file is already selected, where it has already been removed. It doesn't show up in the span elements list though. So there is should be a minor error some where. I tested this on a FF 3 browser.
[jQuery] Problems with show() / hide() in IE 7
I'm running into a problem showing and hiding elements in IE 7. I've verified that my XHTML is valid. What I'm trying to do is have a div that starts out with CSS display: none, then the user clicks an button and I use jQuery show() to reveal the div and its contents. I've also tried using slideDown(). They both work perfectly in Safari and FireFox 2 and 3. For some reason this doesn't work in IE 7. Click and nothing happens. However, in the lower left corner of IE a warning shows saying "error on
[jQuery] .click() on Hidden Button?
I have a form with a lot of checkboxes. The visible submit button for the form goes to a specific next page on my site. If the user clicks a menu item before clicking the visible submit button on the form, I would like to call a hidden submit button which I have placed on the page. This hidden submit button is called "Save my Selection." This hidden submit button submits the data from the form, and saves the checked/unchecked states of the users checkboxes, before the user goes to whatever page he
[jQuery] XML questions
I understand how to load a full XML file, but how do you load a certain child by itself at once? <?xml version="1.0" encoding="UTF-8"?> <tiles> <tile> <information>Lorem ipsum</information> </tile> <tile> <information>lorem ipsum</information> </tile> </tiles> What would I need to do to access the first child of tiles excluding the second? Thanks
[jQuery] Selectors: Any faster/slower together?...
Just wondering if there is any performance difference between: $("#div1, #div2, span.someSpanClass, input:text").show(); vs doing them individually like this: $("#div1").show(); $("#div2").show(); $("span.someSpanClass").show(); $("input:text").show();
[jQuery] jQuery selector with ranges?
I need to identify all elements with an attribute value within a certain range. I'd like to do something like this: $("DIV[value between '00200' and '00250']",scope) But between is not supported. Is there an efficient selector I can use or must I just use a loop? -- View this message in context: http://www.nabble.com/jQuery-selector-with-ranges--tp18756562s27240p18756562.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] SuperFish - Menu Problem
Hi, I have the following layout with a SuperFish menu: http://www.27lamps.com/Beta/Menu/Menu.html The p tag after the menu is not really after the menu. And the p Logo is pushed to the right. I can't find what am I doing wrong ... ... before I inserted the menu everything was right. Could someone, please, help me out? Thanks, Miguel
How to add a new tr into a table with dynamic content?
Hi, I'm looking for a way to add a new <tr> after an existing one to show detail information. Right now I'm doing this via the "insertAfter/remove" function: $("<tr class='detailcontent'><td>content...</td></tr>").insertAfter($(this).parent().parent()); This method works so far but I need the whole function dynamically. That means I have to load content depending in the given id-parameter. Any idea how to relize this or a link to a tutorial? thx T.C.
[jQuery] Root menu item causes menu to disappear in jdMenu 1.4.1
I noticed that the entire menu hides when you click on an li at the top level. I put together a test page to demonstrate it but then realized that it occurs in the jdMenu.html example that is part of the zip download for version 1.4.1 Has anyone else noticed this? If so, what is the best work around? Thanks, Dave
[jQuery] using .html() doesn't copy FlashVars value in IE
I have some hardcoded object/embed code that I am copying and showing in a different location. However, the value of the FlashVars param is coming up 'undefined' in IE right after the copy. So, if I start with the following (simplified here) html... <div id="wrapper"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"> <param name="movie" value="/path/to/swf" /> <param name="FlashVars" value="/path/to/flv"> </object> </div> and do... var flashContent = $("#wrapper).html(); alert(flashContent);
[jQuery] Applying the ac_over style to a custome div class
I have built a custom <div> to insert into the li class so that several components can be included in the display of each search result. The problem is that the ac_over style is applied to the li class only, and when pressing the UP and DOWN keys the ac_over style is triggered, but my custom <div> class obscures the style change on the li class underneath. The result of this is that the result list item does not appear to be highlighted to the user when selected with the arrow keys, even though it
[jQuery] $("#select1").val("1") doesn't work with new created select box?
Hi, I have a select box created with jquery, then if i set its value by using .val("1") immediately, nothing happens. Why it doesn't work? Is there a second way to set select value? Thanks!
.NET Web Control
Hi. I'm new to jQuery but from what I've read and experimented with it looks awesome - good work! My question is if I produce a .NET web control for other developers to use, how can you target the control for AJAX calls. This is usually done with .NETs GetCallbackEventReference but it looks a bit verbose.
Passing variables with Jquery
Hi everyone, I am a newbie to the world of Jquery and I am trying to get my head around something that is probably very simple. I have a list of links on my page. <script language="javascript"> $(document).ready( function() { // we'll put our code here $('#wrapper').hide(); $('a#slick-toggle').click(function() { $('#wrapper').toggle('slow'); // }); </script> I am looking to toggle a div from
[jQuery] Tree Grid in jqGrid
Before finishing this component I want to known about your opinion and recommendations. All of them are welcome. Here is the link http://www.trirand.com/jqgrid/treegrid.html And here is the original post how to use http://www.trirand.com/blog/?page_id=18/treegrid/a-new-tree-grid-component/page-1/post-1333/#p1333 Thank you Best regards Tony
[jQuery] Problem with long request
Hi guys, i have a one problem.. Script JS: $().ready(function() { $(window).load(function () { $("#content").append("Connessione in corso.. "); $.get("bot.php", function(data){ $("#content").html(data); }); }); }); /* file bot.php */ while($i<85000){ echo "$i "; $i++; } /****************************/ Why my script dosn't work perfectly? I found one error by firefox 'debug error'. Sorry for my english. Thanks.
[jQuery] Downloadable docs
Hello Is there an archive of the current JQuery documentation for download somewhere? I'd like to get at least the "API Reference" section of the wiki (Selectors, Attributes, Traversing...) for offline browsing. I read the "alternative resources" page, but it only lists outdated or abridged resources. I also think that a prominent link to a documentation zip file, put on the front page, would help reduce the load on the wiki server, as a lot of developers would rather browse it locally if given an
[jQuery] Refreshing the parent page from the SECOND child - can this be done using jquery ?
Hi, I had a typical catch (which google couldnt help with) and some one posted on one of the forums that this is possible using jquery. I have a combo box (drop down box), whose values I get from a bean. Next to the combo box is a text box with a link next to it which would say filter. when the user types in a value and clicks on that link, I need to filter the values of an already populated dropdown box, and am at loss to understand, how I would/could do it. Bascially just repopulate the <select>
[jQuery] Using Live Query with plugins
Hello, I am having some trouble getting Live Query to work in conjunction with some of my plugins. While attempting to use Live Query doesn't "break" the plugins under normal circumstances, it does not solve the problem of the plugins not working when they're used inside of content that has been AJAX'd in. I've tried to routes. Changed this: $('.jtt').tooltip({ track: true, delay: 0, showURL: false, showBody: " -- ", opacity: 0.85, positionLeft: true, top: 20 }); To this: $('.jtt') .livequery(function(){
[jQuery] Masked Input Plugin 1.1.4
It's been a little while since I've pushed an update to my Masked Input Plugin (http://digitalbush.com/projects/masked-input-plugin) for jQuery. I just released version 1.1.4 which is just a minor bugfix. Steve Davis found and fixed a bug that would occur when the mask characters match the criteria of the first placeholder character(s). The mask characters would end up repeated as user input. Thanks to Steve for the fix! Please let me know if you encounter any issues. This fix was very minor, so
[jQuery] jQuery TreeView : impossible to set a property...
Hi again, In a jQuery TreeView, I'd like to change background-color for some elements... So, I've written this code : function refreshStriping () { var collect_ul, fils, petits_fils, i, j, k; // On récupère la collection de tous les 'ul' collect_ul = document.getElementsByTagName("ul"); for (i=0;i<collect_ul.length;i++) { fils = collect_ul[i].childNodes; for (j=0;j<fils.length;j++) { if (fils[j].tagName == "li") { petits_fils = fils[j].childNodes;
[jQuery] addClass to tablesorter row?
I am trying to add a class to the row clicked on in a tablesorter table... The JS: $("#ticket-list-table tbody tr").livequery('click', function() { $(this).addClass("selected"); }); The CSS: .selected { font-weight:bold; color:#FFF; background: #999; } It works, BUT only the font-weight. It ignores the color and background parameters. Any idea what I am missing here?
[jQuery] Superfish - IE7 borders issue
Hi, I'll try to keep this short as it's probably just something small that I'm missing anyways... What: In IE7, upon loading some pages that have Superfish active on it, CSS borders break apart on the site. Upon "mouseover" of the Superfish menu, the borders reconnect. When: I only see the problem occur open refreshing a page or going to a page that contains an non-cached image that must be downloaded. Why: No clue... I think it might have something to do with how "document ready" is being fired
[jQuery] superfish border on sub-nav items
I was curious if there's a way to add a border around the sub-nav menus (not top-level). I've played around with the CSS, but when I add a border to "sf-menu ul" it spans all the way around the shadow as well. Any help would be much appreciated.
[jQuery] jQuery Cycle Plugin: no pause on hover when using slideExpr
Hi When using slideExpr to show content in a different container then the direct child of the slide show the pause: 1 (pause on hover) setting doesn't work anymore. I have No idea how to solve this. Thanks for the plugin
Need help assigning cookie calues to current div id's in col
I have a sortable div interface with #id's used. I have a serialized value in a cookie that I have in an array that I need to loop through and assign those current ids in the order from the cookie. Obviously I am trying to save page state (div order); function getPage(){ //var newOrder[]; var sortOrder = $.cookie('pageState'); var delim = "&"; // delimiter for pages in cookie // get the previous cookie (if any),
[jQuery] jQuery Cycle Plugin: ability to cycle div containers (general content)
Is it possible to cycle HTML content instead of only images?
[jQuery] Cycle Plugin: Cycle DIV Containers Instead of Images?
I am wondering if it is possible to cycle through DIV containers rather than images only using the Cycle plugin? I have been looking to see if this has been discussed but have yet to find anything and am surprised I haven't found anything. Or I haven't had enough coffee today...
[jQuery] AJAX and IE 7
I'm hoping someone can shed some light on this for me. I have a combination of jQuery and PHP code that takes care of generating and processing some XML. Basically the XML is the status, etc. of AJAX functions that are called, so, for example, the response XML might look like <response><code>1001</code><message>Customer successfully created</message></response>. The jQuery then parses this out using $ (xml).find("response").find("code").text(), etc. This works fine in Firefox, but when trying it
[jQuery] conditional addClass to previous sibling?
Hey guys, Here's another one I've recently been stumped on... say I have an unordered list that is like so: <ul class="dishsection"> <h3>Title</h3> <li class="entry"></li> <li class="addition"></li> <li class="addition"></li> <li class="addition"></li> <li class="entry"></li> </ul> And what I want to do is find every instance of where an element with the class "entry" is preceded by an element with the class "addition", and then I want to add a class of "follower" to "entry" class. Is there any reason
[jQuery] using .html() doesn't copy FlashVars value in IE
I have some hardcoded object/embed code that I am copying and showing in a different location. However, the value of the FlashVars param is coming up 'undefined' in IE right after the copy. So, if I start with the following (simplified here) html... <div id="wrapper"> <object> <param name="movie" value="/path/to/swf" /> <param name="FlashVars" value="/path/to/flv"> </object> </div> and do... var flashContent = $("#wrapper).html(); alert(flashContent); In Firefox the alert
[jQuery] How to hide/show a div using URL - "i=?sign#signin" show sign in form "i=?sign#fp" show forgot password form
<div dir="ltr">Hi, I have created a html page two Divisions, 1.Signin 2.Forgot Password. By default, Siginin Page appears when the user goes to the url.. like "<b>?i=sign</b>" - I am hiding the other using css (display: none;). After reaching the page if the user wants to goto "<b>Forgot Password</b>" they would have to click on "Forgot password" toggle button and using Jquery I am - hidding signin div and show forgotpassword div. But it would be painfull for the user to see Signin form first and
[jQuery] Use of cookies and how?
Heya, Just downloaded a Plugin made by Klaus Hartl, But I don't really understand how it works even though there is a miniguide in the JS file. If anyone who knows how to use with simple actions as remembering what menu part you are displaying? My example: jQuery script to slide up and down toggle. targets links with class menu $(document).ready(function(){ $("a.menu").click(function () { $("div.menu").slideToggle("slow"); }); }); <!-- FIRST MENU --> <!-- FIRST MENU --> <div class="menu"> <ul> <li><a
Spanish accents don't work with $.get() or $.post()
Hi, I'm peruvian so frecuently I need to pass some accent letters using ajax. Well when I work with $.ajax() it's fine and everything pass as it must be; but when I want to use something more succint like $.get() or $.post() this isn't so fine. Well, if someone have a remedy for this I will appreciate it too much. Thanks!
[jQuery] Weirdness With load() and ajax()
<div dir="ltr">So I'm a bit new to jQuery, but this is absolutely driving me nuts. So here is a bit of pseudo code to explain what I'm seeing: <code> alert($("#foo .selectedItem").attr("id")); //alert's 'todd' $('#something').load('mypage.html', '', cbFunction); cbFunction = function(){ alert($("#foo .selectedItem").attr("id")); //alerts the item that was selected before the original list #foo was last modified (another action adds children to the UL with the id foo) }<br clear="all"></code> Hopefully
[jQuery] livequery click event and no click event
I am using livequery on my page as I have ajax content loading into a div, and each time this happens, livequery is used to rewrite some links for the ajax content: $("#calScrollTitle a").livequery(function() { //my script for rewriting the links goes here, removed for this post }); Now, I am also needing to add a livequery click event to each of those same anchor tags, but it seems there is some conflict here when trying something like: $("#calScrollTitle a").livequery("click", function() { //my
[jQuery] Underlay to replace overlay
Hi everybody, I was wondering how I can modify Thickbox plugin so that the images do not show up over the gallery (thumb - images) but under the gallery. I call it an underlay. Thank you very much, Gabriel
[jQuery] jQuery Form help
<div dir="ltr"><div>Hi all - this is my first post so please be kind if I cover something that has been covered before. For our new project we are using <a href="http://ASP.NET">ASP.NET</a> MVC framework along with jQuery. We make use of several plugins and have had relatively few problems. Today however we got stumped. <u><b>The Problem</b></u> In our registration process, in one of the steps we allow the user to upload photos of themselves and their pets. On the current site, DotNetNuke /
[jQuery] Form Plugin - Submit Button Value
Found this thread - http://groups.google.com/group/jquery-en/browse_thread/thread/145ed6dc39ad3fdd/d536900b63f5fa6b?lnk=gst&q=form+plugin+submit+button+value#d536900b63f5fa6b Refers to a jquery bug but no discussion after that. I need to get the submit button value to process the form. Is there a way to include the value of the submit button along with the rest of the form? I thought about serialize, but how do I add it to the rest of the query string? Thanks for any help. Seth
Next Page