jquery

How to identify group elements enclosed by other element or tag?

Hi Friends! I have question please refer the following code to understand the question. (I removed '<' and '>' character from the following html code because otherwise the html tags will not be visible so i have written only tag names) <div> <div> <img /> <img /> <img /> <img /> </div> </div> I wan...

show/hide first level divs with jquery

Hello, I would like to show and hide the divs that are just under body tag, not the ones which are under another div tag. For example in the code below I'd like to hide with jquery div1 and div2, but not div1A, div1B, div2A and div2B. I know that if I hide div1 then div1A and div1B will be hidden. <body> <div id="div1"> <div...

How do chained functions get executed in JQuery?

When a function is chained in JQuery, what is the order of operations? Example 1 $(selector).fun1(val,{fun2(){ }} Example 2 $(selecter).fun1().fun2().fun3() ...

Using Sinatra and ruby to interface to HTML buttons

Disclosure: I know nothing about web programming Background to problem: I have an environmental testing chamber testing embedded computers at various temperatures. It is controlled by a windows application. I can control the chamber via ruby and the Win32API interface of the control application. The chamber is far from my office and I w...

How to hide links on browser's statusbar when you mouseover on links on webpage?

I am using Zend, PHP, AJAX, JQuery in my projects. Question is that how can I force to not display a link on browser's statusbar when I mouseover on a link on my webpage. Best example is on this site, when you mouseover the up-vote link on this site, it does not show the link and after click the votes increased without refreshing the pa...

How to zoom in and zoom out image using jquery?

Hi Friends! I have following code <div class="c1"> <div class="d1"> <img /> <img /> <img /> </div> </div> 1.There are GIF images included in tag. These images are transparent and some portion of them are highlighted with transparent yellow patch. 2. css class is applied to inner div class and the...

Expandable Banner on Mouse over

I am currently working on a website, where my client asked me to place a Banner which expands on Mouse Over. Similar to this website ( http://www.londontown.com/majorcampaigns/ ). When we hover on LondonTown.com Banner it just expands and show rest of the Ad. I tried my level best but i couldn't figure it out, Please help me. ...

Why is jQuery.position() behaving differently between webkit and firefox/MSIE

Here's a long one. I'm trying to implement horizontal scrolling in my site. It's working fine in Safari and Chrome, but not in Firefox (I'll not get started on IE's issues just yet). From what I can tell, Webkit is using the relative position of the scroll bar grabber div, while firefox is taking it's position relative to the document. ...

What minifier was used to generate the official JQuery "minified" version?

Hello, I need to edit the current JQuery library 1.4.x (and completely rename the JQuery "object/function") in a high conflicting environment. My question is, with what minifier has the official JQuery minified version been generated. Where can I find this minifier? (As I want to use it for minifing my version too). Thank you! Tim ...

jquery array/call function from array in order

Hi. I am working on a project where I have a bunch of functions that I would like to call one by one in a particular order when a button is clicked. Once one function has been performed I do not want to use again I would like to move onto the next one. It has been suggested by another S.O user that I need to use arrays but I am still le...

jQuery Tabs - Test if loaded

I have a jQuery dialog that is displayed on postback load. The problem however is that the dialog appears before the selected tab is set behind it, so the wrong tab is shown until the dialog is closed.. Is there a way to test and wait until the tabs are finished setting up before invoking the dialog? ...

jQuery dialog scripts for input val

Hi, I have a bit of a problem with a jQuery dialog and the way scripts are handled. In the dialog html, I have <input id="test"> If I do <script type="text/javascript> $('#test').val("haha") </script> after the input, it shows up. If I put it before, it doesn't work. Now the problem is I'm trying to change the value of $('#te...

jQuery tablesorter plugin works in IE but not in Firefox or Chrome

I am trying use the jQuery table sorter plugin for a table that is generated using ASP.NET gridview. For some maddening reason, it works fine in IE but not in Firefox or Chrome. It always seems to sort only on the first column even if you click on other columns. I have uploaded the generated html (after stripping to the bare minimum w...

Print Filenames from Directory w/ jQuery

Is is possible to use jquery to take something like an images directory, collecting the filenames, and then printing a list of links on a page? For example.. An images directory like so: images/one.jpg images/two.jpg images/three.jpg Then printing a index.html file like so: img src="images/one.jpg" img src="images/two.jpg" img sr...

jquery date picker to show month year only

I am using jQuery date picker to display the calendar all over my app. I want to know if I can use it to display the month and year (May 2010) and not the calendar? Thanks, Aanu ...

JQuery Add/ Remove Links

Hi, I have a list of links which I use to filter results e.g. filter 1, filter 2, filter 3, filter none When a filter link is clicked I update the contents of a div using the JQuery load command. What I then want to happen is that the filter link the user clicked on becomes just text rather than a link (this will stop the user re-cl...

upload large files in a browser with a progress bar, prefer no flash just js and php

what is the best way to build an upload widget that can handle large files is there a great jquery plugin for this? I'd really love to have a progress bar without having to depend on flash would need to use php for the backend ...

jQuery Timed Event

Is it possible, using jQuery, to fire off an event to set a div tag's text after n. seconds? Thanks! George ...

What to return from ASP.NET MVC action to allow jQuery ajax success event to fire?

Right now my ajax posts all fire their Error events even if the action did not cause an error. I have an ASP.NET MVC action that looks like: [AcceptVerbs(HttpVerbs.Post)] public virtual ActionResult StuffToDo(int id) { // do various things that work ... return new JsonResult(); // i have to return something, so this... } On...

Best way to add a 'callback' after a series of asynchronous XHR calls

Hey folks I stumbled on a piece of Ajax code that is not 100% safe since it's mixing asynchronous/synchronous type of code... so basically in the code below I have a jQuery.each in which it grabs information on the elements and launch an Ajax get request for each: $(search).each(function() { $.ajax({ url: 'save.x3?id='+$(this).attr(...