jquery

find div inside table cell with selector

Hello, I need a little help here if possible, because I can,t find the source attr of an image with the selector I have already used $(this).children('someclass')just before and the one I am trying to locate is in the same tablecell next too the other div So, it makes no sense to me $(".reg_info_body").hide(); $(".reg_info").toggle(f...

$(document).ready in ascx page after ajax callback

I'm having a little problem with this setup here I have a list of .ascx files and they all do different tasks in terms of calculations to the controller itself. So on my .aspx page I click on an Ajax.ActionLink() and this will render that specific .ascx file based on the item I clicked. Within that .ascx are 1-3 events that will fire 2 o...

Jquery Autocomplete Chained Requests

Hi, I have a page with two input fields City and Venue. I have the autocomplete plugin from Devbridge working great for the city field. I now want to get it working on the venue field. The javascript I have so far is: <script type="text/javascript"> $(document).ready(function() { $('#Event_City').autocomplete({ ...

JQuery slimbox rebind after ajax callback

I'm having trouble rebinding slimbox2 after ajax content is loaded. I realize I need to rebind the function on the ajax load but I have no idea how to do that. I'm using this code to generate the external content. $(document).ready(function() { $('.content_box').hide(); $('.sf-menuUP a').click(function(){ $('.content_box').fadeIn('slow...

Adding a sorter parser based on data sample from a cell column

This is the last part of this project, thanks to all who've helped with syntax correction on other parts. I'm using the tablesorter plugin for jQuery. Basically, what I want to accomplish is for my custom sort function to pick a table header based on whether or not it has a class, namely "SortableHeader". It then has to decide what me...

Firefox Firebug Extension - Freeze Javascript Feature?

How can I freeze Javascript in firebug so that i can inspect the changes made by it in the html? If for example i have a jQuery rollover effect and i want to inspect the html code in that point in time. I believe Dreamweaver CS4 has this feature titled freeze javascript and live code. Is there a free equivalent either in Firebug or anot...

How to show panel with hoverintent

Hi this is pretty basic jQuery stuff but i am a little lost. So i have a 310px images that is mostly hidden from the page with something like: .bottom-panel {position: fixed; width:874px; height: 310px; display: block; bottom: -300px; left: 150px; background: url(theimg.png) transparent no-repeat; } only the little 10px high tab is s...

how to get 1 hidden field among several within div

i have 3 hidden fields in 1 div. when I have reference to this div, how to get 1 of the hidden fields in this div. ...

JQuery calling Action on Controller (But not redirecting after)

I have a JQuery confirmation popup, with Yes, No buttons. The Yes button calls this function: function doStuff() { $('#confirmPopup').dialog("close"); var someKey = $("#someKey")[0].value; $.post("/MYController/MyAction", { someKey : someKey }, function(responseText, textStatus, XMLHttpR...

jQuery.datePicker -calculate days

Hy! I am using jquery.datePicker example from Kelvin Luck. (http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html) How can I calculate the number of days between Date1 and Date2 ? tks guys! ...

Raise "onChange" event when Input Element changed by JavaScript from Popup Window

I have a webpage with a form element and a popup window (opened by window.open). Both have jQuery available. The popup window has a javascript that can change the form element in the opener window. That works perfectly by doing... $(opener.document.formelement).val(vals[0]); However by doing that the onChange event will not fire. Th...

JQuery Grid or Loop through partial views?

Hello Has anyone been able to customize jQGrid? While I'd like something easy I can pluing and use that provides paging, I find that the layout is "tight" ( not in the cool way ) the gird is too excel-like. I'd much prefer one with spaced out grid rows and ability to use icons. But before I write the grid off and start hand rolling a...

When and why to 'return false' in javascript?

When and why to 'return false' in javascript? ...

jQuery nyromodal + ASP.Net + UpdatePanel/AJAX - endShowContent not working, flickers, loses focus..

Hi All, I am using the jQuery nyroModal plugin within ASP.Net. I love nyroModal, and overall its working very nicely. But I am using the endShowContent callback to set focus to the first text input element on the page's content after nyromodal is finished loading. To achieve this I have the following code on the page that initiates the...

JQuery: How to find the input named "apples" inside $(this)?

Hello, I'm learning JQuery and have found the factory function $() with its selectors quite useful. However, I cannot figure out how to select within a particular element I have named as a variable. For example: var thisDiv = $("#myDiv"); // thisDiv looks like this: <div id="myDiv"> <input id="apples" /> <input id="bananas" /> </div> ...

Jquery asp.net Button Click Event via ajax

Hi all, I was wondering if anyone can point me in the right direction. I have an asp.net button with an click event (that runs some server side code). What i'd like to do is call this event via ajax and jquery. Is there any way to do this? If so, i would love some examples. Thanks in advance ...

How to update span when text is entered in form text field with jquery

I would like a span to update when a value is entered into a text field using jquery. My form field has a text box with the name "userinput" and i have a span with the id "inputval". Any help would be greatly appreciated. ...

Jquery width() through iteration?

I'm having a bit of trouble iterating and retrieving width() values. $(".MyClass").each( function(){ elemWidth=$(this).width(); } ); so for each "MyClass" element i would like to find the width (some are different). But the above code only produces the width() of the first instance of MyClass and returns 0's after that. Any ...

ASP.Net UpdatePanel + Gridview + Hyperlinks + jQuery nyroModal plugin - Entire new window opening, but I just want a modal

Hi All, I have an UpdatePanel with a GridView inside it. The Gridview has a TemplateColumn containing a Hyperlink. Using jQuery at the start of the page, I set all of these hyperlinks to become nyroModal modal hyperlinks. I.e. so when you click them, the target page is loaded into a modal dialogue. This code is: <script type="text/ja...

Jquery accordion and thickbox clash

I am having a problem using thickbox and accordion on the same page ie none of them work. I have checked that they both use the latest version of jquery. Below are my includes. There are no other jscript files included. I am using this on a wordpress template if this can cause an issue. <script type="text/javascript" src="<?php bloginfo...