jquery

how to disable draggable div when scroll bar is focused on in jQuery

I have a jQuery draggable container div with a side scroll bar that should not be draggable when I am scrolling up and down. .infotext is the inner div that has the text, contained within #infobody which is set to overflow:auto. I need a way to negate the draggable function on the div when the scrollbar is selected. Here is my code: ...

write a function onchange of some attribute

i need to write a function onchange of some attribute, but when i wrote the following $("#handle_valueAA").attr("aria-valuenow").change(function(u) { ... }) it doesn't work. what is the reason? Thanks ...

jquery get form values, multiple forms

Hi, I have multiple forms on the page and i need to get the values of the form that is submitted, but without specifying the form. $(document).ready( function (){ $('form').submit( function(){ return submitForm() }); }); and in the .js file submitForm() should identify the id of the form that is submitted. How can be that d...

jQuery Cycle Fade In/Out Help

I've been using this script http://jquery.malsup.com/cycle/ And using the "Fade" transition. (Top row of the page on the right.) I need to edit the script so that the image fades all the way out to a white background and the next image fades all the way in. Right now they're sort of fading into each other. I've looked over the page and...

Refreshing CRM Page Causes jQuery/Javascript Error

Ladies and gents, I have a CRM page which references 3 js files, (1x jQuery, 2x custom) all stored in the CRMInstall/isv/ folder. On the form OnLoad method, I am loading each one and then using it to extend/customise the UI. My inexperience with jQuery is obviously showing however! The OnLoad code is below: //jquery var url = "/isv/...

How it is done? i want one of this mosaics for my site

http://www.aetv.com/criss-angel-mindfreak/season-6/scorpion-mosaic/ ...

jQuery tablesorter plugin - perform an action AFTER table is sorted

Hi there, I have a table which is sorted successfully using the tablesorter plugin. However, I want to highlight the text in a particular text field in a particular row. It has a unique ID, but when I place my code after the sorting code it doesn't work. Here's my code: jQuery(document).ready(function() { jQuery("#filetable").tables...

why does this script not work in IE6???

Hi, I've been working on and off on a horizontal accordion. It's not working perfectly at the moment but i've just got to change a few bits. The code is very rough and I intend to make it a bit more graceful once it works. It functions perfectly in every browser apart from ie6..initially when it loads in the page all you can see is the...

.change doesn't work, when the value changes via another script

i have a select tag <select name="valueAA" id="valueAA"> i use UI Slider, and i need to write a function onchange of select tag, but when it changes via slider, my function doesn't work. $("#valueAA").change(function() { alert("works");// doesn't work }) can i avoid such behavior without changing the ui s...

How to add Delay before calling next call back function in jquery

Hi guys, I am trying to make a javascript banner. I have 3 images inside a div with ids #img1, #img2 n #img3. <script src="scripts/jquery-latest.min.js" type="text/javascript"></script> <script> var AnimState = true; var AnimTime = 2000; var AnimDelay = 3000; $(document).ready( function() { $('#image img')...

Basic JQuery Help

Need basic help using JQuery and AJax. I have an ul <div id="topics"> <h1><a href="index.html">JQuery</a></h1> <h3>A Working Primer</h3> <ul> <li><a href="articles/includingJQuery.html">Including JQuery</a></li> <li><a href="articles/tools.html">Tools of the Trade</a></li> </ul> </div> An empty div where I like the Aja...

How do I know if I'm using too much javascript/jquery?

What ways can I test how my webpages run? How do I know what levels of usage (cpu and memory are what matters, I'm guessing) are acceptable? Any advice to get me started? ...

Toggling a hidden div and then hiding on mouse out

I have a site where the last item in the navigation, when you hover, will toggle a hidden div. I'm trying to create a "super nav" of sorts. The problem I'm having is getting the div to hide on mouse out. Here is a sample of the code I have. <ul id="nav_14623"> <li> <a href="/index.htm">Home</a> </li> <li class="locat...

How to use PHP input array with my dynamic form and PHP emailer script?

Hi, i have been struggling for a while now trying to finish this, i am new to a lot of this and although i have had some tips i think i am getting myself more lost. So i have stripped the code to a point where it almost works. DEMO IS HERE: http://designsbythom.com/meterread/test.html I have a form a customer fills out to submit printe...

Way to highlight code in textarea with jquery?

Hello Well here's a tricky one for you. Is there any good and logical ways to highlight code inside textarea via jQuery? If there is, please share. Martti Laine ...

Where can I get free HTML/CSS templates with subtle JQuery animations built-in?

I often use www.freecsstemplates.org for quick HTML/CSS websites and often find myself spending time manually building in little JQuery effects to them, downloading the necessary libraries, resolving conflicts, etc. Does anyone know of a similar collection of free HTML/CSS templates which have JQuery built in, i.e. all local jquery file...

Javascript Value Assignment Delay?

I'm at a loss right now. I'm using a simple variable, whose value is assigned during a loop. After exiting the loop, the value of the variable is still undefined, unless I alert it's value first. Then everything works fine. What's going on here? $(myarray).each(function(idx, item) { fetchSomethingRemotely( success: function(data) {...

Jquery and the :active selector

This is my code: $('#ss a:active').parent().addClass('ss-active'); I guess you can tell from my code what I want to do, but it's not working, how can I do this? and I also want when the user removes the mouse from the button to come back to normal state, what I mean by: "the user removes the mouse from the button" is that the user can...

Jquery - My first plugin ever - I can't get data to be stored

So, this is my first jquery plugin. It's not quite finished, but I'm running into an issue. The general purpose of the function is to take a select box and hide it while making a better looking one that's made up of divs and such. For example, you might have: <select class="beautify" id="items" name="select2" > <option value="opt1"...

Unblock (jQuery BlockUI) after file sent to browser through response stream

I have an <asp:button /> that generates a PDF report. I want to use jQuery BlockUI to display a message that says: Generating Report.. Using: Response.BinaryWrite I am then sending the file to the user so it appears as a file download in the browser. I cannot get $.unblockUI(); to fire. As soon as the file download begins or has comple...