jquery

Slideshow with pagination

Hi. I've been working on this slider for Wordpress which allows you to have multiple sliders however for some reason the first sliders pagination is controlling the second slider. I don't have a clue why this is & I really cannot figure it out. I would appreciate some help. Here are the scripts: Main slider script: http://pastebin.com/D...

jQuery sleep function?

Possible Duplicate: Jquery: how to sleep or delay? var main = $('#main_content'); main.append("<img id=\"throbber\" src='/pre_config/css/images/throbber.gif' alt='Loading. Please wait.' />"); sleep(3000); $("#main_content").load("/pre_config/function.php?type="+type+"piz&count=1", successCallback ); I want to sleep for 3 sec...

OnLoad and OnChange (jQuery)

function safe(){ if($(this).is(':checked')){ $("select[name='sort']").attr("disabled", "disabled"); $("input[name='group']").attr("disabled", "disabled") } else { $("select[name='sort']").attr("disabled", false); $("input[name='group']").attr("disabled", false) } } $('input#safe').change(failsa...

Uploading and Styling File With PHP and Jquery

Hi, I have a form where the admins will be uploading more then 2 pictures at a time, i had been using the basic HTML file input style, however i want to do more with it as i am using a beautiful admin theme from themeforest, (the author haven't included the styled file input element in skin), i want to do it manually. which should meet ...

Using JQuery mousemove to track mouse, Scrolling with wheel is fooling me

I'm noticing something very strange with Chrome/Ubuntu, seen also on the JQuery mousemove page here. When I use the wheel to scroll vertically, I get new coordinates in pageX, pageY, but the pageY seems to be about 50px-60px off. I can see this because as soon as I move the mouse a little to the side, the Y coordinate suddenly jumps a...

Changing a standard text input into a jquery calendar popup using webform module in Drupal?

I have a simple booking form in Drupal created using the webform module. I wanted to change the date / time fields from texboxes to a Calendar popup. Can this be done? ...

How to save long text from jquery to mysql

How would you send long text from jquery to mysql becuase i have been trying use the .load function and for some reason i cannot get the text through. Var new_text = "oehieifewfewiofeio"; $("#test").load("actions.php?act=save&new_text="+new_text); Thank you, ...

twitter's scrolling bar effect

Did you notice the scrolling trend bar on twitter home page. What is the right way to do it with jquery? I hear jquery is better than javascript. ...

How to get xhr object from $.load function?

A user click a button that makes a request and then click again and again and again... I wanted to use xhr.abort(), but I don't know if I can retrieve it from $.load. Is it possible? ...

get element id that was involved in triggering an event

I have searched google but it seems no one has come across this issue. I have an keypress event set on a form. I am disabling the enter key(until all required fields are filled in) and trying to enable the + key to be used to move to the next available input area on the form. My form is highly dynamic other than the couple required fie...

Remove all CSS rules

Is there a way to wipe out all CSS rules once style sheets have already been loaded? I have to use a proprietary JavaScript library (ESRI's ArcGIS Server API) which is built on top of Dojo. I make extensive use of Dojo's widgets and would like to use Dojo's claro theme but unfortunately the ESRI library mungs up the CSS by loading in of...

Unable to Upload the file using Uploadify script

Hi, I am using the Uploadify Plugin to Upload files. although this might be a very basic question i am unable to understand and implement to get it work to upload the files. I want to achieve the following using uploadify when a user select the file i want it to be directly uploaded to the target path using PHP. now i am using the fo...

Update content with AJAX every X minutes at same time for several users

So I have an area on my page that I would like to update every 10 minutes. Right now, I'm using this code: var refresh = setInterval(refreshArea, 600000); But this updates on the client side, so if 100 different users are looking at the page, the content will update at 100 different times. I'd like for the content to update every 10...

JQuery A-Tools inserts at the end of a textarea when it doesn't have focus

I'm trying to use A-Tools to insert something at the caret position in a TEXTAREA. However, when the TEXTAREA doesn't have focus, the stuff gets thrown at the end (I'd like it to be at the beginning). However, I don't seem to be able to figure out when that focus isn't there to insert at the beginning, as the caret position returned when...

jQuery's focus() gets triggered again on a blur()

Say I have an input field "lastname", but I don't want people to insert something if the "firstname" field is still empty. Example: http://jsfiddle.net/GQyHp/ $('input[name=lastname]').focus(function() { if (!$('input[name=firstname]').val()) { alert('First enter your first name'); $(this).blur(); } }); If I click the "last...

jQuery slider control for opacity

I'm trying to implement a jQuery slider control for opacity of a certain element on my web page. Kind of like this question but with a slider. I was wondering how I should implement this best, as I'm a little lost as how I should get started... I'm guessing a function wouldn't be the best, would it? Defining a function and then calli...

jquery add to another div-boxes inside one special box... ie7+

hi folks, here is my code: $('.round').each ( function ( ) { var content = $(this).html ( ); $(this).removeClass ( 'round' ); $(this).html ( '' ); var inner = $(document.createElement('DIV')).addClass ( 'rc-inner' ).html ( content ); var outer = $(document.createElement('DIV')).addClass ( 'rc-outer' ).append ( inn...

Run the Click function after an Effect

Hi, I have a "login" button with a "click" function that redirects the user to another page. But the thing is that after the user clicks on the "login" button a "fade" animation should take place, before the user is redirected to other page, and that is not happening, i.e. the user cant see the animation since he/she is redirected imm...

How to find current URL and change CSS rule?

I have to find current url and if it is equal to "http://localhost/mysite" then I need to put below code. Example (pseudocode): If(FindCurrentURL.ContainsString("http://localhost/mysite")){ .ms-quickLaunch { display: none; } } How to find URL and that contains above URL? ...

jquery ajax tabs change to "Loading..." after clicking on them.

In the following code all of the tabs initially display their proper text (Home,Reports,Setup,Documentation,Support). When any of the ajax tabs are clicked (Home, Documentation, Support) the text on the tab changes to "Loading...". However, the 2 non ajax tabs (Reports and Setup) keep their text. How do I keep it from going to "Load...