15,121 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
308
Member Avatar for Yarra

So what is going on is. For some reason if I just invoker "render();" the function does not run. But when I put it under the main(); function, and then invoke the main function under a "setInterval()" method then everythig works. Why is this? // Draw everything var render = …

Member Avatar for Airshow
0
129
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
409
Member Avatar for ravindhra5a3

this is my toc.ncx file <?xml version="1.0" encoding="UTF-8"?> <ncx xmlns="http://www.daisy.org/z3986/2005/ncx/" version="2005-1" xml:lang="en"> <head xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"> <meta name="dtb:uid" content="http://www.snee.com/epub/pg23436"/> <meta name="dtb:depth" content="1"/> <meta name="dtb:totalPageCount" content="0"/> <meta name="dtb:maxPageNumber" content="0"/> </head> <docTitle xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"> <text>Aladdin or The Wonderful Lamp</text> </docTitle> <navMap xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"> <navPoint id="navpoint-1" playOrder="1"> <navLabel> <text>Aladdin or The Wonderful Lamp</text> </navLabel> <content src="23436-h.htm"/> </navPoint> …

Member Avatar for LastMitch
0
223
Member Avatar for bals
Member Avatar for Violet_82

Hi chaps, I am having a little problem. Given the following snippet: html <div id="carousel"> </div> css #carousel{ border:1px solid magenta; width:600px; height:258px; background: url('sprite.png') no-repeat 0 0; position:absolute; left:0; top:28%; } jquery $(document).ready(function(){ function scroll(){ $("#carousel").animate({ backgroundPosition:'-600px'}, 500); } setInterval(function(){scroll()},2000); }); I am trying to run scroll() forever to …

Member Avatar for GliderPilot
0
333
Member Avatar for GlenRogers

I dont even know if this is an ajax problem, but maybe someone can help me!! I have a menu php file that containd-s categories of products, some of these categories have subcategories. I have it working that when you click a category then it shows all the products for …

Member Avatar for GlenRogers
0
135
Member Avatar for asif49

Basically what I want to do is to be able to detect when the particular page loads in some data dynamically. This needs to be general as the script will run across a lot of websites whose js content or other content/configuration I am unaware of. My intention is that …

Member Avatar for asif49
0
132
Member Avatar for turpentyne

I created this to make an div containing an intro dissappear after so many milliseconds. It also has a 'skip intro' link at the bottom. Everything works fine, except, the first function seems to fire even after somebody has skipped the intro. So there's a quick flicker as the div …

Member Avatar for LastMitch
0
116
Member Avatar for paulc79

I'm having problem with the homepage calendar. Here is an link - [http://clontarf.girlsacademy.com.au/](http://clontarf.girlsacademy.com.au) What I what to do is - When the user clicks the date on the calendar, the page will go to the events page (go to news/events tab, scroll down to see the heading …

Member Avatar for pixelsoul
0
184
Member Avatar for turpentyne

I've got a bit of javascript that changes the background image of a div on hover. Then, when they click on a link, the page rearranges, and the clicked menu item changes background image to show which section they're on. (the page never reloads). Unfortunately, after they click, the hover …

Member Avatar for pixelsoul
0
418
Member Avatar for milkman93

Hey guys, I'm trying to take xml code and present it to the client via html. Creating the xml file was the easy part, the part I'm having an issue with the javascript code. Here is the xml code: <staff> <member> <name>Joe Gerilo</name> <schedule>Mon-Fri</schedule> <office> <city>Chiago</city> <building>31st AMC</building> <boss>John H</boss> …

Member Avatar for pritaeas
0
175
Member Avatar for kevinn

Hello, I am currently creating a javascript refactoring framework in clojurescript. Because Javascript is a dynamic language and has no static type info I've used an points-to analysis to infer type info from the source code. Now I'm looking for good refactorings that people using Javascript need. For example I …

Member Avatar for pritaeas
0
107
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
165
Member Avatar for subrata_ushasi

Hi, I developed an website having interactive world map . When I rollover / mouse over a country ,it displays country's information. It is ok but when it is viewed on tablet or mini laptop with screen resolution 1028 x 600 then country rollover information partially going out of screen …

Member Avatar for LastMitch
0
107
Member Avatar for craigallansmith

