1,694 Topics

Member Avatar for
Member Avatar for thetwig

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(){ …

Member Avatar for LastMitch
0
281
Member Avatar for chr.s

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, …

Member Avatar for LastMitch
0
408
Member Avatar for rp91

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 …

Member Avatar for pixelsoul
0
238
Member Avatar for inheaven

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 …

Member Avatar for inheaven
0
5K
Member Avatar for subrata_ushasi

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 …

Member Avatar for LastMitch
0
164
Member Avatar for alfiechiong

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 :)

Member Avatar for alfiechiong
0
117
Member Avatar for thak123

`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 …

Member Avatar for LastMitch
0
194
Member Avatar for iamspix

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 …

Member Avatar for Airshow
0
291
Member Avatar for mr0277

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. …

Member Avatar for Troy III
-1
289
Member Avatar for mirchi.mike

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?

Member Avatar for pritaeas
0
45
Member Avatar for thetwig

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 …

Member Avatar for thetwig
0
319
Member Avatar for cgull

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 …

Member Avatar for LastMitch
0
5K
Member Avatar for silent lover

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( { …

Member Avatar for pixelsoul
0
335
Member Avatar for waqar100
Member Avatar for radhakrishna.p
0
70
Member Avatar for turpentyne

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 …

Member Avatar for turpentyne
0
347
Member Avatar for m.tompkinsnz

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, …

Member Avatar for LastMitch
0
223
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
663
Member Avatar for stevanity

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. …

Member Avatar for LastMitch
0
393
Member Avatar for PriteshP23

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()"/> &nbsp; <!-- 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"> …

Member Avatar for PriteshP23
0
312
Member Avatar for SMode55

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) …

Member Avatar for SMode55
0
199
Member Avatar for jeffcogswell

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 …

Member Avatar for lambing
0
472
Member Avatar for chr.s

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 …

Member Avatar for chr.s
1
348
Member Avatar for dalilice

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 …

Member Avatar for JorgeM
0
131
Member Avatar for Surfsup

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. …

Member Avatar for stbuchok
0
265
Member Avatar for bepese

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 …

Member Avatar for bepese
0
204
Member Avatar for Potato.Head

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, …

Member Avatar for LastMitch
0
210
Member Avatar for code_rum

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 …

Member Avatar for Troy III
0
383
Member Avatar for code_rum

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 …

Member Avatar for code_rum
0
157
Member Avatar for chr.s

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 …

Member Avatar for chr.s
0
293
Member Avatar for Dani

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 …

Member Avatar for Dani
0
432

The End.