[jQuery] [validate] make credit card validator allow spaces
Is it possible to add support for spaces in the credit card validator?
[jQuery] Using noConflict with links
I am using this line: var $this = $(this), link = $this.attr('href'); However I have had to use jQuery.noConflict() How do I use jQuery() with this?
[jQuery] autocomplete doesn't trigger result when using autofill
Hi, I have the code below on my page. The bindBehaviours function is used as the page is loaded via an AJAX call in a jQuery UI Tab. I want the autocomplete to check the value is in the list and to add the engineerID to a hidden field based on the EngineerName selected in the autocomplete box. The EngineerID is returned with the Name from s_engineer_list.php. The code to set the EngineerID is not present below I just want to see the results working in the alerts before adding this bit of the code.
[jQuery] Cycle plugin using named id's
Is it possible to use named links/ids to show a particular div when using the pager function of the Cycle Plugin? Also, I am unable to get several of the effects to work, specifically any of the scroll effects (scrollLeft), turnLeft works. Currently testing using the code below. <script type="text/javascript"> $(function() { $('#slideshow').cycle({ fx: 'fade', speed: 'fast', timeout: 0, pager: '#nav', pagerAnchorBuilder: function(idx, slide) { // return sel string for existing anchor return '#nav
[jQuery] question about callbacks
hi mates, how do i implement the possibility to have a callback function in my plugin? Via eval()? jQuery.fn.setScrollableArea = function(modifier, callback){ jQuery('body').css({ overflow: 'hidden' }); return this.each(function(){ var offset = jQuery(this).offset(); var availableHeight = jQuery(window).height(); //alert("new height=" + availableHeight); modifier = (typeof modifier == 'undefined') ? 0 : modifier; var newHeight =
[jQuery] slideToggle() Doesn't Work For DIV Containing Images In IE7?
Hi Guys, I got a issue again with IE7. Apparently if my DIV contains an image and if I use slideToggle() on it, the sliding works but after it slidesDown() the image will just disappear. # Donation <div id="DonationMenu"> images/icons/paypal.png </div> ----- Lester Chan's Website - http://lesterchan.net -- View this message in context: http://www.nabble.com/slideToggle%28%29-Doesn%27t-Work-For-DIV-Containing-Images-In-IE7--tp18149747s27240p18149747.html Sent from the jQuery General Discussion mailing
[jQuery] slideToggle() Doesn't Work For DIV Containing Images In IE7?
Hi Guys, I got a issue again with IE7. Apparently if my DIV contains an image and if I use slideToggle() on it, the sliding works but after it slidesDown() the image will just disappear. # Donation <div id="DonationMenu"> images/icons/paypal.png </div> ----- Lester Chan's Website - http://lesterchan.net -- View this message in context: http://www.nabble.com/slideToggle%28%29-Doesn%27t-Work-For-DIV-Containing-Images-In-IE7--tp18149747s27240p18149747.html Sent from the jQuery General Discussion mailing
[jQuery] Safari 2.0.4 crashes with append, html
Hi, I try to inject some Html in a page using ajax(): ////////////////////////////////////// (function($) { /* * load the tab header * id: dom id to append content * currentTab: index of 'li' to mark as current * */ $.fn.loadTabbedHeader = function(o) { var defaults = { id: null, currentTab: 0 }; $.extend(defaults, o); $.ajax({ url: "../../dev/packages/received_files/html/ launchTabbedHeader.html",
[jQuery] Highlight Table Row with Animate
At the end of my Ajax request, I'd like to highlight a table row, so to speak. Why doesn't this work: id = 5 success: function(e){ $("#address"+id).css("background-color","#F9FFCF"); $("#address"+id).animate({backgroundColor:'#FFF'}, 800); } The first line will work, but the 2nd line does not. Any ideas?
[jQuery] Waiting for applet to be loaded
I've applet on my page and I would like to chain ready() (or do it otherwise) to wait for applet to be ready. Now page is considered ready when applet starts to load classes. And I end up having errors when my ready() code points to applet methods. I tried to google for solutions but I couldn't find single one.
[jQuery] Trouble getting .click() Tutorial code to work in FF3
This tutorial code works fine in Safari 3.1.1 and Opera 9.5.0 but is failing in FireFox 3.0. These are all Mac OS X versions. In the case of FF3 when you click the link jquery.com is loaded. The code which adds the test class to the a element does work in FF3. <html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(function(){ $("a").click(function(){ event.preventDefault(); $(this).hide("slow"); }); $("a").addClass("test"); }); </script> <style
[jQuery] Multiple Select option.. Selecting and Unselecting
Hi have a form as follows as follows <form ....> <select name='whatever'> <option....> </option> <select name='meetevents' multiple="multiple"> <option value='1'>Team A</option> <option value='2'>Team B</option> </select> <div class='hideme'> <input name='1_a' type='text'/> </div> <div class='hideme'> <input name='2_a' type='text'> </div> </form> Initially when the page is loaded, both the divs are hidden. I want the user to select one or more of the options from the select 'meetevents', and depending
[jQuery] JQuery + ASP .NET Issue
Hello all I am new at JQuery. But, I have to say it is so kool to use. I try to add the JQuery validate to my C# Page. code as following: I copy most of code from http://docs.jquery.com/Plugins/Validation/Methods/email#toptions <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Untitled Page</title> <script language=javascript src=jquery.js></script> <script language=javascript src=jquery.validate.js></script> <script type="text/javascript"> jQuery.validator.setDefaults({ debug:
[jQuery] Loading html into divs that include JS
I'm developing a site, and just started learning jQuery. I'm trying to load html from my server (from ASP scripts on the server), and some contain script blocks. These little scripts display ads, widgets and such. I can put the HTML into the divs, that works great using the load function, but the scripts don't execute. When I was first looking at jQuery, I seem to remember seeing something about adding to the DOM. But I can't seem to find that now. I'm loading the divs so I don't have to reload the
[jQuery] bugs
I new to jquery. my first srcipt is a tab browsing galley for images. this script works fine expect for certain mysterious bug: in firefox sometimes, very rarely, image resize doesn't get executed on first load. upon refresh it works. in safari it loads fine first time but upon refresh image resize and positioning gets messed up. I close the browser window and open a new one load the page and it looks fine. in IE6, it just gives up on image resize. it sets the first 2-3 images correctly and then
[jQuery] Combination of several filters
Hi All, Here is a simple code: var cl = $j("input[class='inputbox'][value='']").parent().parent().filter("tr[class^='comdebt'][class!='comdebt1 specify1'][class!='comdebt2 specify2'][class!='comdebt3 specify3']").attr('class'); as you can see I need to deselect tr with classes ended with "specify1", "specify2" etc. (the code does not look nice) How can I deselect classes ended with some names? it is clear how to SELECT those, but not opposite... I tried adding .not("tr[class*='specify']") but it
[jQuery] Combination of several filters
Hi All, Here is a simple code: var cl = $j("input[class='inputbox'][value='']").parent().parent().filter("tr[class^='comdebt'][class!='comdebt1 specify1'][class!='comdebt2 specify2'][class!='comdebt3 specify3']").attr('class'); as you can see I need to deselect tr with classes ended with "specify1", "specify2" etc. (the code does not look nice) How can I deselect classes ended with some names? it is clear how to SELECT those, but not opposite... I tried adding .not("tr[class*='specify']") but it
[jQuery] Problems with jQuery click functions embedded in AjaxSubmit Form Results
Hi, I have a page which shows data for the next 5 weekdays. It has two buttons which submit via JQuery AjaxSubmit to move the page back and forward days. This works fine. However, the details for each day can be collapsed via a button that is in the results for each day, i.e. name1 [+] day1 day2 day3 day4 day5 blah blah name2 [+] day1 day2 day3 day4 day5 blah blah were [+] is the expand/collapse image. This works on the first display of the page, i.e. before the ajaxform has been submitted at all.
[jQuery] tableEditor plugin - add new row - using in an iframe gives error
I'm trying to use the tableEditor plugin to add a new row to my table (don't need to edit current data, just add new rows and save to mysql db). I've got my table loading in an iframe, but I'm getting the error that default.Table[0] has no data. The user clicks on a link which loads the data from a mysql db into the iframe - this works ok. Then I want to the user to be able to click a button, and have an empty row open which they can fill in and press save. The data will then be saved to a mysql
[jQuery] Patch to allow exclusion of blocked elements
I'm using blockUI to show a tooltip generated by another jquery plugin and I'm having problem with the links that are inside it. I've patched blockUI to accept an selector or a jquery object to exclude those from being blocked: Index: jquery.blockUI.js =================================================================== --- jquery.blockUI.js (revision 456) +++ jquery.blockUI.js (working copy) @@ -202,6 +202,8 @@ boxCallback: null, pageBlock: null, pageBlockEls: [], + // Selector that should
[jQuery] getJSON callback not executing
Hi, I have a PHP script that returns a JSON object with one property and one value. If I use the PHP file on my local web server the following code works: $.getJSON("myphpfile.php", callback); function callback(data) { alert(data.prop); } This produces the alert which contains the correct data However, if I use the PHP file on a remote server, the above code generates an error saying 'Permission denied to call method XMLHttpRequest.open' I tried changing the code to: $.getJSON("http://mydomain/myphpfile.php?jsoncallback=?",
[jQuery] SproutCore vs jQuery? Are there any comparisons out there?
<!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.16674" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=687430315-17062008><FONT face=Arial size=2>I'm looking for comparisons between the newly popular JS library SproutCore and our own favorite, jQuery.</FONT></SPAN></DIV> <DIV><SPAN class=687430315-17062008><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=687430315-17062008><FONT
[jQuery] [autocomplete] possible bug when using jquery.autocomplete.min.js
When i replace jquery.autocomplete.js include script with jquery.autocomplete.min.js version I get this errors: missing ; before statement http://localhost/admin/js/autocomplete/jquery.autocomplete.min.js Line 15 ; before statement [Break on this error] ment.hide();listItems&&listItems.removeC...| options.selectFirst&&listItems[0]);},sh I guess minified version is not correctly processed. Can anyone confirme this. btw I'm using 1.0.1 version.
[jQuery] [validate] Validation Plugin issue when using TinyMCE
Hello, I have the following rules: $("#New").validate({ errorClass: "Error", errorElement: "label", rules: {Answer: {required: true}}, }); Applied to text area: <label for="Answer" class="Required">Resposta</label> <textarea name="Answer" rows="10" cols="20" id="Answer"></ textarea> This works fine. The error labels shows after the TextArea. The moment I use TinyMCE (http://tinymce.moxiecode.com/) to make the Text Area an HTML WYSIWYG editor I get a problem: The error label shows before the text
[jQuery] No slideUp() Effect In IE7 Only
Hi All, I am using this line of code: jQuery("#" + previous_welcome_icon).slideUp("normal", function () { jQuery("#" + icon).slideDown("normal"); }); To archive the slideUp and slideDown effect. You can see it live in action in http://lesterchan.net/ by clicking on any of the 6 horizontal icons you see in the welcome box. I tested it with FF3, Opera 9.5, Safari for Windows and it all works fine. It will slide up and then the new content will slide down. Only in IE7 the slideUp will instead disappear
[jQuery] Cycle Plugin - how to animate/transition of the pager nav
I'm using jQuery with the pager and pagerAnchorBuilder functionality to generate the navigation into an ordered list. My slides (#slides) are fading in and out beautifully, but I'd also like to add transitions to the pager nav (#navSlides) as well. For this particular project, the slides themselves have a large image and some text, but I'm pulling that text out of the slide and putting it into the corresponding slide nav item. I'd like the active nav item to grow in height/width in an animated way
[jQuery] How do I find and replace HTML comments?
Hello, I have a HTML page and I've included a HTML comment above my <title> tag which says: <!-- this is my comment {2008} --> <title>the title of my page</title> everytime the page is loaded I want to use jQuery to insert the current year in place of 2008, so if some one views the page next year then the jQuery script will update the comment to read: <!-- this is my comment {2009} --> <title>the title of my page</title> How do I do this in jQuery, I'm new to the library and can't seem to find an
[jQuery] validation of a table cell value
Hi, I am trying to attach validation to a table cell. I am using onchange event to validate the cell value. Instead of attaching the event to each table cell, is there a way to attach the event at the table level? This will improve the performance of the page. or if there is any other way to do this, please let me know, Thanks, sridhar.
[jQuery] BlockUI not working properly in IE
BlockUI doesn't want to load correctly in IE. The JQuery routine I'm running contains an Ajax call that takes a while. I call .blockUI before calling a synchronous Ajax call and .unblockUI afterwards. It works as expected in FF but in IE (both 6 and 7) the screen freezes until the Ajax call completes then shows the BlockUI message for a brief second. I'm using JQuery 1.2.6 and BlockUI 2.0 Here is the basic gist of my code $.blockUI({message: '<b>Compiling data for your report</b><br/
[jQuery] [validate] Validation is not working as expected. Input value deleted!
Hello, I am trying to validate and mask a text box that should contain a DateTime in the following format: yyyy-mm-dd hh:mm:ss The validation is not working as expected. The problem is: In a presence of a valid data I deleted a small part of it (ss). The mask is revealed for this part. If after deleting a part of the date/time I change the focus to another input or submit the form I get: 1. A message saying the date/time is invalid (This is expected) 2. The entire content of the input disappears.
[jQuery] do validation when value changes in a table cell
Hi, I am trying to attach validation to a table cell. I am using onchange event to validate the cell value. Instead of attaching the event to each table cell, is there a way to attach the event at the table level? This will improve the performance of the page. or if there is any other way to do this, please let me know, Thanks, sridhar.
[jQuery] Has anyone been able to perform Hover-Grouping?
I am stuck trying to create a hover for two separate TD elements like so... $('td.add, td.dropdown').hoverIntent( ) The problem is that when I hover out of TD.add and into TD.dropdown, jQuery interprets this as HoverOUT. I want it to still be HoverOVER if I move my cursor into the other area outlined by the Selector. Anybody come across a solution to this before?
[jQuery] Different between this and $(this)
Hi jQueries; what is the different between this and $(this) ?? I try the follow lines $("#form_zuw input[readonly]").each(function() { this.addClass("input_readonly"); }); like http://jquery.bassistance.de/jquery-getting-started.html $(document).ready(function() { // use this to reset several forms at once $("#reset").click(function() { $("form").each(function() { this.reset(); }); }); }); and Firebug say "addClass is not a Function"...??? and this is running
[jQuery] hide() and slideDown() question
Hi All, Essentially what I'm trying to do is insert some new html after a specific element. What I would like to do is have the new element appear using the slideDown() function. I tried to hide it at first so all the user sees is the slideDown() but it brielfy shows the element, then hides it, then does the slideDown(). I'm sure i'm using the syntax incorrectly, can anyone point me to my error? Thanks! Code: $(newHTML).insertAfter($(element).parent()).hide("slow",function(){ loadCMX(); //essentially
[jQuery] [Plugin Selectbox] : How To Access Passed Parameter
I'm using the Selectbox Plugin to populate a select box with a json string passed from a php page. I'd like to pass a parameter to the php page from the plugin call. How is this done? I tried doing $ ("#myselect").ajaxAddOption("myoptions.php", {"$code" : "007"}); and then in myoptions.php, attempting to access $code. Any suggestions?
[jQuery] jQuery test suite and jsUnit compatibility
Hi all, On the Fluid Project, we have been using Edward Hieatt's jsUnit (http://www.jsunit.net/ ) for unit testing all of our code. A number of problems--including the inability to use Firebug to debug failing tests--caused us to look elsewhere for a less intrusive JavaScript testing framework. The jQuery testing suite is great! I've ported all of my tests over to it, and have been really happy with the results. Along with this, I've made some simple extensions to the jQuery testing suite (which
[jQuery] Duplicate GridViews in jQuery tabs
Hi, I work with asp.net and jquery. I would like to have the same GridView displayed in many tabs, and only changing ObjectDataSource parameters so the data which is displayed will change. How can I do it without duplicating the GridView? Thanks for any help
[jQuery] Trying to use jQuery and lightview on the same page
I am trying to use lightview and jQuery on the same page (doing different things). However the second I added the jQuery.js file to my headers my lightview broke with this error: "uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIDOMXPathEvaluator.evaluate]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://cgp.pezmc.com/includes/js/prototype.js :: anonymous :: line 1" data: no]" Now just the jQuery effects work
[jQuery] jNice, dropdown menus (jd_menu_vertical), and IE
Running into issues using jNice to style form elements. The normal iFrame hack for IE doesn't work to get the drop-down menu over top of the selects. I disable jNice and it works, turn it back on and nothing. Example : http://client.grcmc.org/wip/grcvb/events.php
[jQuery] ie bug ?????
Hi Everyone, could anyone explain why this gives me an error on ie6. I have the function below in my hilight plugin $.fn.hilight.format = { default: function(txt){ return '<strong>'+txt+'</strong>'; } }; ie6 gives me "Expected identifier,string or number" statement as the error message. Also it seems to be pointing to the return statement. Thank you -- View this message in context: http://www.nabble.com/ie-bug-------tp18139144s27240p18139144.html Sent from the jQuery General Discussion mailing list
Next Page