[jQuery] Is it possible to bunch rules in Jorn's validator plugin?
Quick question: is it possible to bunch rules together in Jorn's validator, similar to how you can bunch cases in a switch statement? Ex: rules: { storyscore: {required: true}, story: {required: true}, animationscore: {required: true}, animation: {required: true}, } Is it possible to change to something like: rules: { storyscore, story, animationscore, animation: {required: true} } My jquery code is large and bloated so I've been trying to figure out ways to cut corners
[jQuery] Programming Career For You
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm
[jQuery] IE XML parsing problem
Hi, I've managed to finish my first plugin and re-learn javascript at the same time. So I'm not quite sure if this is a Javascript or jQuery issue. The plugin loads external content from HTML or XML data using an AJAX call to the file name generated from the LI element clicked. DEMO: http://www.sozzi.cn/jquery/fish.fn.trial3.html It works perfectly for the HTML variant but the XML fails in IE throwing a " Object doesn't support this property or method" error. It seems to happen in the XML call and
[jQuery] table paging and sorting together
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" 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 11 (filtered medium)"> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/> <o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
[jQuery] jQuery and unit testing...
Does anyone have resources related to unit testing the front-end of a Web application, especially if it utilizes jQuery heavily. I have not heard of unit testing much in this regard, but if there are tools or sites that would be useful, this seems like a good place to post them. I am aware of the posts recently regarding the speed tests on selectors for some of the JavaScript frameworks, so please do not repost the link to that site. Our managed services group does load testing on completed Web applications
[jQuery] Plugin: cfjs updated (again)
Hi folks, I just wanted to let y'all know that I've added a few new functions to the cfjs plugin. They seem pretty basic, but I thought we should have them anyway. Added 04/10/2007: IsArray( value ) IsDefined( value ) IsStruct( value ) one thing to note is that (for now) the IsArray function doesn't behave *exactly* like its CF counter part. It does not *yet* support the 'number' argument. To quote the documentation on this optional argument: number Dimension; function tests whether the array has
[jQuery] How can I code this func fully jQuery compatible
Hi; function showReplyBox(itemId,parentId) { var box = document.getElementById('comment-reply-box'); var itemBox = document.getElementById('comment-item-'+itemId); var parent_id = document.getElementById('parent_id'); parent_id.value= parentId ? parentId : itemId; $("#box").hide() $('#replybox').remove() var replyDiv = document.createElement('div'); replyDiv.setAttribute('id','replybox'); $('#replybox').hide() replyDiv.innerHTML = box.innerHTML; itemBox.appendChild(replyDiv); $('#replybox').slideDown("slow");
[jQuery] Find Programming Job?
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm
[jQuery] dimensions offset() and centered BODY tag
The body of my page is centered. It is 800px in width. I have a div that I need to be absolutely positioned over the body, so I am trying to get the left position of the (centered) body tag using the dimensions.js offset method. In IE I get the correct left position, but in FF I get 0. When I ask for the left position of the first element in the body, IE says 0 while FF gives the correct number (even taking into account the centered body). $(window).width() does work in both browsers, so I could
[jQuery] outerHTML and Firefox does not work
Hi, I've some code that works fine with IE, but not on Firefox (2.0.0.3) on Vista: html: <code> <div id="k"> ... ... <img src="pic1"> </div> <script> i=0; alert($("#k img").get(i).outerHTML ); </script> </code> returns "undefined" in FF any ideas?
[jQuery] Click event leaking?
In the example below id's (first_li, second_li, etc) are only used for debugging purposes. http://www.appelsiini.net/~tuupola/jquery/bugs/click-1.1.2.html I have nested lists. When clicking li element of parent list it sibling ul will be hidden and shown. This works as expected. Problem is clicking li element in sibling list will hide sibling (itself). Loggin to console shows (check element id) that the click event was fired on parent element. Question is, is the click event leaking out from sibling
[jQuery] Where's Thickbox (Reloaded)?
I'm very interested in helping with Thickbox development and I have already published a patch for it, but just on my weblog: http://xhochy.org/en/2007/04/05/configure-thickbox-dynamically/ My question is now where does the development of Thickbox happen, I already found a announce of Thickbox Reloaded but I didn't find a URL of this and I would like to known how it differs from Thickbox. In jQuery-SVN there's thickbox and thickbox_reloaded, so I think someone has to know who I have contact... No,
[jQuery] Best practice for image source change
I've got a bunch of thumbnails, and when clicking these thumbnails, a larger image is supposed to change. I do this by changing the src attribute of the larger image, but I'm very new to jQuery so I was wondering about the best way to accomplish this. Right now, I've got this working code, but maybe it can be optimized? I wrap each thumbnail with a link: <a href="javascript:;" id="tnLink01"><img src="thumbnail01.jpg" alt="" /></a> This is the amateurish jQuery code I've conjured up: $("a#tnLink01").click(function()
[jQuery] jquery validation and error div...help
hey. is there a way to manipulate only error div of specipic field? like if i got: <label> uaboutme2222222 </label> <input name='uaboutme' type='text' id='MyForm1uaboutmeInputfield' value='dsadsad' maxlength='45' /> </div> the error div that its generates its : <label for="'MyForm1uaboutmeInputfield" generated="true" class="error">Please enter a value of at least 2 characters.</label> so i want to do somthing like label #'MyForm1uaboutmeInputfield { postion : left 1px... color:red } got me?> change
[jQuery] slide window to a set height??
Hi, I have looked at the docs and examples but I'm not sure if this is possible. Can I slide a window to a specified height? For example, say I have a div that is 100px high. Can I animate it to slide up so that it is only 30px high?? Thanks, Steve
[jQuery] A return false function for all of jQuery when script not included?
I have implemented jQuery as my DHTML effects engine (and it rocks) in the latest version of my site (preview two of version 2.8 of JAB Creations which is not yet public). I have DHTML disabled by default unless the user chooses broadband and or manually enables DHTML on my site. I have not removed nor will add dozens of lines of PHP per page, per visitor to detect whether or not to serve the JavaScript functions inside the XHTML itself; rather I'd like to avoid JavaScript console errors by simply
[jQuery] How best to achieve this slideout effect?
Hi, I have a large area at the top of a page which slides out with a toggle. The toggle is at the top of the page, and the area slides out at the top, pushing the toggle down. In order to close it, you have to scroll down, after which the area slides back up. But then, your position on the page is somewhere in the middle, which is quite confusing for our users. I tried to add a scroll function in order to solve it, but I'm not sure what the best solution is. Initiate the scroll after the slide toggle:
[jQuery] Question. Upload file
Im trying to understand some things. I have to upload a file I've to 2 .js http://cablemodem.fibertel.com.ar/d4rkm4st3r/common.js & http://cablemodem.fibertel.com.ar/d4rkm4st3r/main.js i dont know who to make work the testupload() function... (its in main.js) can someone explain me ? please, contact me. you can test the website in http://cablemodem.fibertel.com.ar/d4rkm4st3r/index.html The .js in the js folder, are encripted by default... the ones in the main folder, had already been decrypted to
[jQuery] How would I write this CF in JS?
Hi, all... I want to create custom validation that would test input the same as this ColdFusion function, <CFIF Not IsNumeric(REReplace(Form.Principal, "[$.,]", "", "All"))> which states that "if after all dollar signs, commas, and periods are stripped from the input value, the value is not numeric..." How would I write that in Javascript so I can use it as a custom validation in Jorn's Validation plug-in? Realize that I don't want to change the value, I just want to run it through a test... CF-coders?
[jQuery] droppables question
Hi, How do I get the draggable element's text being deposited in my droppable? I have tried "text()" and "html()" and I get JS errors, "text/html is not a function". Here is the code I'm working with ... $('#currentclasslist').Droppable( { accept: 'student', tolerance: 'intersect', activeclass: 'dropzoneactive', hoverclass: 'dropzonehover', ondrop: function (drag) { var name = $ ('#' + id).text(); addStudentToClass(name); } } ); The item being dragged in does not have an id attribute. Thanks, - Dave
[jQuery] ANNOUNCE: New jQuery Book Available for Pre-Order!!
I'm VERY proud to announce that the first jQuery book, Learning jQuery, is now available for pre-order! jQuery Project Team member Karl Swedberg & Jonathan Chaffer have produced a solid book that will get you up and running with jQuery in no time. To quote: "This book begins with a tutorial to jQuery, followed by an examination of common, real-world client-side problems, and solutions for each of them. A detailed reference rounds off the book, making it an invaluable resource for answers to all your
[jQuery] New plugin: ContextMenu
Hi everyone The first version of my new ContextMenu plugin has been released. You can grab it here: <a href="http://www.trendskitchens.co.nz/jquery/contextmenu/">http://www.trendskitchens.co.nz/jquery/contextmenu/ </a> ContextMenu lets you selectively replace the browser's right click menu with one of your own. It is fully customisable and allows you to bind context-sensitive actions to each menu option. Big thanks to Joern Zaefferer whose excellent Tooltip plugin provided much inspiration. This
[jQuery] [Plugin update]: jquery.cfjs.js
Hi folks, Just thought I'd drop a quick line to let everyone know that I've added the ListPrepend() function to the ColdFusionJavaScript plugin for jQuery. This *is* a function that CF offers (though I hadn't occasion to use it until recently), so I figured it needed to be in the plugin. It is the opposite of ListAppend() and does what you probably suspect it does Example: This code: var List = "1,2,3,4"; $.ListAppend(List, 5); // sending the number five as a string would work too. produces this
[jQuery] jQuery n00b
Hello, After reading lots about jQuery on a number of CF blogs/lists, I've finally got a project that I think warrants me jumping into it. I've only started going through the docs, etc a few hours ago, so I'm sure I'm overlooking something somewhere, but I have seen so many people brag about the wonderful community that is jQuery, and figured I'd give it a whirl. I am trying to create a simple ajax call. I've tried a number of code combinations, but the only version I can get to "work" (e.g. load
[jQuery] Getting option text from select
Is there a way to get the selected option's text from a select-one control? The form plugin returns the value, but I cannot seem to find a way to get the text.
[jQuery] plugin issues
I am working with jdMenu. It works great on FF, throws an "invalid argument" in IE. The example on the site (http://jdsharp.us/code/jQuery/plugins/jdMenu/) does not throw the error. So I figure it's an issue with the mix of libraries I am using. I would like to use the files packaged in the jdMenu zip, but the jQuery.js file it includes is packed so I can't add in the modifications I've made to my jQuery.js file, without which nothing works on my site (primarily the scope parameter for the ajax callback,
[jQuery] dependencies in ext
The tool that someone on the list developed recently regarding javascript dependencies...is it generic? Can it be run on the ext project to determine dependencies to reduce code footprint?
[jQuery] Anyone Good At Math?
I am building an image viewer/annotation tool using jQuery and Interface (sliders and draggables). The basic functions I've gotten working so far are: * A large image loads into a div container, with only a small masked area visible * The large image can be dragged around, much like Google Maps * The large image can be scaled up and down with a slider control * An annotation marker (image) can be dropped on top of the image * The marker can also be dragged independently, AND follows the larger image
[jQuery] jquery vs. ext (tonight)
I just want to express that tonight I gave extjs a serious attempt, struggled, switched to jQuery plugin alternatives, and succeeded very quickly. I am developing my own framework to manage the addition of modules into a larger "application", with my own objects for retrieving data by AJAX, and my own event system for tying those modules together. I tried to incorporate extjs elements, and just couldn't get it to work. I replaced extjs's pre-built widgets with jQuery's DOM manipulation functionality,
[jQuery] Looking For Programming Job?
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm
[jQuery] AJAX Problem
hi guys, i am trying to write a simple ajax code with $.ajax() function. however the Firebug plug-in in Firefox show this error: [Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no] in the IE it is working there is not any problem. my code is this: var txt = $.ajax({ url:"http://../../Posts.xml", type:"GET", dataType:"xml"
[jQuery] Body Browser Classes
<div>Feedback desired:</div> <div> </div> <div>Lately, I have been developing CSS and HTML for a deep Web 2.0 complex app. Usually, I avoid CSS hacks like the plague. But recently, I have had to resort to the Holly Hack or the StarHTML Hack. But then it occured to me that jQuery provides a better way. </div> <div> </div> <div>A simple plugin could be written (has this already been written?) that tags the BODY (or other node) with a "browser class" resulting in:</div> <div><body class="FF"> or
[jQuery] [Firefox Extension] jQuery Detect
A while ago Jason Levine suggested a firefox extension be made to detect if a website is using jQuery. I accepted that challenge and finally had some time to work on it. Find the link below and give me your feedback. Keep in mind this is still very much beta, there are lots of bugs I have already discovered, but please let me know if you find more, or if you have a feature request. jQuery Detect v0.2 http://www.sunsean.com/jquerydetect/ Bugs: Doesn't update when tabs are switched Doesn't update when
[jQuery] problems with the starterkit
Hi, I was playing with the starterkit: http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery I got stuck in the following section, couldn't make it work: $(document).ready(function() { // use this to reset a single form $("#reset").click(function() { $("#form").reset(); }); }); I modified the values of the form's fields and when I clicked on the Reset link, nothing happened, I tried it in Firefox (Linux and windows) and ie 7. I updated to the latest jquery.js and this time firebug says there
[jQuery] strange hover behavior...
Hello, I have this small animated menu I made. http://www.pcphd.com.br/teste.htm When I fly the mouse over a few elements, it's like jquery stacks all the movements I made and then animates each at a time. Is there a way to make the hover out function to run before the hover in function ends? Thanks, David
[jQuery] Overlib like funtionality with JQuery
Overlib is a JS library with lots of cool features for JS popups. http://www.bosrup.com/web/overlib/ I wonder if there is anything like this already built into JQuery or possibly in a plugin. Thanks.
[jQuery] blockui url exclude list?
hi list and mike, i'd like to use blockui together with an ajax form validator: http://www.joestump.net/content/source/jquery-verify/jquery-verify-0.0.1.html the problem is that every time the validator calls home (during typing) the form input field loses focus because blockui kicks in. obviously i'd like to disable blockui for these calls. can someone give me a hint on how to patch blockui so that it ignores all requests where the url matches a list of preconfigured patterns? i've glanced at the
[jQuery] Tabs created on the fly
I used to be able to create new tabs with the tabs plugin, but I've messed something up (or maybe there's something different in the new version). Anyway, here's the setup: <script type="text/javascript"> function createTab (myId, myText) { myId = myId || '4' ; myText = myText || "Four"; var myDivId = 'div-' + myId; var myAnchor = '#' + myDivId; // create tab and div w/ dom_creator plugin var myTab = $.LI({}, $.A({ href:myAnchor}, myText ) ); $('#tabContainer').append(myTab); var myDiv= $.DIV( {id:myDivId,
[jQuery] Traversing the dom selecting ever other dom
I was wondering how I can traverse through the dom and start at a div and then select every other div until i want it to stop so that I may add a class to it. Any Ideas? Thanks Tom
[jQuery] inserting a DIV in alphabetical order
Hi, I have a DIV (id = "classList") witih many smaller DIVs, each of class "student". The smaller DIV only contains text. If I want to add a new student DIV to the list, but add it in alphabetical order, is there a simple, tried and true jQuery way of doing this? Thanks, - Dave
Next Page