jquery

galleria image gallery...

hello friends i am using this galleria gallery link to display images on my college website.. but i m not able to fix one thing. when the size of the image changes it changes the display Div's size according to the size of the image.I want it to be fixed Div what ever be the size of the image islink text Can any body tell him whats the ...

jQuery get next element after first match

Hello, I think my problem may be quite simple, but after trying different approaches I just don't get it. The UI that I want to implement basically looks like this: -Prev | Image 1 (Active) | Image 2 | Image 3 | Image n| Next- I want to allow user to change active image by pressing Next or Prev buttons. HTML for my UI looks like th...

addClass using .live() with jQuery

I am currently using the .load() function to load content into a container div dynamically. The content being loaded is table data which I'd like to zebra stripe. The zebra striping is easy on a static page, but I can't figure out how to zebra stripe the new content loaded into the container div. Here's the code with which I'm trying ...

Is there any way to debug a call coming from an AJAX post?

Is there any way to debug a call coming from an AJAX post? This jQuery fires when the user hits OK: $.post( "/Detail/Copy", { bpid: $("#benefit_plan_id").val(), year: $("#copyYear").val(), plan: $(this).val() }, function(data) { } ); If I put the breakpoint in my controller: <AcceptVerbs(HttpV...

$.getScript and var return

Hello, I've a problem with $.getScript that dosen't seem to interact with my primary script : var noFocus = true; $(document).keydown(function (e) { alert(noFocus); $.getScript("myscript.js"); }); and myscript.js : noFocus = false; But on keydown the alert is ever true... ? ...

jquery: close dialog on click (anywhere)

hi, is there a default option to close a jquery dialog by clicking somewhere on the screen instead of the close icon? thx, fux ...

Bind to jQuery event only for particular elements

I am relatively new to jQuery but the below code seems logical but is not working as I would expect. I am utilizing the Colorbox jQuery plugin. My intention is to only add a listener for the 'cbox_closed' event on 'a' elements who have an id that contains 'Remove'. Unfortunately, as presently implemented this adds the listener on all ra...

Collecting form data and removing or hiding a form field using JQuery

Hello , I'm currently working on a problem that basically involves processing all data in a form, saving it, and replacing the entire form with a text link. My primary goal is to convert a form, with some data using the POST method, and a submit button, into a standard text link that can then take the saved/serialized data and POST it t...

Passing an HTML string to jQuery function

I'm working on an application which retrieves some HTML code from a record in a database. That strings then gets taken and inserted inside of a specific div. Right now I'm accomplishing this by passing the variable from Java and printing it within the div in the JSP. Now I'm trying to use an external jQuery function to accomplish this ta...

Text box text capture using Jquery always 'one character behind'

Hi There, I am attempting to capture user input using jquery and the keydown event. Here's my code: $(document).ready(function() { $("#searchText").keydown(function() { var filter = jQuery.trim($(this).val()); if (filter.length > 3 || filter.length == 0) { //hit the index action again an...

JQuery Cycle Plugin, SIFR and PNG Fix - strange behaviour in IE

Hi, I am using the JQuery Cycle plugin to flick through a bunch of divs with content in them. Everything is fine in FF and Chrome but in IE 6/7 the SIFR titles do not appear in any divs apart from the first in the cycle. Does anyone know what could be causing this?, I have notice that when I switch of the belated_png fix for IE6 every...

Paging through search results with markers on a map

My search interface returns pages of results with each page of results in a separate div. i.e. <div id="page1"> result 1 result 2 result 3 result 4 result 5 </div> <div id="page2"> result 6 result 7 result 8 result 9 result 10 </div> etc. I'm generating this dynamically using ASP.NET MVC. I'm paging using jquery to hide all these d...

jQuery: Using Selectors on HTML from an Attribute

Hi, I have some HTML that is stored as an attribute on a tag. I can access it in jQuery using $("input[id$='_myField_hiddenSpanData']").attr("value") This looks like this: "<span id='spantest\user' tabindex='-1' contentEditable='false' class='ms-entity-resolved' title='test\user'><div style='display:none;' id='divEntityData' key='t...

Add months to a date using jQuery

I have a simple MVC form with the following elements: <%= Html.TextBox("FechaInicio") %> Which has the start date. <%= Html.TextBox("Meses") %> Which has the amount of months I want to add. I'd like to take the date that has been entered on the first textbox, add the amount of months that have been entered on the second textbox an...

JQuery select an element inside a td

I would like to select an element inside the td of one of my tables but I don't really understand the syntax. This is what I tried: $("table > td:#box") This is a sample of my table structure: <div id="main"> <div id="today"> <table id="list" width="100%" cellpadding="4" cellspacing="0" border="0" style="font-size: 10px; border-...

How to create Ul list from string?

i prefer jquery. let's say i have a string with , adam, lisa, john, sarah and i want to turn them into : <ul><li>Adam</li><li>lisa</li><li>john</li><li>sarah</li></ul> ...

How call function JQuery send information before the content disappears in a control asp.net

Hi guys, I have a problem apart of my face, I send information after the event insertedItem of FormView to silverlight control, because my problem is that the silverlight control is closed just before the call to the function in jquery therefore can not receive that information that is sent. can you help me? please? ...

Need help with this jQuery animation

Hi, I have a few list items and id like a slide effect between the two items that are being swapped around. This is what I have so far. This animation works the first time around, however after that, the list items that were originally moved have a 'top' value of 0 and I'm not sure why. I think this is the reason but not sure. I've als...

document.ready is getting called multiple times

Within my php app I have multiple templates that get combined to form a single page. so say your on the about us page, the template would look like this <?php $this->render("header.php"); ?> my about us page <?php $this->render("footer.php"); ?> which is just a fancy way of doing an include(). However, header.php has some java...

Need help with a JQuery Selector that returns all checked checkboxes that are children of a node with a specified class.

Annoyingly enough, setting the cssClass property of an ASP.NET checkbox control renders HTML like so instead of just adding the class attribute to the input tag: <span class="myclass"> <input id="chkBox1" type="checkbox" name="chkBox1" /> </span> So here I am trying to write a Jquery filter that finds all of the checked checkboxe...