jquery

Date Picker with Simple Javascript or Jquery

Hai, I have a form with multiple date fields, Can anyone suggest me simple date picker in jquery or in simple javascript? Note: My form contains multiple date fields ...

Get current row by caret position in contenteditable iframe

Hi, I'm looking to get the complete text of the current row (defined by caret position) in a contenteditable iframe. What is the javascript/jquery code for that? Thank you in advance. ...

Setting focus to an embedded Flash movie/HTML embed element using Javascript/jQuery

Is there a way to set focus to the embed HTML element using JavaScript? Test case: embedded YouTube videos on a page. I have no control over the embedded Flash element. So, is there a way to set focus on it by using only JavaScript? I read somewhere that calling the element.focus() method works only in IE. I need a browser-independent...

Show values in another document controls

I want to show some JavaScript array values in another document Input Boxes. Previously, I was using: document.getElementByID('....').value = .... Now I want to know how to replace the 'document' with another page. Edited: My page opens two tables side-by-side. First table contains controls and the second contains and IFrame and ins...

PHP - On the website i want to show New tab, Mark as read options, when i right click on the any text, msg such as

I am making a mail application, so just when i right click on the msg it should create a window or a block (just as Windows- when right click on folder options appears) showing options such as New tab,Mark as read, Unread etc...... ...

JQUERY AJAX ---- Pausing for usability reasons but only when nessesary?

I have a LoadingStatus Function that has two options SHOW or HIDE. The Show triggers to display when the JQUERY POST is made, the HIDE happens after the RESPONSE comes back. The issue I'm having is that sometimes this happens so fast that it makes for a bad experience. What I thought about doing was putting in a JavaScript PAUSE, but i...

Using multiple Javascript frameworks in a project?

Is it good or okay to have several frameworks in a project, or is it bad because it gets cluttered (= a mess), and the loading times maybe get's longer. Does some 100 K matter really? Or should you stick with one? ...

jQuery adding and removing 'active' classes plus hover

I have a definition list with thumbnails. They are 50% opacity with a 'thumb' class. When hovered 100% opacity. When clicked 100% opacity plus change 'thumb' to 'thumbactive' class So far my crappy code works, only thing is I can not get the tn on 100% on click. dl { width: 700px; } dt { clear: left; float: right; widt...

jquery - send string to php to safe it in mysql

Hi, i got this script, which i found in the web: <script type="text/javascript"> $(document).ready( function () { $('a.closeEl').bind('click', toggleContent); $('div.groupWrapper').Sortable( { accept: 'groupItem', helperclass: 'sortHelper', activeclass : 'sortableactive', hoverclass : 's...

Clarification about Javascript objects inserted into DOM?

I am working on a personal project involving some jQuery / native Javascript programming. I am hoping somebody can clarify an issue I'm seeing with my code. I'm confused about the relationship among objects created in Javascript and objects that are part of the DOM. When using JQuery UI (the tabs feature), my program behaves differe...

jquery stops insert into database

Hello all, i have made this script but then i press submit the jquery animation start but it will not submit it into the database with PHP :S. Here is my script http://pastebin.org/68943 Thanks ...

is there a way to make divs not overlap eachother while dragging via jquery draggable [or etc..]?

is there a way to make divs not overlap eachother while dragging via jquery draggable()? i have a bunch of divs that user can drag around but i can not have them overlap eachother. basically i'm creating a canvas where user can freely move the site's contents around the site but it needs to not overlap the other content while moving t...

jQuery "Please Waiting, Loading..." animation?

I would like to place a "please wait, loading" spinning circle animation on my site. I'm having trouble to find a plugin for it, so here I am asking a weird question :) Thank you for your help. ...

jquery validation field is not clearing error after blur or submit

I've fixed this issue before (inadvertently) and I'm coming across this again. Hopefully someone will be able to help me. I have a form using jquery's validation plugin (bassisstance.de). The form validation is working fine except for one issue. When qualifying a field after it's been classed as "error" the field class doesn't clear....

How to rewrite this Javascript code using Jquery?

function SelectDistrict(argument) { var sel=document.getElementById("city"); sel.style.display = ''; sel.options.length = 0; sel.options.add(new Option('Please select a location','')); var i=1; var tempInt=parseInt(argument); if (tempInt%10000==0) { var place1=document.getElementById('place1'); place1.innerHTML =county[tempInt]; } s...

JQuery UI dialog - *Dialog not a function* error

I am developing a site using pinax. In one of my templates I am trying to open a simple jquery dialog box. However I keep getting the "Dialog not a function" javascript error. I am using jquery 1.2.6 and jquery-ui 1.6. My javascript and HTML are as follows: <html> <head> <link type="text/css" href="/site_media/smoothness/ui.all.css" re...

calling pin / unpin function thru javascript for jquery border layout

Hello, I am trying to do pin/unpin east and west panel thru a sparate javascript call. I am trying to replicate like http://layout.jquery-dev.net/demos/complex.html How to do it.? ...

jquery Loop through checkboxes and count each one checked or unchecked

Hello all, I've run into a bit of an issue. Here's a brief explanation. I have 12 check boxes on a standard form. What I need to do is loop through each of them and learn which ones are checked and which ones are unchecked. Using this, I can then build a string which I then enter into a database field. Here is an example. (Check1 -...

What's the best dialog plugin ( jquery based ) ?

I used to use jquery's native ui dialog plugin, felt a bit bloated to me. I'm looking for something lighter. Any suggestions? What I'm trying to get from a dialog plugin is that it can help popup panel like interface which allows dragging and resizing. ...

Using jquery in an asp.net mvc 2 editor template

I've created an editor templace in an mvc app, and I want to restrict the input of each text box in the template to only numbers. At render time, the template my be rendered multiple times on the page because the view could have multiple properties that are of type phone number, so the actual IDs of the text boxes will get unique names....