jquery

jQuery Cycle Plugin Breaks in IE6 with background image

I'm using the jQuery Cycle plugin along with the tutorial here: Net Tuts tutorial "building-an-auto-scrolling-slideshow-that-works-with-and-without-javascript" It all works good if I give my containing <div> a background color, but as soon as I apply a background via url(), my slide navigation which was originally positioned absolutely ...

jquery understanding $('#name').load(...)

Hi all, I'm having some trouble understanding how to accomplish the following: Basically, I'm just delving into the world of Ajax, and I have built a simple application to practice on. My current problem is that I want to have a form dynamically added below "add entry", so that people don't have to go off to another page to update the p...

Complicated Javascript Calculation

I've got a fairly large table that needs to have a total on the right side and bottom for daily totals. I've been able to get the side to total correctly, but not the bottom. I may be thinking too little of this, but currently I have this: (Yes, I know it's not correct and doesn't work. I was testing) script: HorizVertiCalc = functi...

Jquery Masked Input

I am using the masked input plugin on a Jquery dialog box. Now after clicking on the "ok" button on my dialog box I do a validation on a date field and if the date was not entered I popup another Jquery dialog for the error message. Now after the error message is closed and focus is returned to the first dialog box the masked input text ...

jquery Cycle Plugin 'goto' issue

I am trying to figure out what is wrong with this code, I need to manually target slides from within the slide it self but the click functions are not working. $('#signup-content').cycle({ fx: 'scrollLeft', timeout: 0, speed: 300, prev: '#previous', next:'#next', after: onComp, ...

advanced selection problem

Okay... how do I select a element's parent's child with specyfied class name..? ...

jCrop / PHP upload problem

Hey guys, I am not very familiar with jquery & am trying to implement jCrop + upload via PHP. I found exactly what I needed ( http://webdevcodex.com/mashup-application-image-uploader-cropper-using-jquery-php/ ) and attempted to use it but the script is not going past step 6 (from the demo code). I am able to upload an image to the fold...

Trying to understand jqgrid for jquery. How do I change the URL for my AJAX call?

Hi, I have everything working from the tutorial, replacing it with my data, but it is a hardcoded situation. For example, in the tutorial, which is what I have working, I have: jQuery(document).ready(function(){ jQuery("#list").jqGrid({ url:'http://127.0.0.1/products/index.php/mystuff/test/1/5/productname/desc', datatype: 'x...

how do you fade in a message if the value is true on GET

passing a value to a php page via get, depending if the value is true then how do i fire my jquery function.. currently trying.. <script type="text/javascript" language="javascript"> function showError(){ $('#errormsg').fade(1000); $('#errormsg').html('<div class="error"><p>failed</p></div>'); } </script> php on the page: <?p...

JQuery / JCarousel: Using WrapInner and nth selectors to only wrap every 8th item

I want to use JCarousel to display UL elements with LI containing only eight images (two rows of four), something that looks like this: <li><div>[image][image][image][image] [image][image][image][image]</div></li><li><div>[image][image][image][image] [image][image][image][image]</div></li> I thought a good way to do this would be to use...

JQuery toggle Q&A: individual Q&As don't operate correctly unless you click on Open All/Close All first

I have a Q&A list with "Open All/Close All" at the top with individual open and close image buttons that toggle when clicked. That works fine. Then follow individual Q&As, and each has its own open and close image. If you click on "Open All/Close All" first, as soon as the page loads, and then click on the individual Q&A open/close im...

Session State not Retained over calls to a Page Method

My server side code: [WebMethod(CacheDuration = 0, EnableSession = true)] public static int UserID() { if (HttpContext.Current.Session["UserID"] == null) return 0; int UserID = Convert.ToInt32(HttpContext.Current.Session["UserID"]); return (UserID); } My Client side code: $.ajax({ type: "P...

Open a modal window on browser close?

Hi folks, I'm trying to open a modal window when the browser window closes. Is there a way to do this with window events? Thanks. ...

jQuery find() only working once on AJAX result?

Hi, all I'm new to jQuery and I'm having a bit of a problem manipulating AJAX results with jQuery methods. I use an AJAX get and execute the find method on the resulting output. But this seems to work only once. Subsequent attempts using the same selector in the find() argument don't work. Different selectors will work, but again, on...

How to process JSON using jquery?

I have a controller that returns a list of custom linq-to-sql model objects in JSON format to jquery ajax calls: List<MyAppLibrary.Model.Search> listSearches = search.ToList(); return new JsonResult { Data = listSearches }; I have the following javascript which gets the response: $.getJSON("/ajax/getbrands", function(data...

Javascript Detect Control Key Held on Mouseup

I've searched a good deal, and can't seem to find a satisfactory solution. I hope someone can help. While I am using jQuery, I am also writing many thousands of lines of Javascript. So a "pure" javascript solution is just fine. I'm trying to determine if the control key is physically held down on a mouseup event. That's it; there ar...

Submitting a Form using PHP and AJAX via jQuery

So I am using "load" functions of jQuery to use ajax on my pages. Can anyone write a small snippet of code using jquery load (or any ajax function which you think is the best) ? What I do is make a form, onsubmit pass to js, further using GET pass values into the load function and return false; though this works I am sure this is not th...

Setting focus using left and right arrows (HTML + JS)

Is there any to make the left arrow behave like the tab button (set focus to the next focusable item) and the right arrow behave like a shift+tab (set focus to the previous focusable item)? I've gotten this far: $().keypress(function(e) { if (e.keyCode == 37) { alert('I want to do a shift-tab'); } else if (e.keyCode...

jQuery: Fade in an image when you hover over it.

So I have a cycle of images which when not messed with cycle through, each subsequent image fades in nicely. If I hover over an image, it loads (no fade) and then the rest of the images cycle again and fade in nicely. What I want to do is, when I hover over a link, and the appropriate image appears, I want that image to fade in as well...

Alternatives to jQuery UI Resizable

Does anyone know of any alternative jQuery plugins to the resizable function in jQuery UI? My main focus is on constraining the bounding box (parent), and the aspect ratio of the image. ...