jquery

Disable user of 0 as first number in input box jquery

I have an input box: <input class="longboxsmall" type="text" name="number" value=""/> And I want to disallow the number 0 being the first number entered in the box how can I do this??? Can I use Jquery?? ...

Geo-location Help

Hi can anybody tell me what exactly i am doing wrong I cant seem to get either the success or fail function to run. function init(){; // Get the current location getPosition(); } function getPosition(){ navigator.geolocation.getCurrentPosition(success, fail); } function success(position) { alert("Your lat...

Memory warnings/crashing with PhoneGap iPad app

Hello, I've tried several approaches to make a one-page native app using Phonegap, and am seeking some general advice on troubleshooting. First approach: It's basically a bunch of different pages and sub-pages loaded with jquery into containers that live on the index page. So, no page loads, just loading page fragments from pages in...

Jquery slider boxes

Not sure if this is a javascript issue or can be solved with CSS. Im using an image with a text overlay slider but seem to having some issues with where the slider starts on page load. This is the live example, I would like the slider to be hidden on load and appear from below on rollover. http://www.warface.co.uk/clients/detail-shoppe...

Why isn't my jQuery toggle working?

Hi there, I was wondering if someone could work this one out as I've been trying for 40 mins now and this shouldn't be so difficult. I have some nested divs like so: <div> <div> Some info - <a href='#' class='slick-toggle'>[more info]</a> <div class='slickbox'> <div> More Content... <a href='#' class='sl...

Passing values to a php file via jQuery ajax problem

I have a contact form, the values of which I'm passing to a php page to save it to a text file. Somehow, it seems I cannot get the $_POSt values via ajax to save. What am I doing wrong? I am assuming something is wrong with my javascript code. Here is the jQuery: function checkForm(form) { var cssObj = { ...

Trying to achieve this animation effect in jQuery

I'm trying to achieve an effect like the one on this page (click the submit button). http://www.thewildtimes.com The modal drops down from the top of the page. I think it's a jQuery easing effect, but I am a little baffled by all the options. How can I do this? ...

Detach element style from html

I have bulk of html file like this <div style="min-height: 32px; padding: 5px; width: 800px; margin: 50px auto; overflow: auto; font-size: 12px;" class="selectable clearfix selected_layer" id="wrap"> <div class="selectable" id="l1" style="float: left; min-width: 64px; min-height: 32px; padding: 5px; margin: 5px; overflow: auto; width: 2...

PHP/jQuery: Ajax call & where to have my code?

Hello. So im making a "delete" button to my commentsystem.. I want to make it smart, so it should run a ajax call to remove the comment. Now I have tried out myself, this and have gotten this far: <?php echo "<a href='#' onclick='javascript:DoCommentWallRemove()' title='ta bort inlägg'> <span class='removeWallComment'></span> </a>"; ?>...

master submit buton that opens 5 independent tags

Possible Duplicate: I need a master button to open all buttons on my program how to create a submit button to open 5 onClick="this.form.cbox.checked=true; redirectOutput(this.form);" on independent tags or on independent windows? ...

Prototype to jQuery

Hello, I am trying to convert this code from Protoytpe to JQuery: Event.observe(window, 'load', init, false); function init(){ Event.observe('signup','submit',storeAddress); } // AJAX call sending sign up info to store-address.php function storeAddress(event) { // Update user interface $$('response').innerHTML = 'Adding email addr...

validate time field entry

hi, is there any easy to validate a time field entry against the current date and time?i get date and time entry from an user in two separate fields. I used jquery date picker and time picker for both. with the date I had the option to show current date and future dates and not the past dates so it's good. with the time field i have to s...

Fade out message after 10 seconds, clearing the input elements using jQuery

I'm displaying a message (#final_msg) after the user submits the form. What I want to do is that, after 15 seconds, the message (#final_msg) should fade out, clearing away [or fading out] the text in the input elements as well. Is it possible to do this? else { //create post data var postDat...

IE6 specific javascript code

Hey guys -- I have a validation script that absolutely positions a series of <span>s using positioning. However, the positioning is off by about 10px to the right (aka 10 more pixels need to be added to the right) in IE6. I was wondering if I could jQuery to detect IE6 and add 10 more pixels to the right. This is the code I have: if ( ...

Scale and move a text smoothly with javascript

Hi, I'm having a text scaled and moved via JavaScript / jQuery. I can't use jQuerys animate() because it has to fade in and out and has to be repeated and with more elements (end result: "flying" from the background, moving in different directions and fading out). My problem: It's not running smoothly and causes quite the cpu-usage. He...

Why is my jQuery keydown feature only working on the first input element.

I've built a small jQuery script that adds a class to witch ever input field I'm writing in. However it only works on all input fields after something is written in the first input field, see dev.resihop.nu for example. The code: $('.field').keydown(function () { if ($('.field').val() !== 'Ort, gata eller kommun') { $(this).add...

Wordpress Custom page Adding Comments Breaks jQuery?

I made a custom page that is based off archives that shows the post excerpt then a button which on click slides down to show whole post. It works great but I try to include the comments template in there and then jQuery breaks, wont slide. If I firebug in and remove the display:none then it shows and everything, even comments, are in th...

jQuery background position animation clipping

I have three PNG's of bubbles that I'm using for a background animation with jQuery and also have the jQuery jPlayer running on the splash page. For some reason a portion of it clips. Has anyone else run into this problem? I am a bit of a jQuery beginner and I also can't seem to get the images to repeat horizontally 100%. Also the animat...

full path from file input using jquery

When I call val() on an input with type="file" I only get file name rather than full path. How can I get full path? ...

jQuery FadeOut div works - .load then .fadeIn div doesn't

Hi all, I'm developing a WordPress 3.0 theme, my first theme with a bit of jQuery enhancement. I'm trying to fade out and fade in the pagination on each posts area. The idea is that when a user click the "prev" or "next" arrows, the listed posts will fade out, the next page of posts will load and then fade in. The fadeouts work fine, ...