jquery

Highlighting current control with jCarousel

Hello all, I'm using the jCarousel plugin and am using this type, with the external controls. Now, the code is already there, hence I'm not pasting it anymore. My query is, how do I get the current external control to be highlighted? Thanks in advance, Indranil ...

json Data Output in ASP.NET

I am using the ASP.NET command var returnValue = new JsonResult { Data = items.Skip((pageNumber - 1) * pageSize).Take(pageSize) }; return returnValue; to return the paged contents of a table via JSON, but when I got to try to parse it, in jQuery, the $.each takes each character as an individual element. The output from that is along...

JQuery - "Selector" for current position in document

Hello, is there a selector or function in JQuery that allows to select the "current position in the document"? For Example if i use <script>document.write("test");</script> the output will be placed in the HTML document at the "position" where this "code" stands. But JQuery always requires a special selector. Of course I could be using...

Jquery and ShadowBox

I cant make the shadowbox work...I have a static html page which has an image that acts as a link to open a swf in the shadowbox. however when I click on the image it opens the swf like any other image file in the browser. The Shadow box doesn't seem to work at all. This is my html page. I am using shadowbox-build-3.0b. Its strange that...

Problems with Google Maps API v3 + jQuery UI Tabs

There are a number of problems, which seem to be fairly well-known, when using the Google Maps API to render a map within a jQuery UI tab. I've seen SO questions posted about similar issues (here and here, for example) but the solutions there only seem to work for v2 of the Maps API. Other references I checked out are here and here, alon...

Jquery - How to hide images when there is no stylesheet?

I am using a CSS hack where the image is scaled, but there is a problem. If the user switches the stylesheet off, the image used as the background is shown, sometimes the image is really huge. Therefore, I need to hide the background div when there is no stylesheet. I've thought about dynamically adding the image via JQuery, whilst th...

Change the jquery show()/hide() animation?

By default if you specify a speed jquery adds a weird looking animation where it expands from the left end corner. I want it to just slide down. Is there a way to do that without importing something else like jquery UI ? I'm looking something in the lines of : $("test").show('slow', {animation:'slide'}) If there's no way, then what w...

How to make a jquery lightbox open multiple images from one link?

Using a lightbox like ColorBox or jQuery Lightbox Plugin how can i make a single link which opens a gallery / array of images? For example i have 1 thumbnail and when a user clicks it i want it to open multiple pictures in the lightbox so the user can click next or previous to view all the pictures within that gallery. My thinking wa...

Define jQuery "eq"

I am having a difficult time wrapping my head around the jQuery eq. Can someone explain its use to me? What and how does it index? thanks. ...

Search through a big list fast with jQuery

I'm using this code to search trough about 500 li tags. $(function() { $.expr[":"].containsInCaseSensitive = function(el, i, m){ var search = m[3]; if (!search) return false; return eval("/" + search + "/i").test($(el).text()); }; $('#query').focus().keyup(function(e){ if(this.value.length > 0){ $('ul#abbreviations li'...

custom rules in jquery

Hi I am bit new to jquery can some one help me with defineing rules in jquery in my case I have defined three field input boxes for phone number nameing them areaCode exchange number <div class="pad10Top"><input name="areaCode" id="mobilePhone1" maxlength="3"/><input name="exchange" id="mobilePhone2" maxlength="3"/><input name="numb...

JQuery & nested elements

Using Jquery... I want to be able to take a parent div, and search through any internal elements to find a particular element that could be nested ANYWHERE with in the parent element. I'm then taking those elements and searching through them and based on their value, disabling/enabling different element... I also want to do this in a ...

dialog in jQuery

i have this dialog code // load dialog to user signup function new_user_signup() { $.get("/actions/_new_user_account.php", function(data){ $("#dialog").html(data); }); $("#dialog").dialog({ width: 400,resizable: false, position: 'top', draggable: false, title: 'Opret profil' }); } if i click on X icon in top -...

Issues with jQuery .blur() and .focus() events

I have a form with a few input fields. When a user clicks on an input field, a hidden div appears with some selections for that field, they can then choose an option, and this set as the field value. Currently, the way the div gets hidden is when the user selects an option. This works fine, but what if a user does not want to select...

jquery : adding non-accordion element by button klick

Greetings, I got the following problem: On this page (it's /not/ mine, I'm taking it just as an example) you can see under non-accordion (standard expandable menu) a ,as the name tells, a standard expandable menu. Now the question that I got: Is it possible to add by e.g. clicking on a button, to add another menu item, so that in...

How to Create a WCF Rest Endpoint for Uploading Large Files to ASP.NET MVC

Can WCF be used to create an endpoint for uploading large files to a website via an ASP.NET MVC controller method, with a jQuery progress bar in the browser being updated with Ajax or Json? How would it be done? Are code samples available? ...

Why doesn't this simple jQuery toggle animation work properly?

Your help would be very very much appreciated. I spend 4 hours trying to figuring this out, but was not successful, albeit it is a very easy example: Given the following (full running and Copy and Paste ready) example, I have two Strange Problems (occurring both on IE and Firefox): 1.) When having the line <div id="notexid" style="clea...

Simplemodal plugin facing a problem on IE8, with a textbox and a link on the main page

Hi I have the SimpleModal working very well on my site. But i'm facing a problem (only with IE8), i can't resolve. My simplemodal is showing over a banner (jquery powered) that simply do a slideshow. The diferrent image have some link on them. When my simplemodal is showing, it overlay the banner slideshow. This modal has some textbox...

jQuery plugin that deserializes XML?

Is there an XML deserializer for javascript? Preferably in the form of a jQuery plugin. ...

Django, category and subcategories

Hi guys, im working category and subcategories with the DataModel, all is fine in this part, but i need to use my category and subcategories in my Menu Nav, im try to use this Jquery menu , and im rendering my menu with subcategories, but im lost with rendering the subcategories in the way: <ul> <li> <a href="#">Category</a> ...