jquery

jQuery spinner type thing

I'm trying to create a jQuery spinner type thing earlier today somebody gave me this code which increases the text field value up/down on button clicks. Fantastic. But what do you do to disable the .desc button if the value is 0 - zero. In PHP very easy if if <=0 then this etc... but I don't know jQuery.. Also any ideas how it can be u...

What are techniques to get around the IE file download security rules?

Internet Explorer (with default settings, which I generally assume will be in effect on the desktops of the Great Unwashed) seems to dislike the idea of accepting attachment content in an HTTP response if the corresponding request wasn't made directly from a user action (like a "click" handler, or a native form submit). There are probab...

jquery: maskedinput plugin not playing nice with validation plugin

Hello, Just started with jquery and am trying to get form validation to work using the validation plugin. Then I discovered the maskedinput plugin (http://digitalbush.com/projects/masked-input-plugin/) and tried to use it on a phone number field. Things work to a point: When the phone field comes in focus it displays the place holders ...

WCF - Exposing a service to both Silverlight and JQuery clients

Hello, I have a web service that uses WCF. This web service has a single method that I want to be accessible from two different types of clients. The first type of client is a Silverlight application. The second type of client is a AJAX application that relies on JQuery. Is it possible to write the method once such that both types of cl...

How do I know whether there is a specific listener on an element in jQuery?

Or how do I know whether this below has been run or not: $target.bind('click',function() { ... }); ...

When your web page can go to sleep

I have a web page, using jQuery and javaScript, and I would like to find out if and when to put the page to sleep. As a number of the tasks are background processes I need to put them to sleep if nothing is happening on the page. i.e. the user is working on another screen or not on his PC full stop ...

Calling .click(function)() inside Facebox

Hello, I've created a Facebox on my site and want to call .click(function)() to append text to all tags. I can get it working outside the Facebox, but it won't work once I put it inside. I haven't spent much time looking through the facebox.js file because I'm tight on time...so, if someone could help me out here, that would be great...

jQuery: dynamicly generate iframe and run $.ajax(..) in it

I'm trying to run an $.ajax()-call inside of an dynamicly with jQuery generated iframe. So somehow the jQuery instance needs to get passed into the iframe after it was generated and then then "$.ajax()" must get called... maybe with eval? So to be clear, not only the iframe should get generated dynamicly, also the content inside the if...

PHP: parse JSON from jQuery

I'm trying to parse a simple JSON string, but I'm not used to do it from PHP. To do my testo I've wrote a js page where the data is created, sent to php page and returned back to do some test. how can I access to json data from PHP and return them back? the string from jQuery: var json_str = '{"id_list":[{"id":"2","checked":"true"},{"...

Jquery Coda Slider Help

please help me with my code, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Build Slider</title> <style type="text/css"> ...

how to create attractive looking tabs in HTML

I am trying to get a simple page up that will have four links in the top header menu (horizontally). when clicked one, that html page will load in the body. So all in all there will be 5 pages. 1 navigation page, and 4 different HTML pages. I am not sure where to start with this. can someone point me to some good resources? I did l...

Attach event to results of a JQuery $.get call

Hi, I am getting a list of checkboxes from a $.get call in JQuery. Is there anyway I can attach an onclick function to each of these checkboxes from within the parent page. e.g. The parent page would contain the following code (maybe errors as I have just wrote it off the top of my head and not tested it) $(document).ready(function(){...

JQuery ul li click move to next in list

OK, nearly there, looking to use Jquery and css class (images) to navigate up and down an HTML ul li list in the same way a select option drop down works only want to only display 1 item, not a drop down button, but a next/prev css class to work though the list with only one item showing at a time so the whole effect is a bit like a spin...

Container div not expanding in IE when using jquery show() on div inside it.

Hi all, I have been building a form that contains expandable sections with it. The divs are toggled using the hide() and show() methods of jquery. It all works ok in Chrome and FF, but in IE the main div containing the other ones does not expand to fit when a section is opened up inside it. I have tried changing various properties suc...

jQuery Hover Flickers for Image Caption

Hi. I have some rotating images with hidden captions that I'd like to expose with jQuery when someone hovers. Each image + caption is like this: <img src="images/picture.jpg" id="feature-1-image" /> <p id="feature-1-caption" class="feature_caption">1: Here is the caption</p> The caption is set to display: none; and placed on top of ...

How can I get the button that caused the submit from the form submit event?

I'm trying to find the value of the submit button that triggered the form to submit $("form").submit(function() { }); I could possibly fire a $("input[type=submit]").click() event for each button and set some variable, but that seems less elegant than some how pulling the button off of the the form on submit. ...

Creating nested elements

I am attempting to dynamically create the following using data from an array <li><a href="#" class="red" id="5"><span>Some text</span></a></li> At the moment, I'm creating it in a rather simple way var link = '<li><a href="#" class="' + this.cssClass + '" id="' + this.id + '"><span>' + this.text + '</span></a></li>'; $('#options')....

Voodoo magic interfering with my javascript, I am going crazy.

Alright, so everything on this website was finished, it all worked, it displayed right enough across all the browsers. For some reason one of the pages isn't styling at all, and the javascript isn't running. The crazy part about this is that every page uses the same CSS file and the same JS file, and the code used across all of them to i...

Delete unclosed tag elements via jQuery

Hi Everyone, Say I have element sequence like below : <div style="margin-bottom:9px;line-height:normal;margin-top:4px"></div> <div style="margin-bottom:9px;line-height:normal;margin-top:4px">Something Here</div> <div style="margin-bottom:9px;line-height:normal;margin-top:4px"> There are unclosed elements below and I want to delete th...

retrieve results from mysql using jquery/php/ajax

Hi all, I'm using codeigniter for this project. I have a search form and search form results. Now when I click search in search form I'm being redirected to search form result and I get results. Is it possible to create div or table in search form which is hidden at first then call the search procedure and which results it returns to...