jquery

jQuery fadeIn and fadeOut buggy on hover of image

Hi All, I have four images on a page that on hover, needs to replace the main text with relevant text pertaining to that image. It's working but buggy. If I roll over slowly and roll off slowly, I get the desired effect. When I rollover quickly both div's content show. Here is a thinned out version of what I need to be able to do. <im...

IE8 (compatibility mode) won't load my Ajax content

Hi all - I am working on a jQuery script on http://www.qxl.dk/ and I can't seem to get IE7 (or more accurately, IE8 in IE7 compatibility mode) to load my content. The sidebar box on the right named "QXL Aktuelt" loads its HTML content from an external file using Ajax load(), then triggers a custom jQuery event ("aktuelt_loaded") that st...

How to access frame (not iframe) contents from jQuery.

Hello I have 2 frames in one page like this (home.html) <frameset rows="50%, 50%"> <frame id="treeContent" src="treeContent.html" /> <frame id="treeStatus" src="treeStatus.html" /> </frameset> and then in one frame (treeStatus.html) I have something like <body style="margin: 0px"> <div id="statusText">Status bar for...

Alert Box Methods

I just need a little advice on what may be the best method for handling my situation. I'm in need of placing three buttons in the sidebar of the website I maintain. The website is massive and hard to handle. Currently, it's all HTML files (there are over 10,000 of them believe it or not). We're transitioning to a database website so I d...

Adding a link using JQuery html() is not click-able on IE6

Hello all, I add html to a page using JQuery's html() function. This works great on most browsers except IE6. I can work round this by adding a click event etc but I want to fix the issue without extra tape! Any ideas why this doesn't work on IE6? $('#button_holder').html('<a href="#" onclick="run_activity_upload(); return false;" id...

How to hide a div if validation summary is available in javascript/Jquery

How to hide a div if validation summary is available in javascript/Jquery. ...

jQuery-UI slider - how to disable keyboard input?

Hello, in jQuery-UI Slider arrow keys move the slider handle (after the handle has been selected/clicked on), which is nice, but I don't want slider to handle keyboard (I use arrow keys on the page for another purpouse). Any ideas how to disable keyboard events for jquery-ui slider? ...

Does Uploadify support jQuery 1.4?

Does uploadify supports jQuery 1.4? The site states that it needs: jQuery v1.2.x or greater ... but the demo runs on 1.3.2 and I don't feel like trying to get everything to work just to realize that it's some feature I want later is not compatible with my version of jQuery. ...

Display Spry results in Jquery modal dialog

I am using Spry to retrieve data from a SOAP webservice (received as XML). I want to display these results in modal Dialog using the jquery dialog plugin. I have an almost working solution, but the dialog shows the spry placeholders (i.e. the fieldnames surrounded by {}), not the actual retrieved data. Any ideas how I might achieve wh...

Problem with running totals in jquery

I'm having an issue trying to get an accurate running total for my calculations. When you enter numbers into the input field I get an accurate total for that line item, but the grand total comes out to a higher number. Note that this is a dynamic form and that the id's will change depending on how many form fields I have added to the for...

sifr not performing javascript action in IE

Hi I'm running sIFR r436 on a site I am developing. I have the sIFR running fine. No Problems, but where it is implemented and there is a clickable javascript action/function (please excuse my terminology) this does not work with sifr is enabled in IE 6,7 & 8. The Javascript in question uses jQuery. All is well with Firefox, Safari and...

Why does calling abort() on ajax request cause error in ASP.Net MVC (IE8)

I use jquery to post to an MVC controller action that returns a table of information. The user of the page triggers this by clicking on various links. In the event the user decides to click a bunch of these links in quick succession I wanted to cancel any previous ajax request that may not have finished. I've found that when I do this...

eval "the serialized object using JavaScriptSerializer()" after removing special characters

I need to eval an JavaScriptSerializer() object. var userSettings = '<%= new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(ViewData["UserSettings"]) %>'; The above line gives the output as: {"SalesTaxPercentage":7.75,"StartOfWeek":"SUNDAY","NoofRowsInList":10,"ShowDashboardEntry":5,"DisplayContactsFormat":"LastName...

Is it possible to reload a specific image if it did not finish loading after a preset amount of time? javascript/jquery

I am running a online photography portfolio and sometimes, 1 or 2 images on a page fails to load. and refreshing will display the failed to load image. Scenario: I click on the link and the images start to load. but the page never finishes loading because one of the images fails to load. After a refresh, the browser loads the failed ima...

Map like Java in JavaScript

Is there any way to create Map data structure like java in java script? ...

Jquery plugin seems to leak memory no matter what I do

I've recently been tasked with ferreting out some memory leaks in an application for my work. I've narrowed down one of the big leaks to a jquery plugin. It appears we're using a modified version of a popular context menu jquery plugin. It looks like one of the developers before me attempted to add a destroy method. I noticed it wasn't...

Help with manipulating child/parent elements with jQuery

Currently I have this JQuery script var img = $(this); img.wrap('<div class="photo"></div>'); img.parent().append("<p>" + img.attr("alt") + "</p>"); which successfully turns the following: <img src="photo.jpg" alt="caption"> into this <div class="photo"> <img src="photos.jpg" alt="caption"/> <p>caption</p> </div...

submit form - jquery problem

Hello all, I am trying to raise a click event on a submit button in a html form. I use the .click() jquery to catch the click event and return true at the end of the function. When I click on the submit button, the jquery functions are raised and a callback is executed, but the $_POST array is empty. How can I fix this? code: <form a...

jQuery RTF Editor

I have seen a lot of RTF editors out there, but I can't seem to find one that will let me preload RTF data and display it properly and then spit RTF data back out to me. Does anyone know of any good ones? For example, if I had this: <textarea id="rtf"> {\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0\pard This is some {\b bold} text.\par ...

If Statements Skipping or Evaluating Strangely, JavaScript and jquery

So in jQuery, I have a global variable "currentSubNav" that stores a current visible element. The following code executes on "mouseenter". I need it to get store element's ID, check to see if there was one. If there wasn't, set the new visible element to the default. $('#mainMenu a').mouseenter(function() { var newName = $(this).at...