[jQuery] validation plugin's date method doesn't like mm-dd-yyyy formatted dates
I'm using this validation plugin http://bassistance.de/jquery-plugins/jquery-plugin-validation/ and it is great. However, it rejects dates like 07-14-2009 as invalid. Is there some way to add a list of valid formats? If not, should I write my own method to match that particlar format?
scope ... createDelegate
I'm having a problem with scope. Below is the code I am using, and I get the following error: TypeError: Error #2007: Parameter listener must be non-null. With ExtJS I could do this in the init function and the scope would be correct. init: function() { window.nativeWindow.addEventListener(air.Event.CLOSING, this.windowClosingHandler.createDelegate(this)); this.prefsFile = air.File.applicationStorageDirectory; this.prefsFile = this.prefsFile.resolvePath("preferences.xml"); this.readXML();
[jQuery] [validate] remote function
hi iam trying to validate the recaptcha over the remote function of the "validate" plugin and the basic function works so far. now i want to call the reload function of the recaptcha object if the captcha is not correct. i am new to js and jquery maybe someone could help me how to call the function. here the code how i check the captcha .... jQuery("#recaptcha_response_field").rules("add", { required: true, remote: { type:"POST", url:'<?php echo get_option('siteurl').'/wp-admin/admin-ajax.php'?
[jQuery] [validate] remote function
hi iam trying to validate the recaptcha over the remote function of the "validate" plugin and the basic function works so far. now i want to call the reload function of the recaptcha object if the captcha is not correct. i am new to js and jquery maybe someone could help me how to call the function. here the code how i check the captcha .... jQuery("#recaptcha_response_field").rules("add", { required: true, remote: { type:"POST", url:'<?php echo get_option('siteurl').'/wp-admin/admin-ajax.php'?
[jQuery] unsubscribe
[jQuery] Validate - How do I $.ajax without using the form plugin?
I am trying to figure out how to submit the form using the $.ajax call. How do I make sure my form is valid when submitting via a click event on a button? do i put it in the submitHandler of the validation plugin? submitHandler: function(form) { $('mybutton').click(function () { $.ajax ({ //stuff in here? }) } } I want to make the form is valid when I click to submit, and do an ajax form submission. Hopefully without yet another plugin. Thanks.
How to link to a specific item in an Accordion
Hi everyone, I am new to jQuery and I am trying to open a specific item in an accordion based on the URL. For example, http://www.example.com/accordion.php#id32 would open the matching item (with ID 32) in the accordion. Here are the settings for my Accordion: $("#accordion").accordion({ autoHeight: false, collapsible: true, navigation: true, active: false }); Then, for each item: <div id="accordion"> <h3><a href="#id32">Example ID 32</a></h3> <div>
[jQuery] Adding items to the json result of the autocomplete plugin
I am using the tokenizing autocomplete text entry which expects the search result in json format I want to know if it's possible to add items to the json collection using jquery, if I have for example var results = [{"id":"1","name":"Abb"}, {"id":"2","name":"Abbas"}, {"id":"3","name":"Abd"}, {"id":"4","name":"Abdel"}] and function xxx(id, value) { // add id/value pair to results } How can I do this? Thanks in advance
[jQuery] getJSon loop through variable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000066"> Following getJSON works fine but I need to replace "presentations with a variable "getSlides" tried a lot of different ways with a variety of errors no matter what I've treid var getSlides = $(this).attr("href"); $.getJSON("photoList.js", function(slides){ $.each(slides.<font color="#cc0000">presentations,</font> function(i,item){ $("<img/>").attr("src",
[jQuery] jQuery syntax question
So it seems like everyday I learn a new way to code the same thing. What I am trying to do is add some code after a paragraph depending on how many paragraphs are in the content. I'm not to worried about logic right now just syntax. Here is my code: My questions is regarding this syntax: $("p", "body#seniors #text") [2].append(something); Shouldn't that append something after the 3rd paragraph in the #text div (if it exists)? If I have the wrong syntax, how would I access the $("p", "body#seniors
[jQuery] Multiple Jquery on one page
Hi Everyone, Many time i am getting one problem with Jquery when i am using more then one jquery plugin on same page then only one plugin works which will be on top. I guess few variables mixing and disturbing to each other. I just want to know is there any way to control it? Advance thanks for help.
[jQuery] IE and div height
I have a problem whereby on IE8 (also 6) the jQuery width/height on a div is wrong. I have the w/h set through a style. This works correctly: div.style.height.split('px')[0] While jQuery(div).height does not It is worth noting that IE returns the wrong value for div.height Should I log a bug or is this meant to be like this (since I'm guessing the error lies with IE)? Ranadave
[jQuery] JQuery Editor
Well.. I've an idea.. what about: make editor for JQuery... like an Flash. Flash + ActionScript = HTML + JQuery.. or something like this :D
[jQuery] AUTOCOMPLETE
Hi, I wanted a dropdown as soon as I place my cursor in the input box (local values). I tried putting minChars as 0. It didn't seem to have much effect. I made the following change in the autocomplete code .click(function() { // show select when clicking in a focused field if ( hasFocus++ > 0 && !select.visible() ) { /// I have changed it to > 0 instead of 1. And Also I wanted to have multiple values. But after the first value in the input box the drop down box wouldn't appear on
[jQuery] .ajax post to .net page
Hi All, Is there a way to post from a .net page with server form controls using the jQuery .ajax method? The .net page is expecting the server contols so I'm not sure how to handle it so when I serialize() the form it doesn't know what to do with it. Any help would be appreciated. Thank you.
[jQuery] Problem accessing new elements inserted into the dom
I have a php order form that uses Ajax that inserts some hidden form elements into the current page. I can see the hidden form elements when I look using Firebug but cannot access the new elements within jQuery functions. I know if it was an event I wanted to attach to on any new elements I could use .live() but I dont want to attach to an event, I just want to access the value of these new form elements. Should the value of these new form elements be accessible in the current scope? So I'm using:
[jQuery] (validate) Variable form and validation active fields
Hello List, I hope this is the right place for my question. I have a working form and all iss great using this jQuery Form Validation PlugIn from brassistance. Now I got in trouble by having a Form which will get extended by user inputs. To explan in detail: I have a Form with static fields and so on. But then if the User selects in the form the amount of Persons, I append Name and Surename Text Fileds to the static form and give the form fileds dynamically generated names. I now have the problem
<ul><li> horiz-drop-down menu will only work lef
I am working with a drop down menu inspired by Scott Darby's QuickTree code (http://scottdarby.com/) but I've flipped it to become a horizontal menu with sub menus that are also horizontal and taking up the full width of the page. When you click on an active element the corresponding sub menu slides down as its is supposed to. This all works fine as long as you click the links left to right and don't try to go back. It looks like one sub menu is overlapping the other and then not disappearing afterward.
how to get a link to submit form with other script attached.
hi i am very new to jquery (and to be honest, not a whiz with javascript either). i am trying to submit a form through a link. the form is generated through my shopping cart. the form has a submit buttion with an onsubmit="return check_add_to_cart(this, false)" attribute for validation. the function resides in an externally linked .js file. that all works fine. what i want to do is on the same page have a link that triggers the form submission. I am using this code: $("a.addcart").click(function
Help needed with hover
Some background first. I am a jquery and javascript newbie. I have been designing websites for five years but have somehow avoided using any javascript. I decided to start learning last Friday and have gotten a fairly decent way to realising that basic javascript is relatively similar to php... Jquery is something I have been looking at since this morning and is one of the first things I've found genuine uses for. The first of these is trying to get a little description to appear next to links when
[jQuery] validate plugin only checking first required input
the validate plugin at the form at the below URL is validating as true as long as the first required input is valid even though subsequent required fields are invalid. It even gives the invalid class to all fields correctly but the submitHandler function is triggered anyway. I have an alert trigger when the form successfully submits and a little more output for firebug if you want it. Can anyone see anything wrong with the source code? http://fpif.ips-dc.org/pressroom Thanks!
problem using get [SOLVED]
I can't seem to make $.get work with web addresses For example something like $.get("local.html", function(page) { alert("success !!!"); }); works, the alert appears. but I try something like $.get("http://www.somewebsite", function(page) { alert("success !!!"); }); it doesn't work. Can anyone please explain why? Thanks
[jQuery] $.post-ing data brackets as first character of form value adds semi-colon to input name
When I $.post() the values of a form, if one of the values start with any of "()[]{}", then the associated form element name has a semi- colon appended to it when I finally extract the POST data in my PHP script. The Javascript: var formValues = $("#formName").serialize(); alert( formValues ); $.post( "something.php", { "someStuff" : "foobar", "formValues" : formValues }, function( data ) { ... } ); The text displayed in the alert dialog is "Number=(555)+555-1234"; this is the expected
[jQuery] IE doesn't seem to see classes created by other JQuery Script
Hi, I'll do my best to explain the following. I simply want to do this: $("myDiv p").find(".highlight:contains(someText)").doSomeStuff... where the class ".highlight" has just been appended by another script. It works great with FF but not with any of the IE navigators. I verified with the most simple script I could, like $ (".highlight").remove(); and obviously Firefox can detect this class created by JQuery but IE can't . Why ? Or where am I wrong ? Thanks in advance for your replies.
How to run a function
Hello, I tried to install Jquery Impromptu, but I don't understand how to call function whitch I need after user(admin) submit form. Sense on my page is this: You are admin and you want to delete photo(s).... You click on the icon with x sign (delete)... and the Window of Impromptu popups. There is a question if U realy want to delete the files. If Yes ("Ano") then submit "Ano" button and call the function to redirect (e.g. window.location="http://someplace.com"; ). This is the page of mine: http://web-design.rozhled.cz/t/try.htm
Help with fading in a background [SOLVED]
I'm am currently working on a website for a series of videos my friend and I are making. I want the page to load, and then once it is loaded, I want the image to fade in. I've played with the code for a while now and looked over the selectors documentation on jquery.com. The way it is now it fades everything in but the background! I simply want the page to load with a black background and then have a slow fade to the starfield. Please forgive me for not having everything I should in CSS yet. I've
can't hide <div> with FRAMESET elements
Hi All, I have some problems with hiding div elements. My page has frames and depending on some parameter it's supposed to show either 2 or 3 columns of frames. So, I placed the <FRAMESET> element inside <div>, but it doesn't work. For example, in the code below, I'mtrying to hide "div1", but it doesn't work (I always see div1 instead of div2).... Thanks for any help! <script type="text/javascript"> $(document).ready(function(){ $('div#div1').hide(); }); </script> <div id="div1"> <FRAMESET
[jQuery] Autocomplete issue
Hi Folks, i have an issue with the autocomplete focus... i am unable to focus on the selected value..the value is when i selected one value it is displaying the previous one..i tried somany ways but found no luck.. Please refer my code once: jquery.autocomplete.js : http://pastebin.com/f22965a21 jquery-1.2.6.min.js : http://pastebin.com/d1b52208c autocomplete.css : http://pastebin.com/f673adaae here is my html auto.html : http://pastebin.com/f729bfa7b what went wrong ...please correct me
extend individual elements
Is it possible to extend individual elements? For example, add a function, whatever(), to all images with: $("img").extend({ whatever: function(){ alert("it's an image!!!"); } }); and all divs with: $("div").extend({ whatever: function(){ alert("it's a div!!!1"); } }); This is a bad example, because you could always just extend jQuery and have the watever() function test for the type of element, but you get the idea... thanks
[jQuery] jEditable: Excel like Cursor and Tab navigation between editable elements
I've successfully implemented jEditable in table based pseudo spreadsheet. Now I need to add Excel like Cursor and Tab navigation between editable elements. I'm initializing jEditable with a function argument in order to carry out the ajax request on my own. In Order to successfully implement the navigation feature I would like the server side to return the target element - which I've already solved. My problem is wiring the the keyboard events to the jEditable generated textfield and submitting
[jQuery] send table with input elements to server
Hi all, I have a table of input elements which i create through a javascript widget. When i press submit i want to make an action and a part of the output should be the same unchanged tables with the values in it. I don't know how to accomplish it. At first i used the html() function, but it does not pass the table with the html values inserted as i would like. Has anyone an idea how to make it ? Thanks, David
Css selectors not working after .attr('class' 'newClass')
I am trying to make a block/unblock feature that when the block button is clicked unblocked appears and then the user can then be immediately unblocked. This is working fine if I block, manually fresh, hit unblock. Works wonderfully in fact. The problem arises when I try to unblock before doing a page refresh. It tries to block again instead of unblocking even though the class is set up as .unblockUser jQuery('.blockUser').click(function() { var id = (this.id); jQuery.getJSON("http://www.unravelthemusic.com/users/block/"
[ajax]importing data into imported data.
Hi all. I am still new to jQuery and I am trying to figure something out. I have this code: $(document).ready(function() { var data = new Array(); data[0] = 'data/home.html'; data[1] = 'data/portfolio.html'; data[2] = 'data/contact.html'; data[3] = 'data/child.html'; $('.content').hide(); $('ul#main li a').click(function() { //Bepaal positie van klik. var index = $('ul#main li a').index(this);
[jQuery] [validate] Decent Date Checking using the JQuery Validate Plugin?
Hi all, I've been using the fantastic validate plugin for a while now but I've always found the support for date validation sorely lacking as it really only checks that there are three numeric columns (i.e. nn/nn/ nnnn). See here for the reference to this in the documentation: http://docs.jquery.com/Plugins/Validation/Methods/date Does anyone know of a simple way / addition to have the validate plugin check to make sure a date is actually valid? Thanks! Bob
[jQuery] everthing works but has this jquery error
this.parentNode is null init()()jquery-1....2.min.js (line 12) init()()jquery-1....2.min.js (line 12) init()()jquery-1....2.min.js (line 12) (?)()()editInPl...jquery.js (line 40) F()()jquery-1....2.min.js (line 19) F()()jquery-1....2.min.js (line 19) F()()jquery-1....2.min.js (line 19) init()()jquery-1....2.min.js (line 12) c()jquery-1....2.min.js (line 19) F()()jquery-1....2.min.js (line 19) F()()jquery-1....2.min.js (line 19) [Break on this error] (function(){var l=this,g,y=l.jQuery,p=l.....each
[jQuery] Chaining $.append
Hi, I'm using the code to create DOM. But the append returns current element and not the one it has created. So after I create some elements via append (or similar) I have to query to obtain the element. Isn't there other way of doing it? Instead of this code : var domId = "prod-" + data.Id; $("#prods-list").append("<li id='" + domId + "'></li>"); $("#" + domId).text(data.Name); I would like to write (which is incorrect now): $("#prods-list").append("<li id='prod-" + data.Id + "'></li>").text (data.Name);
[jQuery] flashvars value attribute with flash plugin
Is there any way to encode the value of the flashvars VALUE attribute of the PARAM element with the standard jQuery Flash plugin? Basically I am trying to work something like the following into my jQuery flash code: <param name="flashvars" value="feed=api://www.flickr.com/? album=17896512589327889" />
[jQuery] $.support.colgroup ?
colgroup is useful in html table make-up, but firefox/opera/safari doesn't support it well, only IE follows the standard almostly. Since $.browser is deprecated in 1.3, maybe jquery should provide a colgoup support-testing function, including border, background, visibility, display css style testing.
[jQuery] document.ready - how to make sure all js is loaded?
Hi there, I was wondering if there is something like document.ready; to trigger after all the DOM+Js is loaded. document.ready is triggered when the DOM is ready, but the js might be still loading, i would like to trigger an event only after DOM along with all the JS is loaded. Any way to do this? Thanks Vru
[jQuery] Any expert on this???
If I use ajax to load a new page within a DIV called "test"... It seems that all the classes and ids that are loaded within that 'test' div does not work with my preloaded header jQuery functions. Do I also have to reload my header jQuery functions?
Next Page