[jQuery] Re[jQuery] move duplicate record in an Array
Hi guys, if got the following code which may insert duplicate record in an Array: var userContactArray = new Array(); var count = 0; $.each(item,function(j,item) { var usercontacts = { id:null, contactEmail:null, contactName:null, source:null }; usercontacts.id = item.id; usercontacts.contactEmail = item.contactEmail;
[jQuery] jtooltips tips only on class="toolTips"
Hello, I have installed jtooltips in Drupal. I was wondering if its possible to have the tool tips active on only titles that have a tooltips class? Right now, anything with a title uses jtooltips, I would like to only use jtooltips if I have added class="toolTips". Thanks for your help!
[jQuery] Validation Plugin Add Row Example
I am using the Validation plugin from http://jquery.bassistance.de/validate/demo which is a great plugin. I just found out after browsing the docs some more that it has the capability of dynamically adding a row of data. I would like to know how I can remove a row of data. After several attempts at creating a removeJoin() function, and a couple of hours of hacking it up, I decided to join the group. Here's the script if anyone can offer assistance: <html> <head> <title>Add Queries :: Add Joins</title>
[jQuery] jQ Validation display:none validation
Hi, I used the jQ validation plugin for this webpage - http://research.emedtv.com/idiopathic-pulmonary-fibrosis-research/idiopathic-pulmonary-fibrosis-clinical-study-2.html I love it! But we have dependent questions - see what happens when you click yes or no to the tobacco question. Those dependent questions are written in via JS from onclick events. I'd like to have those on the page but when I make them hidden and the user clicks submit the validator still tries to validate it. Solutions? Maybe
[jQuery] Immediate validation
Hello jQuery Team:) Sorry for banal question, but I have not found answet to it in the web. So, I have simple html form and I want to validate it using jQuery validation plugin. Everything is fine? but I want to change validation event. In documentaion it is said that, " By default, forms are validated on submit, triggered by the user clicking the submit button or pressing enter when a form input is focused (option onsubmit). In addition, once a field was highlighted as being invalid, it is validated
[jQuery] DWR + jQuery validation plugin
Hi, Please advise, how it is possible to integrate DWR (Direct Web Remoting http://getahead.org/dwr/) into JQuery validation? I need to validate if such username is already existed in database (ajax validation) I was trying to do it in this way: 1)create dwr function function isUsernameExisted(username){ var id = $j('#id').val(); DWRUserManager.isUsernameExisted(username, id, { callback:function(dataFromServer){ if(dataFromServer!="<c:out value="${SUCCESS_VALIDATION_MESSAGE}"
[jQuery] Appending URL and Session variables to redirect script
Hi, I'm pretty new to using Jquery and javascript and don't quite know how to do something pretty simple. I have the following script that I am trying to build that will load another page in the background when a link is clicked. However, I don't know the syntax to set the CompanyID and UserID variables. I've tried everything!!! The CompanyID should come from a URL variable e.g. www.mysite.com/mypage.asp?CompanyID=1064 The UserID will come from a session variable : Session("UserID") Can anyone help
[jQuery] No longer with Ext JS
Hi guys, As of yesterday, I am no longer with Ext JS. Ext is making some big changes organizationally, some of which I am not in agreement with. Hence, I've turned in my resignation, effective immediately. Many of the changes at Ext will be visible shortly and some will manifest themselves over time. Either way, their direction and decisions weren't in line with my views and I felt it was best to move on. The split is amicable and at the end of the day, is purely business. The good thing is that
[jQuery] Passing variables between two functions
Hi all, I've a newbie question about variable scope...essentially i've two anonimous function and i need to retrieve a variable generated into first function and use it in the second one. Here the basic code to get an idea of what i'm trying... var pointX ; $(".nav_slider").mousemove(function(e){ pointX = e.pageX ; // do some other stuff with pointX ... }); $(document).scroll(function () { var docH = $(window).height(); var docW = $(window).width(); docWcenter = docW / 2; //here i need again pointX
[jQuery] Passing variables between two function
Hi all, I've a newbie question about variable scope...essentially i've two anonimous function and i need to retrieve a variable generated into first function and use it in the second one. Here the basic code to get an idea of what i'm trying... var pointX ; $(".nav_slider").mousemove(function(e){ pointX = e.pageX ; // do some other stuff with pointX ... }); $(document).scroll(function () { var docH = $(window).height(); var docW = $(window).width(); docWcenter = docW / 2; //here i need again pointX
[jQuery] navigation with word based links instead of numbers - "jcarousel with external controls"
Hi All, I would like to change it so I can call frames within j carousel using word based links. By default, "jcarousel with external controls", calls frames using the text (numbers) within a link, for example... <div class="jcarousel-control"> <a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> </div> and assigns the number to each frame using the below function... jQuery('.jcarousel-control a').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
[jQuery] weird error in globalEval
In IE (but not in firefox) i suddenly got a 'fatal' error in globalEval; wrong argument passed in the last line, that says head.removeChild (script).. In order to get things working again, i've had to make a small workaround; globalEval: function( data ) { data = jQuery.trim( data ); if ( data ) { // Inspired by code by Andrea Giammarchi // <a href="http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html">http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html</a>
jquery cycle plugin in IE
The jquery cycle plugin I have incorporated into my website does not work for IE - works fine in FF and Safari - but the demo page where I downloaded the cycle program works fine in IE for me, so I know it's my stuff that is broken. Can anyone help me figure out what is wrong with my code below? My pictures spill out all over the page. I've tried differnt options instead of "fade" for the cycle plugin, but it still doesn't work. Here is my index.php: <script type="text/javascript" src="js/jquery-1.2.3.pack.js"></script>
[jQuery] Slow tabs
<span style="font-family: trebuchet ms,sans-serif;">We are using tabs on this page:</span><br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;"><a href="http://success.marketo.com/index.php">http://success.marketo.com/index.php</a></span><br style="font-family: trebuchet ms,sans-serif;"> <br style="font-family: trebuchet ms,sans-serif;"><span style="font-family: trebuchet ms,sans-serif;">There is a long delay (FF2) between click and the transition.
[jQuery] Links inside Sortables
I seem to be having trouble getting my posts to show up in the UI list. Please excuse this cross-posting. ====================================================================== I'm having an odd issue with links inside sortables. I have a simple demo here: http://scott.sauyet.com/issues/2008-04-12a/ The links inside the sortable don't work on a single left-click. I can right click and open them (here or in a new window or a new tab depending upon browser) or I can middle-click them and open in a
[jQuery] can't prototype co-exist with jquery
Hi I implemented jquery tab on a Magento site that uses prototype (not my choice but it comes with it). After spending hour getting my tabs work properly, I am dismay to find that it disables the lightbox and the image slider: http://74.52.59.43/index.php/bluetooth-accessories/jawbone-headset-black.html Magento uses a proxy.php file to handle all js files, and it's called from a xml file like so: <action method="addJs"><script>jquery/jquery-1.2.3.pack.js</script></ action> <action method="addJs"><script>jquery/ui.tabs.pack.js</script></
[jQuery] traversing tabs
Hi please help on this problem I have data coming fron DB, put to html page through while cycle (php), so have many ancor tag. When click one of them appear a tabs menu problem is: when click the tab it doesn't chance content using jquery.tabs.js :: Version: 2.7.4 code <script type="text/javascript"> jQuery.fn.fadeToggle = function(speed, easing, callback) { return this.animate({opacity: 'toggle'}, speed, easing, callback); }; $(function() { $('.tabs').hide(); $('.xfissa').bind('click', function()
[jQuery] How to use jFrame Plug-In
Hi, Trying to get the jFrame plug-in to work but unsure how to use it. (see: http://plugins.jquery.com/project/jframe) I have set-up the follow div, i.e: <div id="content" src="#"></div> and then make a call to: jQuery("#content").loadJFrame(returnURL); Have also included all necessary js libraries. The div loads successfully but I get a javascript error: Line: 200364044 Char: 3 Error: Object doesn't support this property or method Can someone please let me know what I have missed and please correct/
[jQuery] help with regex? converting plain text with line breaks to <ol> with <li>s
It's a bit off topic, perhaps, but using jQuery I want to get the contents of a plain text file, and convert each line to a list item in an ordered list. Being a designer, the regular expression syntax just stumps me... \n\r\??? Can anyone nudge me in the right direction? rolfsf
[jQuery] Cycle plugin not working in IE - (I probably screwed something up!)
Hey all, I've got the cycle plugin up and running in Firefox (mac/pc) and Safari/mac, but It's not running in IE7 or Opera/mac. I must have missed something. (I'm a css dev, but not great with js). Would you mind having a peek to see where I must have slipped up? http://aloestudios.com/projects/md/bh/ thank you!
[jQuery] corner plugin on Safari
Hello All. I've been using the jQuery corner plugin (version 1.92 (12/18/2007)) quite successfully. However with the latest versions of Safari (and Webkit) will render approximately 1 out of every 8-10 pageloads without rounded corners. I am unable to find a pattern here, and it seems largely random. I've attempted to set background colours for those elements as I've read elsewhere, but it doesn't seem to affect the problem. In hunting around, it seems I'm not the first to notice it. Has anyone encountered
[jQuery] drag error
If I drag one element then try and drag another before the first has reverted c has no properties is there a way to prevent this? code $(".doc").draggable({opacity: 0.7, revert:true, zIndex:100, containment:'#step4'});
[jQuery] Need jQuery plugin for artwork display
I'm looking for a jQuery extension to show off artwork. Maybe 10 to 100 paintings. Maybe more. There are so many jQuery extensions I need some help finding the needle in the haystack. Any recommendation appreciated. Is there anything that will perform album cover flipping like iTunes? Thanks, SC
[jQuery] Email is coming again...
Hi, all... I did begin to receive jQuery email again. I recently changed hosts for my email and the DNS change didn't get to Google for a couple of days and so my address was bouncing emails. So, they cut me off. I emailed the list owner and received an email from Google Groups with a link to click, and then began to receive email about an hour later. Just wanted to let everyone know the circumstances in case someone runs into something similar. Glad to see "jQuery" back in my subject line! :o) Rick
[jQuery] redefining a function bound to document.ready
I want to redefine a function that is being bound to document.ready by someone else. Actually, I'd prefer just to unbind the function, but the initial binding is in a file that I don't want to change, and uses this syntax: $(theFunction); I understand from http://dev.jquery.com/ticket/1311#comment:3 that this syntax is not supported for the 'unbind from document.ready' functionality that was added in 1.2.2. But I'm wondering if there is a way around this, for instance, to redefine the function using
[jQuery] learning jquery
what is the best way to learn jquery? quickly and easliy
[jQuery] How do I retrieve the HTML request parameter with-in jQuery ?
Hi, I need to retrieve the request parameter and perform some functions based on the value - any suggestions on what API to use to get at that param ? Thanks.
[jQuery] Ajax - synchronous ajax call timeout
Has anybody implemented a synchronous ajax call with a timeout. I cannot get the timeout to fire, instead the ui just locks up, I cannot really have this in a live environment, it would really hack a user off!!! I am trying to use the synchronous call to compliment a client side asp.net validator therefore I need to wait for the return value of the webmethod. Anyone got a good approach or solution. Thanks
[jQuery] Cycle plugin, start from last entry in container, rather than first
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=741464721-10042008><FONT face=Arial size=2>Does anyone know if this is possible?</FONT></SPAN></DIV> <DIV><SPAN class=741464721-10042008><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=741464721-10042008><FONT face=Arial size=2><div id="cycle"></FONT></SPAN></DIV>
[jQuery] blockUI
Hi all, I have to implement this scenario: in a web page all the stuff contained in the web page must be blocked and only the images should be visible. How do I create an overlay with jquery having glossy all the images and opaque the rest? thanks makkina
[jQuery] Draggable table layout sorter
Hi guys, I am creating a very simple data entry screen where a user can enter a block of numbers then position them in the right columns of a table. For example: Col A | Col B | Col C | Col D 5 | 3 | 12 | 14 9 | 4 | 7 | The first line is correct data but the second line needs picking up and dragging across one column because it is actually column A which is blank. I want the user to be able to pick up the row and move it so that I can then save it to a database. The bit I am struggling with is how
Click link to swap btw 2 background images
Hi there. I'm new to JQuery and wondered if the following is possible... I have a div with a background image and two links. When clicking the links I would like the a new background image to fade in replacing the current. Anyone have any ideas on how I could do this using JQuery/a plugin. Thanks a lot Tony Mead
[jQuery] some $.index() prob
Hello guys, recently I faced problem with index function, example in documentation works perfectly but it's slightly simple. When I try to use this function in more complexed way it's not working, here's what I'm trying to: $("#organize > ul").mousedown( function(e){ if($(e.target).is("img")){ var $li = $(e.target).parent(); var $index = $("#id > ul.tabs > li").index($li); $("#id > ul").tabs("close", $index); } }); this piece of code is for
[jQuery] weird jQuery bug, but solved
Hi, I am building an HTA (using IE6) that is using jQuery to write some html to a div. The html contains a script tag with content. What (as I understand by reading through the minified code) jQuery does, is filter the script tag, create one, add it to the head and remove it right after. That *should* work very well, but for some reason in an HTA this very last step fails: "head.removeChild(script);" I have no clue why this is, but I checked it like this: "alert(script.parentNode == head);" which
[jQuery] How to get a 'fresh' ui datepicker date?
Dear all, This is about the ui datepicker. I have an input field with a datepicker, using image as trigger. The field is not read only, user are allowed to input by keyboard. The problem is that when user type some invalid input like '333333' the $('#input').datepicker('getdate'), will still only get the last selected date. Is that any way to get the 'fresh' date? Any trigger I can call? I need it to fill in a date range using 'beforeShow' option.
[jQuery] IE6 removing </li> : bug?
Hi there I have noticed a very weird bug when using $.html() in IE6. For example I have: <div id="content"> paragraph <ul> <li>list item 1</li> <li>list item 2</li> <li>list item 3</li> </ul> </div> When I used $("#content").html() I get paragraph <ul> <li>list item 1 <li>list item 2 <li>list item 3 </ul> Other other browser is fine, problem is with IE6. Any suggestions?
[jQuery] Passing variables between two function
Hi all, I've a newbie question about variable scope...essentially i've two anonimous function and i need to retrieve a variable generated into first function and use it in the second one. Here the basic code to get an idea of what i'm trying... var pointX ; $(".nav_slider").mousemove(function(e){ pointX = e.pageX ; // do some other stuff with pointX ... }); $(document).scroll(function () { var docH = $(window).height(); var docW = $(window).width(); docWcenter = docW / 2; //here i need again pointX
[jQuery] Edit-In-Place with Form plugin
I have a page that uses the jquery form plugin (http://www.malsup.com/ jquery/form/) to dynamically submit the form and then display the submitted form on the same page. I use the edit-in-place pluging developed by (http://15daysofjquery.com/edit-in-place-with-ajax-using- jquery-javascript-library/15/). My problem is that I cannot edit in place the items submitted with the form plugin without refreshing the page. I did discover I could make the items clickable (turning into textarea's) by adding
[jQuery] ajax with ifmodified - handling of null in last modified
In my current application I was working with jquery ajax api with ifmodified enabled. This was working great for me and I was using 304s to my heart's content. In a particular case, the server side application was returning a Http code 200 but was not setting the Last- Modified header. Because of this, in firefox I found that jquery instead of taking it as a 200 as it is, it was treating it as a 304 and returning an error code of "notmodified". The returned XMLHttpRequest was ignored. When I debugged
[jQuery] "this" ?
'scuse me for the noob question here... i have statements like this: $(".highlight").removeClass; $("this:even").addClass("shaded"); And I don't think I'm using "this" or :even correctly; it doesn't work =) Googling has turned up some different ways that the "this" keyword is used, and I'm not sure what is right here. I'm just trying to remove a class from a bunch of elements and then apply a new class to even numbered elements. Any ideas? Again, sorry for the dumb question, but googling the word
Next Page