GoodDay All. I am trying to create a hit counter in vbscript on a HTML Page for specific client needs. I cannot use any hit counters available for free. My problem is that my code only finds the text file on my notebook(Local C:\ drive) and not in the website …

Member Avatar for LastMitch
0
775
Member Avatar for turpentyne

I have a page that is centered both vertically and horizontally. I've got a snippet of javascript that reorients the page if the user repositions their ipad. If they start in horizontal, and go vertical, everything loads fine. My problem is that, if they start in vertical and go horizontal, …

Member Avatar for LastMitch
0
225
Member Avatar for shrutib

Hello all, My problem is there will be list of images where i need to swap the images to sort it like the way how i want to see.Say for example, image 1- position-1, image 2 position 2 etc. When i drag image 1 position 1 to image 5 position …

Member Avatar for stbuchok
0
442
Member Avatar for programmer12

**Problem:** I am currently using Jquery Autocomplete UI and it works perfectly but I would like to add more to the codes, but I have no clue where to place the codes. **What I would like to add:** I would like to add the Keyword Hightlights, HREF LINK (window.location.href), and …

Member Avatar for LastMitch
0
212
Member Avatar for aus_fas1

I want to replace form field names with the label text in the following code. I am just missing a line perhaps var template = $('#idRequestDetails').clone(); template.find('input,select,textarea,table').each(function(){ var newId = this.id.substring(0, this.id.length-1) + uniqueId; $(this).prev().attr('for', newId); // update label for this.name = this.id = newId; // update id and name …

Member Avatar for LastMitch
0
80
Member Avatar for littledevils326

I am creating a web page where the user and select an item by clicking on the button. The details of the item selected will be displayed in a dropbox. At the moment I can get it to update the quantity if the user selects it again. The problem which …

Member Avatar for LastMitch
0
191
Member Avatar for riahc3

Hello I have a jQuery Thickbox window and I want to make it stick as far as possible to the top of the browser window, so the top is visible. If the bottom is not visible, this (for now) is not a problem. How can I do it?

Member Avatar for JorgeM
0
168
Member Avatar for Buppy

Hi, I'm currently using this expression to validate at least 2 words, containing letters, "-" and "'". `/^((\b[a-zA-Z-']{2,40}\b)\s*){2,}$/` It works fine until someone enters unicode special characters, like from different languages. I've checked the \p{L} option, but that does not work or I am missing just something. Any help would …

Member Avatar for Buppy
0
139
Member Avatar for riahc3

Hello Im trying to make a cookie that I can use across one domain on different pages. Lets say my domain is example.dev var expiremilliseconds = 86400000; var currdate = new Date(); var expirationdate = new Date(currdate.getTime() + expiremilliseconds); document.cookie = "somecookie=true;domain=.example.dev;path=/;expires=" + expirationdate.toGMTString(); Thing is, I browse around my …

Member Avatar for riahc3
0
135
Member Avatar for dinhunzvi

i have the following php files. <?php require_once '../moonlight/includes/mysql_connect.php'; require_once '../moonlight/includes/functions.php'; require_once 'includes/reader.php'; /** * @author FreeUser * @copyright 2013 */ if ( isset( $_POST['submitted'] ) ) { $errors = array(); if ( $_POST['authorityID'] == "" ) { $errors[] = 'Select the paying authority.'; } else { $authorityID = (int)$_POST['authorityID']; …

Member Avatar for dinhunzvi
0
194
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
119
Member Avatar for m.tompkinsnz

Hi Guys, I'm currently embarking on a project relating to inventory management within my business, and have done a concept in Visual Basic. I'm now going through the motions of deciding which angle to take in regards to mobile access of the application. I have thought about whether to write …

Member Avatar for LastMitch
0
172
Member Avatar for momonq1990

$("#contact-form").validate({ rules: { contact_name: { required : true, email: {required: true, email: true } }, contact_company: "required", }, messages:{ "contact_name":"", "contact_company":""} }); How to add a messagebox to jsvalidation that says "you sent message"

Member Avatar for LastMitch
0
193
Member Avatar for vijayram

Hai all, I want to achieve the Resize,Drag and rotate functionality on an image seleted by the user.I am able to do all these in separate function ,but couldn't incorporate in single function. Since the images are dynamically created,i need a single function. For example If i join rotate with …

Member Avatar for LastMitch
0
2K

The End.