1,694 Topics
|
|
The form submits even when there are validation errors. How do I disable the submit button when there are validation errors? Here is the .js file ,submitFu:function(){ _.validateFu(_.labels) if(!_.form.has('.'+_.invalidCl).length) $.ajax({ type: "POST", url:_.mailHandlerURL, data:{ name:_.getValFromLabel($('.name',_.form)), email:_.getValFromLabel($('.email',_.form)), phone:_.getValFromLabel($('.phone',_.form)), //fax:_.getValFromLabel($('.fax',_.form)), //state:_.getValFromLabel($('.state',_.form)), message:_.getValFromLabel($('.message',_.form)), owner_email:_.ownerEmail, stripHTML:_.stripHTML }, success: function(){ _.showFu() } }) }, showFu:function(){ … |
|
I'm making a full-screen slider with [maximage][1] & [cycle][2] that (so far) does the following: - Compares a given URL hash against each slide's ID and loads a match, if found, - Appends the first slide's ID to the address bar as a hash, if none is specified, - Replaces, … |
|
Hi, my problem is as follows. My aim is when a user clicks 'comment' for a post, a `<div>` appears with the form, which I can get working just fine. However as moving on with my development, now when a user clicks 'comment', parameters are passed to change the url … |
|
In my application, users often need to go to `+1` or `-1` day from the current selected date. For this, I want to make this process more quick by adding two image buttons for +1 and -1 operation on the right side and the left side respectively. I have tried … |
|
Hi all , I developed an website and the same trying to for mobile where clicking on menu will open menu items (to see menu items click using mounse and scroll) and clicking on menu items like "about us" , "services","solutions" etc will open the contents. I think it can … |
|
Is there anyone here has an solution for using js dom or jquery on web workers i have a jquery function that was needed to call inside the web worker but the problem is that the web worker doesnt recognize the jquery dom . thank you in advanced :) |
|
`enter code here`I am working on a jquery mobile html5 application.I have various pages with page id-"page1"... Onclick of button i want a parameter to be passed with the function on which the navigation will be taking place. for ex <input type="button" data-transition="fade" value="Next" onclick="checkIfValid('2');" data-icon="arrow-r" data-iconpos="right"> so it redirects … |
|
I have these sorting algorithms in my application, and I want to keep track the affected values, or the values that swapped during the sorting process. I want to highlight them. I have solved this issue for bubble sort and selection sort, but somehow I can't get it work with … |
|
I have a control wrapped in an UpdatePanel that is part of an iframe. The control grows on user's selection and images appear. Correspondingly I have to extend the iframe's height. The problem is I get the iframe's height before appearing images are loaded, hence I get the content cutoff. … |
|
An element is removed from the html file with the following code, $("#sample").remove(); When view the source code, the removed element still appear in the source code. Whether it is possible to remove the element from the source code? |
|
I bought a template online and i'm trying to develop a website and I'm stuck on the contact form. I can't seem to get it to submit. When I click submit it just remains static, but i'd like to get it to run the action- that is go to the … |
|
Hello good people of Daniweb :) I am developing a site with codeigniter 1.2.2 and the latest version of bootstrap. I am calling a modal window but the X and Close buttons don't close the window. Tried alerting when clicking a button and I do get the alert but the … |
|
i create 2 sliders within one page with code : <script type="text/javascript" src="js/jquery.easing.js"></script> <script type="text/javascript"> var $jq132 = $.noConflict(); </script> <script type="text/javascript" src="js/script.js"></script> <script type="text/javascript"> var $ = jQuery.noConflict(); $(document).ready( function($){ // buttons for next and previous item var buttons = { previous:$('#jslidernews1 .button-next') , next:$('#jslidernews1 .button-previous') }; $('#jslidernews1').lofJSidernews( { … |
|
jquery can work in place of ajax,tell me the answer how? someone asked me |
|
I'm a bit new with javascript/jquery. I've taken over a page design with images and links that animate on rollovers. I've almost got things working, but there's one last glitch. The mouseover effects of an image growing/shrinking work fine when the page is first loaded. But if the user clicks … |
|
Hi, Doing a bit of research at the moment on how to structure my web App. So far I've decided on using PhoneGap with jQueryMobile client-side, which will request and update information in a database hosted on a remote server running php and mysql. From the tutorials I've seen online, … |
|
I want to implement simple file upload with progress I like the services provides by [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload) I tested the example provided with script <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>jQuery File Upload Example</title> <style> .bar { height: 18px; background-image: url('img/progressbar.gif'); } </style> </head> <body> <input type="text" name="textfield" /> title <input … |
|
I have been developing a rails app for a week now. I use jquery-rails gem to use jQuery and everything was working fine. But today, when I started the development server, jQuery just wasn't loading. The console gave the error `jQuery not defined` and `$ not defined` and so forth. … |
|
It is not working AFTER refresh anymore: // php <div style="padding-left:280px;"> <!-- Add --> <input type="button" class="btnAjouterConfigure" id="add" value="Ajouter" style="text-decoration:none; width:100px; height:41px; line-height:34px; font-weight:bold;" onclick="addnature()"/> <!-- Delete --> <input type="button" class="btnSupprimerConfigure" id="delete" value="Supprimer" style="text-decoration:none; width:100px; height:41px; line-height:34px; font-weight:bold;" onSubmit="return deleteRadioButton();"> <div id="fooBar"></div> </div> <br /> <div style="height:auto; padding-left:280px;" id="mainRadio"> … |
|
Hello, I have a function to insert a new user into the database and it returns an empty data from the page I use to post it with."Undefined" actually... Here is the code: //insert new user into database $("#insert_new_btn").live('click', function(){ var user_username = $("#insert_new_user").val; $.ajax({ type: "POST", url:"insert_nw_usr_script.php", data:{insert_new_usr:user_username}, success:function(insert_a_user) … |
|
A minor update to the 1.6 version of jQuery was just released today. After a big outcry of version 1.6's changes to the way properties work, the jQuery team quickly released version 1.6.1 to make the new techniques more compatible with the older functionality, hopefully preventing sites from breaking. The … |
|
Hi, I'm after some thoughts and opinions regarding the navigation/behaviour of a portion of a site I'm working on. The site is a shop, which is built with the Big Cartel framework, and is my first attempt at using more than just a couple of lines of javascript - or … |
|
Hello guys, Don't know if this is the related thread to post this sort of question so i ask a mod to move it if necesary. I have some custom Like buttons on my website for twitter, facebook and Gplus (but think that is the same thing) and i want … |
|
I have this simple slideshow script and just need to make the divs fade in/out when the user clicks 'prev' and 'next' arrow. Currently there is no effect atall which looks a bit harsh. I'm sure this can't be too difficult - however, I'm new to this stuff - Thanks. … |
|
Hi everybody, I have this really little piece of code wich I want to implement inside wordpress: http://jsfiddle.net/YPAy6/9/ I simply need how or where to put the "function" and how to call it from a post in wordpress. Any idea? really thanks! PD: I'm loading all scripts from google's cdn … |
|
Hi, I'm have experience in Javascript but not in the UI design/CSS, so maybe what I need to do is very simple, but because of my knowledge is complicated for me. I need to create a 'component', that has 2 or 3 buttons together and they behave like radio buttons, … |
|
Hi, I am working on a tooltip which shows the content in tooltip if present. But the code I am using shows the empty tooltip even the content returned is empty. I don't want to show tooltip or qtip when the content is empty.. :( Here's my code HTML echo … |
|
Hi, I am struggling with this..I have multiple images and data with same class. As I click on a link with class single_image it should pop up the corresponding div. but its not working every time i click it shows me the same image. I have tried using $("a.single_image").each( function … |
|
Hi, I'm using the big cartel framework to build a site, and am trying to make an AJAX call - currently without success. My code is as follows: jQ('body').on('click','#closeDetails',function(){ // If necessary condition met if (jQ('#productDetails').attr('class') != undefined){ // Store appropriate category var destCategory = jQ('#productDetails').attr('class').toLowerCase(); // Attempt to alert … |
|
I have an API that supports both JSON and JSONP. Obviously, being a data provider, I want the people who request my data to cache it. However, jQuery's $.ajax() function says the following about their caching feature: >cache (default: true, false for dataType 'script' and 'jsonp') Type: Boolean If set … |
The End.