jquery

Css class added but not rendering when applied with jQuery

I'm having a peculiar problem. I'm able to add a css class to a DIV, but the styles are not rendered. UPDATE I finally found the problem. With the code I originally used, I added the class to the 'myDialog' div. What I nedded to do, was to add the class to the parent div which $.dialog creates (to wrap my dialog div). Once this was ...

Tablesorter 2.0 Question Jquery

Name | Rating | Rating2 | Rating 3 | Rating 4 ========================================================== Nba 3 1 1 1 Bba 3 1 1 0 Cba 3 1 1 0 Dba 3 1 1 0 "Rati...

Suppress click event using JQuery

I have an html button that is being rendered as HTML like such: <input type="button" value="Select" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvAttendants','Select$0')" /> I'm attempting to use JQuery to suppress the click event of the above input tag, but I can't figure out how to do it! The button still does a post...

Timeout to logout with reset loop

I'm trying to implement an automatic timeout inside of an existing PHP application. My goal is to have the system notify the user 15 seconds before the automatic timeout is set to occur and give them the opportunity to 'reset' the timeout timer. I'm using jQueryUI bits as a part of all of this. This chart may help describe what I'm tr...

jqModal passing parameters

Hey all, how do you pass data to the jqModal? For example, when Button2 is clicked can i pass the button's id or a hidden field and have the controller pick it up? <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <script type="text/javascript"> $(document).ready(function() { $('#title').css('b...

Excel-like auto-updating table cells using jQuery

I have an HTML table structure that looks something along the lines of: PRICE QUANTITY TOTAL [5____] [2____] 10 (TOTAL1=PRICE1*QUANTITY1) The values in the price and quantity column are editable. These are HTML form fields. The values in the total column are not editable. Instead they are direct functions of the colu...

Basic jQuery question: How to change iframe src by clicking a link?

I have an iframe that looks like this: <iframe src="http://www.google.com" height=1000 width="500" id="myiframe"></iframe> I want to create a link so that when I click on it, the iframe on the page changes. How can I do that using jquery? Is it related to jquery attr? Thanks! ...

Ajax callback to refresh/reload part of a page

i have a a tree structure of folders and documents. There are options to edit, delete, move and add new folders and documents. When the user do these actions I will have a jquery ajax call to update the database. The question is how to refresh the tree structure when the update is done? it is not in an iframe or frame. i don't want to ...

How do I use jQuery to loop through an unspecified number of checkboxes?

I need to loop through a div full of an unknown number of checkboxes and get back the values of the checkboxes that are checked, how do I do this with jQuery? I guess it should happen onchange of any of the checkboxes. ...

jQuery ajax is throwing an error code 302... what is this?

Hi everyone! I'm working with ASP.NET MVC and jQuery and I have a UserControl that is repeated in every page. And in every page request, a ajax callback occurs... so far so good. But this is when I'm in localhost. When I publish the site, I notice that this ajax is throwing an error 302, but this only occus in HTTPS pages and in FF and...

Overriding the F1 key in FF, chrome, ie. Is F1 on ie8/chrome on keyup and in FF on keypress? What about <tab> in an input field?

I'm creating namespaced events with jquery. When I use the following function with code=112, a function, bool=false, everything works fine in FF and the F1 key submits to my function and the event does not bubble up to open the firefox help in a new tab. function bindKeyFunc(code, func, bool){ $(document).bind('keypress.' + code, f...

JQuery Scrolling/Paging Tabs

I am trying to create a simple tab bar for a site that has the ability to scroll for tabs that do not fit on the page. This is quite simple and does not need to have any ajax or dynamically loaded content...it simply displays all the tabs, and when you click one, it takes you to another page. I have scoured the internet and can not seem...

Correctly reference jQuery in ASP.NET MVC

Encountered such problem: Ive created a new blank project of ASP.NET MVC site. Then Im trying to add a reference to jquery-1.3.2.js from Masterpage head. But in this case, page doesnt loading to browser. Ive bee trying and src="<%=Url.Content ("~/Scripts/jquery-1.3.2.js") %>", all the same. Then I moved the script reference to the end o...

How can I call an Actionscript function when the .swf is referenced by jQuery?

I have an .swf that I am embedding into HTML using the jQuery SWF Object plugin (http://jquery.thewikies.com/swfobject). I have a number of functions within the .swf that I need to call from within javascript functions. I've made these actionscript functions accessible to javascript by calling flash.external.ExternalInterface.addCallback...

jQuery to take url with variables from a link and send it via Ajax

Hello, I can add a product to cart via GET with this link: <div id="add"><a id="add-link" href="http://localhost/catalog/cart?product_id=8&amp;boutique_id[]=36&amp;func=Module::Cart-&gt;add"&gt;Add to Cart</a></div> I want to use jQuery Ajax to stay on the same page (if JS is enabled). I have crapped out the following, but of course...

Showing and hiding a div with jQuery

Hello, When you click on the link, it with display the div "somecontent". And if you click on the link again, it will hide. How can I make the div show when hovering over the link and hide when moving away instead of showing and hiding on click? Here is the code: <script type="text/javascript"> $(document).ready(function(){ $(".show...

how to get selected option from a dropdownlist using jquery?

My dropdownlist has an ID of ID=ddltest How can I reference the selected item in the drop down using jquery? ...

How to select a single child element using jQuery?

Using jQuery how do I select a single child element? I've looked at the Tranversing API and know I can select all the immediate children img elements like this: $(this).children('img'); And to select the first child img element I could use a subscript like this: $(this).children('img')[0]; But I guess I'm kind of surprised I can't ...

jQuery: how to unload functions?

Hi, its very simple. I have a self made jQuery hidden content switch. I use jQpanView in the Div´s. It only works, when I load the jQpanView for every hidden content DIV once. But then, it also starts the function for every clicked tab again. Here we go: the problem example . The link <a href="#" id="apozin_30_pic1" class="apozin_3...

How to wait for $.getJSON()?

I have this problem where I do an .each() on this group of selects, for each one it fires off a call to the server for some data to populate it with. However I couldn't figure out why it would only populate the bottomest one. Then I threw in some alerts() and realized it was only running the call back function on the last one multiple ti...