[jQuery] Help with jquery autocomplete
I am using the jquery autocomplete code and have set the minChars after which the autocomplete request is fired to 3. It works fine if all 3 chars are letter (eg: abc) but fails to show the results when I use a dot or space as the third character(eg: st.). Any suggestions on how this can be fixed?
[jQuery] need hellp with .get and json
hey. i cannot return the parameters from json , im using .get and also in the same page i got the validation of jorn 's form (maybe its conflicts ?) herer is the code hope some1 will help json returns : {"statusmsg":"1","errmsg":"0","desiredurl":"dsfandsdfdsf-ds"} function ChangeUrlSite() { var bridename=$("#bride_name").val(); var groomname=$("#groom_name").val(); var bridelast=$("#bride_last").val(); var groomlast=$("#groom_last").val(); $.get("/includes/private/php/checkVars.php", { bn: bridename,
[jQuery] Works with not() but not with filter()
If I build up a list of elements by pushing elements retrieved getElementById onto an array and pass it to not() I can use this list to filter out elements I don't want. But when I try the same thing with filter() I get an error message: t.substring is not a function http://localhost/js/jquery/jquery.js Line 2659 I have tried this with both 1.1.2 and 1.1.3a and gotten the same result (the error above was from 1.1.3a)
[jQuery] Multiple Interface Slideshows on one page not showing up good in IE6, IE7
Hello there! Just getting to know the wonderful world of Jquery and all the things written for it. I'm building my new website with my illustration portfolio and am able to implement and modify all the scripts I need, but now I've stumbled upon a problem I can't solve myself.. I'm trying to implement multiple slideshows (from interface.eyecon.ro) into one page. All works fine in Firefox 2 and Opera 9, but not in IE6 and IE7. I've got an example up here: http://snagt.net/slideshow2.php As you can
[jQuery] jquery documentation in aptana
Hi, Don't know if this has come up yet, I was wondering if anyone could help get the scriptdoc stuff together for use in aptana, I know it can be done for jquery1.1.1 (http://www.bitstorm.org/edwin/jquery/), I just need to find the latest and I can't see where other versions of the documentation are referenced on the wiki. Cheers, Rob
[jQuery] $(document).unbind('ready');
Is it possible to unbind functions from the $().ready() event? I have scripts that do this: $(document).ready(function(){ /* make things happen */ }); $().ready(fnRef); In a following script I'd like to unbind these and have tried the following, problem is it doesn't seem to work: $().unbind('ready'); $(document).unbind('ready'); Any suggestions? A quick search of the docs and maillist didn't reveal a solution. thanks in advance, Jim
[jQuery] Validate.js problem
Hello, I'm using the validate.js plugin. I am using the following code: $("#order").validate({ errorLabelContainer: $("#messageBox"), wrapper: "p", debug: true }); When my form has an error, I get the following error (in firebug): could not find id/name for element, please check the element (see next line)validate.js (line 195) <input class="$v(required)" type="text" value="" name="name_order">validate.js (line 196) could not find any error
[jQuery] ANNOUCE: idTabs plugin released!
Phew, I finally finished getting the bugs out, so it's ready for release. What you say? Why it's idTabs of course. =P idTabs: http://www.sunsean.com/idTabs/ I made this plugin because I wanted a lightweight tabs plugin that would allow me to hide and show anything with an id. I opened the design up a little bit, so that any DOM structure can be used. Klaus's Tabs are still more feature rich, so this is not intended to be a replacement by any means, only different. Let me know what you think. =) ~Sean
[jQuery] Remove Parent not working in IE6
Hi guys, I cannot "remove" the parent of an element in IE6. The behavior in IE6 is that only the first of the parents is getting removed and then it stops working. Here is the code... <script type="text/javascript" src="libs/jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#trash").click( function() { $(this).parent().remove(); } ); }); </script> <body> <div id="container"> <div>This is div 1 <span id="trash">Del</span></div>
[jQuery] How to get clicked cell position?
New to Javascript, new to jQuery. I'm trying to find the cleanest way to get the position (x, y) of a table cell that is clicked. I'll eventually post the coordinates back to the server. I have some code that gives me the clicked positions in Firefox but fails completely in IE (target.cellIndex is null or not an object). Code is at the bottom of this post. Is there anything already built into jQuery that I can use to get this info in a browser-independent way? If not, do you guys have another recommended
[jQuery] Using jQuery to Skip Over the TinyMCE Toolbar When Tabbing Through Fields
I ran into a problem with TinyMCE where it was in the middle of a set of form fields and the client wanted to have the tab key move them from the field before it into the editor. By default--even with tabindex set on all your form elements--both Firefox and IE will tab through all the links and dropdowns in the toolbar. I figured I could use jQuery to get around this and I was right :-) The short of it: Create a callback function to use in the init() of TinyMCE that sets the tabindex attribute of
[jQuery] Help with node navigation
Greetings, I am learning jquery and have found it a great time saver so far. I am building a thesaurus application but am having trouble with Xpath expressions used to parse an XML document returned by an ajax query. The XML that gets returned is in this format (truncated): <response> <hierarchy direction="narrower" max-levels="2"> <node> <term>_top_</term> <node> <term>Agriculture</term> <node><term>Agricultural
[jQuery] [off-topic] how do you guys organize your project folders?
Hi guys, i was fiddling today with one of my newer projects, and i was wondering how you guys organize things. Right now i have this structure (all based on mainly website development) Customer name --\ <website name> ------\ develop ----------\ Assets ----------\ Text ----------\ <subpage1> ----------\ <subpage2> ------\ final This means, that i can have multiple websites under one customer, and under each website i have a develop folder and a final folder. In the final folder goes the final product,
[jQuery] Help with stopping event propagation.
(I saw another email come through but not this one and it's been about 30 minutes since I originally sent. Apologies if you see this twice.) Hi. I am applying a click() event to a <tr> but I only want the event to fire if someone clicks on empty space or plain text. With the help of the IRC channel I've only been able to get the click event to stop working on a form element but nothing else. Anyone have any ideas? Here's my JS: $('tr.customer').click( function(e) { if($(e.target).is(":input")) return;
[jQuery] Selectors & Context
<div>I have the following:</div> <div> </div> <div>$('<div class="foo">').find('.foo').doSomething();</div> <div> </div> <div>This only works if I wrap my element in another div:</div> <div> </div> <div>$('<div><div class="foo"></div></div>').find('.foo').doSomething();</div> <div> </div> <div>I've tried:</div> <div>$([]).add('<div class="foo">').find('.foo').doSomething();</div> <div> </div> <div>Thoughts?</div> <div>-js</div>
[jQuery] Need help with a jQuery Conflict
Hey guys, I am using jQuery on a large site that is being tracked with a service called IndexTools (http://indextools.com). We have been having a lot of problems and tracked it down to a conflict between jQuery and the tracking.js file that IndexTools requires you embed in your pages. The problem is that jQuery is used on some critical functionality, so it cannot be replaced. But the client HAS to have IndexTools tracking. 1) How can I figure out what specifically is conflicting about their tracking.js
[jQuery] Event Bubbling
Hi, First off, I really like jQuery - coming from MochiKit, it is nice to have such a well put together library. So here is my question: does anyone know how to stop event bubbling in IE6? I want to bind a new handler for an event on an element inside of the initial handler. Here is some test code: var sayhi = function(e) { alert('hi'); e.stopPropagation(); // also tried $('mybutton').unbind() $('#mybutton').click(saybye); }; var saybye = function(e) { alert('bye'); }; $(document).ready( function
[jQuery] blockUI - blocking an element, with dialog
I'm playing around with blockUI, and have it working fine based on the examples. However, I want to block an element on the page ('div#foo') and display a dialog with a couple buttons. My attempts keep missing the mark. It's sort of a hybrid of these two examples: http://malsup.com/jquery/block/#element (click block with message) http://malsup.com/jquery/block/#dialog Can someone help me stitch those two together? Thanks! -- View this message in context: http://www.nabble.com/blockUI---blocking-an-element%2C-with-dialog-tf3954426s15494.html#a11219892
[jQuery] 3 related selects with jquery and ajax
Hi all. I'm looking an example about how to use a three related selects with jquery and Ajax. Do you know anyone? Cheers.
[jQuery] $.post() response dataType
Hi, is $.post() always returning string as response data? $.post(url, { param1: value, param2: value }, function(data) { alert(typeof data); --> string } Even if the data is JSON? Do I have to use $.ajax() instead? Thanks for your help. Bohdan
[jQuery] Errors on page??
hey, i done firebug on my site ( www.xpogames.com www.xpogames.com ) and i noticed that all the error (atlast, what the firebug says) comes from the jquery.js, i removed the old version that i had (i tought mabye this is the problem) and replaced it with the lasted jquery pack.. still errors, any idea why? Thanks ! Amir! -- View this message in context: http://www.nabble.com/Errors-on-page---tf3952902s15494.html#a11215178 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] validator.getLength is not a function
I just upgraded the validation plugin to 1.0 final from beta 2 and now I get this on one of my forms: Error: jQuery.validator.getLength is not a function The line where the error occurs is the second of the three lines below: jQuery.validator.addMethod("validPhoneNr", function(value, element, param) { return /^\+{0,1}[\d\- ]+$/.test(value) || jQuery.validator.getLength(value, element) == 0; },""); Does anyone know if this function has changed or been replaced?
[jQuery] Add() bug?
I wanted to create an empty jQuery object and add elements to it for later use but I couldn't get it to work. Eventually I started experimenting and discovered the following: var test = $('form').add ('li'); console.log (test); will return a jQuery object containing a list of forms plus a list of li elements. var test = $('form'); test.add ('li'); console.log (test); will return a jQuery object as well but this time it only contains the form elements. Is this what's supposed to happen or is it a
[jQuery] Interface TransferTo
Hi all, I was trying to use the Interface TransferTo function last night and although I wasn't getting any errors, the function also wasn't working - nothing was happening, it was as if the function was being completely ignored. I had a custom-built interface.js containing all the effects from the middle column on the "build your download" page, plus autocomplete from the right hand column (for use elsewhere on my site) - when I used the full 78k interface.js file from the download on the website,
[jQuery] Read PARAM from Object
Hi, Anyone knows how to read DATA and Param name fileName with Jquery? <object id="mediaPlayer" type="video/x-ms-wmv" standby="Loading Microsoft Windows Media Player components..." data="video.wmv" width="360" height="331" id="wmv"> <param name="fileName" value="video.wmv" /> <param name="animationatStart" value="true" /> <param name="transparentatStart" value="true" /> <param name="autoStart" value="true" /> <param name="showControls" value="true" /> </object>
[jQuery] Adding custom selectors via a plugin
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hi folks, Is it possible to add custom selectors to jQuery via a plugin? I'd basically just need to rewrite the selector string before it get's handled by jQuery itself. The reason I ask is because I'm currently converting some OOPish code into jQuery plugins which is tons of fun and I'd like to use selectors like this: --------------------------------------------------------------------------------
[jQuery] create an empty jquery object
Just a quick question, is there a way to quickly create a jQuery object that contains no elements at all so you can add() them as needed later in the script?
[jQuery] jQuery book status?
Just curious if there are any updates about the jQuery book? The site says "Expected June 2007" and June is almost over :) Thanks, Jim
[jQuery] "async: false is not defined" - error
I'm getting this error "async: false is not defined" with Firebug 1.05 turned on I need to post content of the textarea (not the whole form) via Ajax, the code follows: --- function preview() { var content = $("textarea#profile_content").val(); var preview_text = $.ajax({ type: "POST", url: "preview.php", data: "profile_content=" + escape(content), async: false }).responseText; $("div#preview_area").html(preview_text); } --- With Firebug turned off everything works
[jQuery] Help with $.ajax function
Hi, I'm a little unsure on how the $.ajax function works in terms of returning a value. I would like the below to insert the returned values into a div..... but i'm unsure what would go into the t() function. $.ajax({ type: "POST", url: "autocomplete.php", data: "typing=1", success: function t() { //insert return value into a div element } }); Thanks
[jQuery] Array of elem IDs
As I have been learning jQuery I developed a technique where I would use addClass () and removeClass () to attach information to elements so they can be easily identified and prossed elsewhere in my script. For example I have 2 main groups of code, one that performs the application logic and the other applies effects based on the results of the logic operations. To pass values between the two I would loop over the arrays in the logic code and addclass() a string to each element that matched whatever
[jQuery] Selector quirks?
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Hey folks, real quick question, the following selector: $('tr[td]:nth-child(2)') Always returns the 2nd <tr> that is found but not the 2nd <tr> that contains a <td>. Is this expected behavior or a possible bug? Thanks for feedback, -- Felix <div class="moz-signature">-- <small>-------------------------- My latest blog posts: <p style="margin-top: 10px; margin-bottom: 0pt;
[jQuery] superfish problems with ie6
I have a menu superfish. I have added i6 "patch", and works fine. However I have this design: menuOp1 menuOP2 _______________________________________________________ label: comboBox V When I click on menuOP1 the options are displayed (vertically), however the comobox appears over the options. I dont' know if my explanatios is good enought.
[jQuery] .css() in loops
I am using a loop to initialize some elements for animation (befor initialization they are allowed to float, but for the animation process itself their positions need to be absolute). My code is as follows. $('.elemsToAnimate').each (function () { var thisElem = $(this); thisElem.css ({ top : this.offsetTop - parseInt (thisElem.css ('margin-top'), 10), left : this.offsetLeft - parseInt (thisElem.css ('margin-left'), 10), width : 100, height :
[jQuery] what's wrong with this 'loop' ? (newbie question)
This is the code: container.after("<div class='stripTransmitter'><ul></ul></div>"); container.find("img").each(function(i) { $("div.stripTransmitter ul").append("<li><a href='#'>"+(i+1)+"</ a></li>"); }); Suppose that container is $(this) where this is a DIV. I am making experiments to find out how plugins work. Suppose that in a page i put TWO DIVs and suppose that i want to append the LI items BELOW each DIV with a class "stripTransmitter" into a UL element. Why it count correctly the number of
[jQuery] Help with stopping event propagation.
Hi. I am applying a click() event to a <tr> but I only want the event to fire if someone clicks on empty space or plain text. With the help of the IRC channel I've only been able to get the click event to stop working on a form element but nothing else. Anyone have any ideas? Here's my JS: $('tr.customer').click( function(e) { if($(e.target).is(":input")) return; // this works if($(e.target).is(":input, a")) return; // this doesn't work if($(e.target).is("a")) return; // this doesn't
[jQuery] Moving between lists while sorting.
Hi, I am using Interface 1.2. I have two sortable lists. I also want an additional feature of moving items between lists. I went through Interface's documentation. It is mentioned that elements can be moved from one container to the other, but no where in the demos is it shown. Does any one have an idea how can this be achieved? Thanks.
[jQuery] What's DOM manipulation methods return values?
e.g. var para = $('p#firstPara').after('<p id="secondPara">...'); now, what's para? $('p#firstPara') or $('p#secondPara')? in my testing, it's $('p#firstPara'), but i think it should be $('p#secondPara')... -- Zacky Ma www.marchbox.com
[jQuery] Ajax, Screen Readers and 508 compliance... On My!
Hey Guys and Gals, I am doing some research on Ajax and 508 compliance and wanted to get everyone's take on the issue. Does anyone have any experience with getting screen readers to pick up on changes to the DOM? I am compiling a list of sites that discuss the issue, feel free to see what I find: <a href="http://del.icio.us/kenzomedia/screenreaders">http://del.icio.us/kenzomedia/screenreaders</a> I go to the Dept. of Ed in a few weeks to their accessibility department, where the majority of the
[jQuery] jquery css not working in IE6
For some reason my jquery css isn't working in IE6 - please check http://hiphop.dk/jquerytest/index.html where I have put together a very simple example... What am I doing wrong here?
Next Page