[jQuery] Any doc on the validator object in the "invalid-form.validate" event?
Hi all, It's about the validation plugins. I found in some example that I can somehow control the validation by using "invalid-form.validate" event. e.g. $("#form") .bind("invalid-form.validate", function(e, validator) { var errors = validator.numberOfInvalids(); if (errors) { $("div#error ul").html("<li class='error'>Please correct those highlighed fields!</li>"); $("div#error").show();
[jQuery] Appending, loading and variables
I have the following code: $("dt a").click(function(){ $("dt a").removeClass("selected"); $("li a").removeClass("selected"); $("dd:visible").slideUp("slow"); $(this).parent().next().slideDown("slow"); $(this).addClass("selected"); /* $(this).attr("href").append("&js"); */ /*var newHref = "content.php?page=3&js";*/ /* $("#loadcontent").load(newHref); */ return false; }); Sadly it's breaking starting from where I commented it - any idea why? TIA
[jQuery] Problem executing functions based on class (making Google Reader-like interface)
With a little downtime and an interest in learning jQuery... I decided to build a light version of Google Reader's interface (works/only tested in Firefox). It's day 4 and I'm getting close, but I seem to have a problem thats preventing me from moving forward. Project Location: http://www.rwbaker.com/resources/threadreader/ On $(document).ready I'm reading a cookie to determine your "View State" (expanded or list), defaulting to the List view. I have a button click and hover state that are dependent
[jQuery] Can't download jQuery from Google Code
Something is up w/ Google Code and their contact page is obscure and doesnt even list Google Code as a product so I couldn't contact them, FYI both a link from jquery.com and thought a search for jQuery on code.google.com serves up a google server error I'm unable to download the latest version. Is there a mirror? http://code.google.com/p/jqueryjs/
[jQuery] JQuery Cluetip: dynamically set content of local textarea is not populated in clutip popup.
Hi, here is the sample of the code i have been struggling with for couple hours now. Not sure if this is a bug or anything wrong with my approach. If i comment the line: $('#text1').val('test content'); //set the content of textarea and set the hardcoded content for textarea: <textarea id="text1" name="{t:'rv_features',f:'custom_description'}[]" cols="25" rows="4">test content</textarea> then seems things would work fine. But I have to do this programatically as each tr will represent a datarow and
[jQuery] acceptable html element to wrap a selection of li ?
hello! i'm facing a difficult task: i need to wrap a selection of LIs inside an UL into a group i can then manipulate (load content into, block animate it, etc...) so i thought i'd wrap a div around it but i think this is not valid. before i walk into the dark side of nonstandard html and eventually lose my soul into this venture, does anyone know a valid way to group a number of LI elements ? i'm thinking of something similar to OPTGROUP for OPTIONS in a SELECT element. i'm a day dreaming or
[jQuery] Selector [title='X'] problem
Hi all, Given the following table cell: <td class="sizecell" title="test">test</td> This selector works: $(".sizecell[innerHTML='test']") This selector doesn't: $(".sizecell[title='test']") Why is this, and how can I make it work? Regards, Michael Price
[jQuery] Trying Jquery
I'm a begginner in Jquery. Today, i tried to copy the phatphusion Imagemenu. After searching, consulting the docs and example, i finally work it out, but it's also absolutly not otpimized. Is there somebody outhere to enhance my code and maybe released it as a finished plugin? I will also kindly all positive critisism and explanation to enhance my jquery coding. Here is my code: (function($){ $.fn.imageSlide = function(options) { var defaults = { openWidth: 310, fx:
[jQuery] FW: jQuery intellisense in VS2008 (including chaining)
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <meta name=Generator content="Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face
[jQuery] Tablesorter 2.0.1 with pagination plugin trigger("update") problem.
I seem to be losing all the data on any page not currently being shown if I do a $("table").trigger("update"); I'm trying to remove a row then do the update (if not it just comes back when you sort or change page) I'm also trying to replace a row after I know it's value has changed then do an update (if not the value changes back if you sort or change page)
[jQuery] Snap to grid on BBC website
Hi all I am currently evaluating the jQuery library, along with some other JS libraries for my company, and we decided to implement the same functionality the BBC homepage has. I managed to reproduce all the effects quite quickly apart from the snap to grid. Can anyone send me on the right direction? iGoogle seems to have the same functionality and I know they also use jQuery. Are they using it on iGoogle or are they doing it using their own JS libraries? Many thanks for your help. Rui
[jQuery] Best table sorter plug-in?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000"> <TITLE>Best table sorter plug-in?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Ok</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">…</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> so I</FONT></SPAN><SPAN LANG="en-us"><FONT
[jQuery] Question about loading external static content (non-Ajax)
Hi, I am trying to find out if jQuery can read the contents of an external HTML or text file and then replace a div's contents with this external content. The external static files are on the same server, and I don't want to write a server process to perform Ajax calls. I'm still a beginner at jQuery, but I can code Javascript ok. My psuedo-HTML is shown at below. When I click a link in the leftcol div (say, using jCarousel or jCarousel Lite), I then want to read the corresponding external static
[jQuery] gallery question
Hello, For my website i need a gallery like this (http://www.flashgallery.org/ demo.html) I know that with jquery there is a galleria plugin. Is there a plugin who can do this or can the galleria plugin be changed to make such a gallery. Regards, Roelof
[jQuery] jQuery Features - Urgent
Hi, Is jQuery is lightweight or heavyweight and if i integrated jQuery's AutoComplete and DatePicker in my application but using only DatePicker then the AutoComplete Method also loaded in application or when calling only it will loaded ? What is the Min and Max FileSize of jQuery taken? And for DragandDrop its fully supported or still have some bugs? the AutoComplete and DatePickers are third party plugins but they are integrated in jQuery. if i get any problem with that plugins how to fix that?
[jQuery] function with jQuery-like syntax -- how/when to use
I did some searching on the group on this subject and found some things, but not exactly what I'm looking for. I don't understand how/when to use $.functionname = function() {} Here is what I have, which gives me the error "$.setActive is not a function". If I write this as a standard function (function setActive() {}) it works fine. What am I doing wrong? if ( $("div#wrapper").is(".list") ) { $.setActive("span#list-view"); $("div.thread").each(function() { $(this).addClass("new").addClass("collapsed")
[jQuery] Cycling through input element names/ids question
<html> <body> Hello folks, I'd appreciate some help with a jquery "translation". I have an ajax-returned form containing an unknown number of input boxes to which I want to use as date input fields (via UI Datepicker). The fields will have unique, sequential, zero-based ids and names e.g. daterange0, daterange1, daterange2, and so on. I need to assign datepicker to them as: <pre>$('</pre><tt>#daterangeX</tt><pre>').datepicker(); </pre>where X is unique (0,1,2 etc) If I knew there were going to be
[jQuery] [Plugin release] jQuery Fx Queues 2.0
Just wanted to let you guys know I released a new version of the fxqueues plugin (http://plugins.jquery.com/node/1936). "The new version of this plugin is based on a script John Resig started some time ago (I came across his code afterlaunching the first version of this plugin). I adapted the code and added the scope stuff, created a new example page and also created some unit tests (which need some improvement, but are a good start)." Here's an example page: http://www.decodeuri.com/fxqueues2.0/example.html
[jQuery] Selecting namespaced attributes
Hi all, I'm trying to select tags with custom namespaced attributes: <html xmlns:kw="... ... <div kw:func="someFunc"... I've tried $('[kw:func]') and $('[kw\\:func]'), but no luck... Is this a known bug or am I missing something? Thnx
[jQuery] Jeditable does not work with Paging in Tablesorter
Hi All, Not sure if anyone else has tried it or had the same problem... I am using tablesorter with the paging plug-in to dispay some data. I've just added Jeditable to the same page, so that the data could be edited in-place. However, it works on the first page just fine, but as soon as I use the paging to go to any other page of data, the cells stop being clickable. Help?!? -Roman
[jQuery] z-index issue using jquery corners and perciformes menu
HI Wondering if anyone has seen the 2nd tier of a suckerfish menu get pushed behind divs styled with jquery.corners (from Dave Methvin) in IE All is fine in Safari, FF etc. but all versions of IE tested (5.5 - 7) are affected I've tried bgiframe and explicit z-index settings but nothing changes Any insight would be great Brad I have a page showing what's happening but have tried posting 3 times and it doesn't seem to make it through so I will add it to a reply
[jQuery] DOM Expandos kill IE8 beta
Hello all, after a tedious debugging-session with IE8 beta crashing with my gridtable impl, i narrowed it down to the following line: var rowEl = document.createElement('tr'); rowEl.gt_data = data; // <- CRASH return rowEl; setting objects as DOM expandos literally kills IE8 beta :( these tries do not work either: var row = $('<tr />').appendTo( this.table.find('> tbody') ); row.data('gt_data', {bar: 'FOO'}); // <- CRASH row.data('gt_data', {}); // <- CRASH row.data('gt_data', [] ); // <- worked,
[jQuery] Plugin Repository down?
Hi guys, It appears that the plugin repository link is down (http://jquery.com/ plugins/). Regards.
[jQuery] jquery tabs: chaging the url of the tab after tabs have been loaded
Hi, I'm using JQuery tabs with Ajax capabilities, conveniently found here -- http://www.stilbuero.de/2006/05/13/accessible-unobtrusive-javascript-tabs-with-jquery/. I have two questions. After the tabs have been loaded, how do I 1. change the URL of one of the tabs 2. make that tab the selected tab without the user having to click on it ? Here's the JS I use to create the tabs: var tabSelected = $('#tabcontent > ul').tabs().bind('select.ui-tabs', function(e, ui) { ... }).bind('show.ui-tabs', function(e,
[jQuery] UL in Tab
Hi all, i use the tab plugin with much pleasure! Only i have one problem with it. I have an UL in a tab. The plugin styles this UL as if it's part of the tab UL. I use at the moment: $("#tabs > ul.tabs:first-child").tabs(); for initiating the tabs, but $("#tabs > ul) or $("#tabs ul.tabs) or $("#tabs ul) won't do the trick. Can anyone help me? Grtz Reijer
[jQuery] A simple image gallery
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1252"> <META content="MSHTML 6.00.6000.16608" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT color=#000080>Is there a simple image gallery available? I want to display 9 images in a 3x3 format. The images can be in landscape or portrait and hence the gallery must take this into account and display correctly. Cheers!</FONT></DIV>
[jQuery] validation plugin : Do something before validate
Hi list, I'm using the jquery validation plugin (http://docs.jquery.com/Plugins/ Validation) It works well. Just I have a small problem. I use JCE editor (wysiwyg) and my page gives the ability to switch from that editotr to a simple textarea. JCE editor transmit the data just before submission and because the validation is done before, I have to click twice before tha data are submitted. I tried to play with SubmitHandler, but in vain. Alerts are not displaying. Here comes the code : $jq("#adminForm").validate(
[jQuery] validate plugin : scroll to firt error
Hi all, Just wonder if someone here already tried to make validate smoothly scroll to the first error of a form when validating because when the form is longer than the viewport height, you can't see the labels.error so the user wonder if the submit button is working or not. I see it's possible to bind the "invalid-form.validate" event and find the first "label.error" element of the form but I wonder what to use in order to make the viewport scroll smoothly to the matched element ? Is there a plugin
[jQuery] JQuery and asp.net UpdatePanel
This is probably a trivial question but I am a JQuery newbie. I'm having difficulties running the following script when embedded in an update panel control: Firebug informs me that $ is not defined. What is wrong with this piece of code? The script works fine on a regular aspx page (ie. no update panel). It works also as is if the jquery statement is commented out. I tried substituting the $ prompt with another prompt to no avail.TIA for any hints. <asp:Content ID="Content4" ContentPlaceHolderID="CPM2"
[jQuery] Trouble with fadeIn() and IE 7...
Sorry, I am pretty new to jQuery and am sure what I am doing is a simple "gotcha". Anyways, here is my code... //jquery $(document).ready(function() { $("a#login").click(function() { $("div.header_login").fadeIn("fast"); }); }); Ok, so I have a <a> element that when clicked, should slide down a <div> with a login form. Now, this works just as expected in firefox, but IE is a different story... here is a simple drawing of what it looks like... -----------------------------------------------------------------------------------------------------------
[jQuery] Reset one input box
Hello, I have looked around and haven't found a way to do this, maybe its something easy I've overlooked. I'm trying to reset the contents of just one input text box, not an entire form. Thanks! -Chris
[accordian] why does this not work [Solved]
hello, I try to make a accordian with a defenition list. To understand accordians i try to make a demo work. But nothing happens. my code looks like this : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>jQuery UI Accordion</title> <link rel="stylesheet" href="demo.css" /> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="query.easing.js">
[jQuery] flash like behavior with jQuery?
Hi I consider myself still a beginner to jQuery. I came across this site and the effect on top of the page with 'floating' images and upon clicking image comes to foreground looked impressive. I dont know any flash... just wondering if anyone would suggest on some tips on how to go about doing this in jQuery or if it is doable?
[jQuery] Half star rating plugin won't work with jQuery 1.2.3
I got this one to work: Star Rating Plugin v1.1 -> http://www.fyneworks.com/jquery/star-rating/ But the half star plugin won't work with 1.2.3: http://www.learningjquery.com/2007/05/half-star-rating-plugin Does anyone know a fix? The stars all appear grayed out and hover also doesn't work.
[jQuery] jcarousel via ajax/php + shadowbox
Hey gang, I've successfully gotten jcarousel with ajax/php to work on my site. I've also gotten shadowbox with the jquery adapter to work in a separate instance. What I'd like to do is use them together. Where the images are loaded dynamically via ajax and when clicked they fire shadowbox to view within the page. When I got it all set up I found that it was just jumping to a page with just the image (pretty much going to the URL. Is this happening b/ c the content is loaded dynamically? I looked
[jQuery] jqGrid - How to pass initial settings from url?
Hi, I'm new to jquery and I've been getting to grips with it while using the awesome jqGrid plugin. I'm now using jqGrid exclusively in my new web app to view grids of data. Its perfect. One thing I'd like to do is to set some initial settings before rendering the grid, taken from the url. This is because I'd like to pass these settings from other places on the site, for instance I'd like to pass in a setting telling the grid to only display results from the previous week when a certain html menu
[jQuery] $getJSON problem...demo works, but not my code?
I've got an AIR app I'm working on, one in which I'll be needing to make a few calls from the user's desktop to our login server. I found on the jQuery site where it says that cross domain calls work fine if you return JSON data using the JSONP format. The demo works just fine, but when I try to replicate it using my code, I get no data, or an error. Can anyone tell me what I'm missing? Here's the two samples, the one copied straight from the docs, the other copied and pasted from my code: $.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?
[jQuery] position clueTip horizontally and vertically...
I am able to position my clueTip using positionBy: bottomTop and setting the bottomOffset to 20, but I want to do the same thing with rightOffset. Is this possible? So far I can't seem to get leftOffset to work and was also wondering if I needed the positionBy to be set to fixed. I wasn't sure what this meant. Thanks!!
[jQuery] jQmodal cleanup and create new triggers dynamically
I'm having a similar issue to this: http://groups.google.com/group/jquery-en/browse_thread/thread/86568ae1da917536/2684283de38f2abf The triggers are created dynamically and the modal is initialized with a callback which passes the offset to display the image that is clicked. It works fine on first page load but fails when new triggers are created. http://meiko.novatunes.com js code: var artist_photo_nav_items_per_page = 4; var artist_photo_gallery_items_per_page = 1; $(function() { $(spinner_artist_photo_nav);
[jQuery] jqGrid and loadonce
So I've been experimenting with jqGrid and I seem to have hit a wall. I have the following: $(document).ready(function() { $("#my_table").jqGrid({ url:'data.txt', datatype: "json", colNames: ['Col1','Col2','Col3], colModel: [ {name: 'Col1',index: 'Col1', width: 100}, {name: 'Col2',index: 'Col2', width: 100}, {name: 'Col3',index: 'Col3', width: 100} ], rowNum:10, loadonce: true, <other options here that I'm not having issues with> }); }); Here's my problem: According to the documentation at http://www.trirand.com/blog/?page_id=4,
Next Page