[jQuery] Mistake/confusing explanations in Tablesorter documentation
This is aimed at whoever is currently maintaining the Tablesorter documentation. 2 quick things: First, at http://tablesorter.com/docs/ there's an example for the textExtraction parameter that says: 1 var myTextExtraction = function(node) 2 { 3 // extract data from markup and return it 4 return node.childNodes[0].childNodes[0].innerHTML; 5 } 6 $(document).ready(function() 7 { 8 $("#myTable").tableSorter( {textExtraction: myTextExtraction} ); 9 } 10 ); I think on line 8 there myTextExtraction should
[jQuery] Show loading gif onclick, hide when iframe is loaded
I know how to show a loading gif when a link is clicked, but is it possible to know when the page is finished loading inside of an iframe, so that I can then hide the loading gif?
[jQuery] Revert focus on duplicate check error.
I have a form with multiple rows. On each row, the first field is a key field; that is, it can't be duplicated on any other row. The comparison is working, as I currently have an alert() if there's a duplicate. What I want to happen is if there is a duplicate, focus the field the user just changed. For some reason, the next field is always focused. My guess is, I focus the previous field, and the change() finishes running and re-focuses to the next field. Is there any way to prevent this? Here's
[jQuery] New CF programmer - anxious to start using jQuery
I'm currently writing code in CF8. I hate cfgrid and autosuggest. I was introduced to jQuery by a colleague, Steve Steinberg. I'm anxious to get started but am a little daunted about using it with CF8. I have a simple project to add an autosuggest field to my page. I have downloaded the latest jQuery.js and the autosuggest widget. I've added the javascript source statement to my initial page. I'd like to add the autosuggest element but not sure where to start.
[jQuery] Understanding JSON
I am trying to understand JSON, and could use a little help. So, if I have something like: { "firstName": "John", "lastName": "Smith", "address": { "streetAddress": "21 2nd Street", "city": "New York", "state": "NY", "postalCode": 10021 }, "phoneNumbers": [ "212 555-1234", "646 555-4567" ] } How would I use jQuery to write the values onto a page? And how do you go the other way, taking values and serializing them into JSON to be sent to the server? Thanks!
[jQuery] Target .current on top-level rollover in Superfish
Hi, I'm developing a navigation with Superfish and its been going pretty well, but I've run into one small problem. On the .current class there is an arrow status indicator that dips down into the dropdown menu and when a user mouses over another navigation item, the background image of .current leaves a little gap in the bottom border. Here's the page- http://chrisbz.com/airwatch/industries.html So, my thought is that there may be some way to modify the javascript in order to switch the style on
[jQuery] how to insert javascript code instead of text with .before() or anything else jQuery has?
Hello everyone, I'm new to jQuery (and to programming, as a matter of fact). Still, I have this task: find a certain element on an html page and insert a google ad before it (or just anywhere nearby). I have no problems finding the necessary element, but I just cannot understand how to insert any piece of code nearby it. All I can insert is usual text. For a few hours I tried using .before(), getScript("/script.js"), before ( eval("google code here") ), .before("<!--#include virtual='/ script.js'
[jQuery] External links not working within jquery.accordian
http://www.firstlineeducation.ca/ Hi! I'm new to jQuery, and just realized that somewhere along the line while coding the accordian and cycle plugins into this page, and then finishing the rest of it the links within the accordian don't work - they just scroll the accordian section back up into itself to close the stack. I've tried backtracking, but I can't seem to find what might be the problem. Can anyone point me in the right direction? Is there a 'return false;' that I'm missing somewhere? Is
[jQuery] jQuery jumping DIV issue in IE6
I used the ALA wrapper-free 3-column liquid holy grail (found at the bottom of http://www.alistapart.com/articles/holygrail). In short I set padding on the body, and use megative margins on #left and #right to get them to stick properly. This layout works awesome in IE7, FF2+, and Safari (haven't looked at it in Opera but it probably is fine). IE6 is the problem - I've got it down to when any jQuery code accesses elements in #left, it jumps over a bunch of pixels. If I resize the browser, it jumps
[jQuery] jQuery Listen plugin help
I was easily able to make the plugin work where I needed to add things dynamically via jquery. But now I can't get it work on another page where I need to add a few div via ajax When I click on a <li> I fetch some images via ajax and they get displayed inside of a container. My problem is that I need to be able to hover and click on those images so a normal jQuery selector isn't working and when I try the listen plugin it isn't working either... this is what I have <div id="images-container"> <!--
[jQuery] get elements by tag name and attribute?
Hi, sorry for the novice question, but can anyone tell me how to do this using plain old javascript - I don't need the entire jQuery library just for this simple function: $('input[type=text]').addClass("textInput"); ... one of those problems of being too reliant on jQuery without knowing enough basic js! Thanks in advance, James
[jQuery] order of arguments reversed on $.map callback function
The argument order of the $.map callback function seems to be reversed depending on how $.map is used.
[jQuery] Need some help with Drag 'n Drop (jquery.event.drag-1.0.js)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2800.1613" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>I'm bit of a jQuery newbie, and I'm trying to implement a custom page designer. I want to have "tool" on the left that the user can
[jQuery] Click on checkbox, unexpected double event
I have a set of checkboxes and some JavaScript code to handle when the user clicks on them. In the code below, there are functions for selecting and deselecting a checkbox, and then there's a function to handle event binding. And there's the $(document).ready() binding. In Firefox when I click on a checkbox, the alert comes up as expected. Then when I dismiss it, the alert comes up again. I added event.stopPropagation() and return false to the select / deselect functions but it makes no difference.
[jQuery] any jQuery plugin like this?
<div dir="ltr">HI all. I'm using(in the last 3 years) a very good javascript Ajax integrated with ColdFusion and builded by this guys: <a href="http://eswsoftware.com/products/srs/example4.cfm">http://eswsoftware.com/products/srs/example4.cfm</a> Right now I'm wanting to convert that functionalities to jQuery. Do you know any jQuery plugin with that functionalities? Cheers Marco Antonio </div>
[jQuery] unsubscribe
<div dir="ltr">
[jQuery] unknow wrror
Hi all! I try to make an application with ajax. I need a input field with typewatch plugin. If the user stop the type the TypeWatch call an php function through $.getJSON(). The ajax call workig fine. The result come back. I can see in Firebug but i have an error message (bottom). What is the error? Did I something wrong? "uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame :: http://.../jquery.js :: anonymous
[jQuery] hot to work with specific type
Hi i have many inputs like button ,submit, file and may input types i want to work with the input type of the button <input name="Button" type="button" onclick="doit()" value="Button" /> how to access it? thanks in advance.
[jQuery] Extracting HTML comment
I posted about this back in March but ended up using RegEx to get the job done. I'm now looking to do the same but thought I'd throw the question out there again. Is their a way in jQuery to get at HTML comments? <div> <!-- I want this text --> <span>Hmmmm</span> </div> Thanks. Adrian
[jQuery] Selecting unusual CSS identifiers
Hey all, Does anyone know if it possible to select elements with id's or classname's that include colons or other similar characters? So far I haven't found any evidence that "::" is not valid as part of a CSS identifier, but have been unable to select elements with a class "first::second." Any ideas? Thanks, Keith
[jQuery] [tooltip] how to add a delay to tooltip removal
Hello, I'm using Joern's fantastic tooltip plugin. For a project I'm working on, I need the tooltips to persist for a certain number of seconds after the user has ceased hovering over the element(in this case a label). I am already using the delay option, but was wondering if there was an easy way to add a post-delay before hiding the tooltip. Thanks! Matt
[jQuery] Developer needs Image Upload help!
Hi guys, First post here! OK, I'm working for a website (I've taken over their old webdesigner). They use Joomla and their old guy made a component so people can upload stories, and add Images and Links etc using jQuery. These images get uploaded and appear in he story. However, in the admin area there is not a function to add extra images to a story so I copied the file upload code from the front end template and put it into the admin area template. This though, doesn't work when the page is saved...
[jQuery] tablesorter and parsers not defined error
Hopefully I am just overlooking something. I am attempting to use the tablesorter plugin, and can't get past a parsers error. I am running FireFox 3. I want to use the default values, and have then commented out trying to debug the error. If I put the tablesorter() call at the end, then my selectlists get populated. With tablesorter being first, by selectlists are empty and I get the error message listed after the code listing. Here is some of the code and the firebug information: Code: $(document).ready(function()
[jQuery] calculate width of images in specific div
Hi, is there a way to calculate the width of all images in a specific div.? the images do have the width-attribute! ToM
[jQuery] place I-beam at end of text
Hi, How can I place the I-Beam ( blinking vertical cursor) at the end of the text in a textbox? I have a form with certain calculated values based on an input field. Everytime a new digit is filled in, the form gets updated. This makes my input field loose control and place. Regards Boris
[jQuery] Seat reservation using jquery
Hi, I am working on an application where I need to book online seats. For that i need to first populate my page with the seat info (ie: how many seats are vacant, how many are booked, how many are at special prices). This needs to be done dynamically as it will change on the fly according to the database. can someone please help me with this?? Its very urgent. Will be really grateful.......... Thanks :)
[jQuery] Can I have multiple $(document).ready() calls in a single page?
I've got a bunch of form widgets (these are server-side widgets) and a lot of them depend on some various jQuery javascript tricks. I would like to be able to do something like this: $(document).ready( function () { set_up_widget_1(); } ); $(document).ready( function () { set_up_widget_2(); } ); Is this dangerous? It will make my server-side much simpler.
[jQuery] firebug-like element focusing
Hi, I need to select an element of the DOM by passing over it with the mouse pointer, like it happens in Firebug (you know it, isn't it?). I thought to write down something like this: $("div").mouseover(function(){ //execute some code }); <div id="A"> <div id="B1"></div> <div id="C"></div> <div id="B2"></div> </div> The issue is that, once i put the mouse pointer over the div "C", the script iterates its logic untill it arrives to the last-parent element. So, being it instant, it seems i always select
[jQuery] Reinit $(document).ready(); -----HELP
I have an web application that I am using jquery for some dynamic ajax code. currently my JQuery has a $(document).ready() call that listens for a click and then reloads the content that it is listening on. The problem is that the text from the ajax response is then used to replace the dom node that triggered it. How do I force jquery to reevaluate the dom and rebuild all the event listeners based on the new content from the ajax call
[jQuery] Drag and Drop for Shopping cart
I want to do some Drag and Drop for shopping Cart with jQuery , which plugin it's good to use THe UI or something else could someone guide me on this ... thanks and Regards ...
[jQuery] Combining jQuery with document.querySelector
Hi, I’m working on some project with WebKit nightly being the one and only target. I want to use jQuery for its clarity and speed, but I know that selector engine is using regular expressions and some other magic stuff. Whereas I have document.querySelector/querySelectorAll at my fingertips. Can you suggest how I could combine those two? I’m also seeking a way to optimize jQuery – throw off every IE hack, work-around for browser X, etc. It’s not a project for web so I can afford that.
[jQuery] Back
Hi..im doing this site almost 2wks...please help me on this one..my content are under the background images..i want my content under the background images while the background has transition (fade in fade out).. sorry for my english,hope someone can help me.. or do you have any idea that the background image has transition (fade in fade out).. <html> <head> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.innerfade.js"></ script> <script
[jQuery] .append() losing my script tag?
Hello, I am appending an element to the DOM that has a lot of children. There is a script include, some css styles and a bunch of divs. When the element is appended, the script include vanishes. I can still access the functions in the script, but it no longer exists within the element or even anywhere on the page. I even gave the script an id and could not alert its type. Alerting the html of the element the line before appending it shows that the script exists. Alerting the line after appending
[jQuery] [autocomplete] query on focus
Maybe I am missing something, but there doesn't appear to be a way to make the autocomplete box show up as soon as the input box is focused. I tried to modify the focus event in the code, but the result was that the autocomplete box would not go away and the input box kept focusing itself when another form component was focused. Here is the code I am using: $("#medication").autocomplete("/patient/meds/0?box=medication", { minChars: 2, autoFill: true, max: 100 });
[jQuery] [Announcement] Chain.js - Data Binding for jQuery
I am proud to release my recent work - Chain.js. It has been rewritten several times, and now it has a very simple but powerful api. Chain.js is a jQuery plugin, providing data-binding capability that allows you to generate web contents automatically by binding your data to html. Unlike other data-binding frameworks and library, it uses pure DOM, instead of string-based innerHTML approach, so event binding won’t gone during rendering. This library can also be very helpful if you strictly separate
[jQuery] how to uncheck the checked checkedboxs
hi i write the following to uncheck the checked checkedboxs <script src="jquery-1.2.6-intellisense.js" type="text/javascript"></ script> <script language="javascript" type="text/javascript"> $("document").ready(function(){ $("#Button1").click(function(){ alert($(":checkbox[checked='checked']").length); }); }); </script> but do nothing !! any help? thanks in advance.
[jQuery] Easy typewriter plugin, need some help with scope
Here's my code. The plugin should take the text from a container, erase the container, then print out the text one character at a time in a typewriter fashion. The problem is that setInterval() seems to think that addText() is undefined, because setInterval() runs at the 'window' scope level. I had this function running fine as a normal program, but I'm unclear on how to convert it over to the plugin format and solve the scope issue. thanks in advance. jQuery.fn.typewriter = function(speed) { return
[jQuery] loading image for blockui on form submit
Hey guys, I am trying to use the blockui plugin in order to block a div that contains my file uploader while the file is in the process of uploading (form is being submitted). I have successfully achieved this, however, I want to display a cool little animated loading .gif in the blockui message, but am having issues getting it to load, and animate in some browsers (ff and ie6). I think the problem is that the image isn't getting enough time to load or something before the submit begins. I am using
[jQuery] Create Classes using jQuery
Hello, I used Prototype so long. But I switched to jQuery. But now I have a Question about creating classes. With prototype I can use "Class.create" to create a new Class. Is there a way in jQuery to do this? Or do I need the old JavaScript syntax to create my classes? Thanks for your help, Stefan Sturm
[jQuery] modal window and framesets
hi all, does anyone know of a modal window that works across a frameset? just tried thickbox and it doesn't seem to work. i dont get any errors either which is strange so its difficult to try modify it. thanks --> etho
Next Page