jquery

what to do if my users have ie6

i have built a beautiful website that works very fast in all of the latest browsers but many of the users are forced to use ie6. If i can't get around this problem. Is there anything to do to optimize some of the inefficiencies of ie6 when building my site to lessen the pain.? its an asp.net mvc site with heavy use of jquery. ...

Using Jquery to add/remove a class based on body Id

I'm no javascript master, but I need to create a script that accomploshies the following. If body id="index" add class"current-selected" to anchor tag where href=index.php If body id="services" add class="current-selected" to to anchor tag where href=services.php etc. Does this make any sense? Can anyone help? Thanks if you can! Abb...

Why isn't my switch block (switching on $(e.target) .attr("class")) working?

I am trying to figure out why this code doesn't work.. All i want is to have simple event delegation to assign one event listener. it only alerts, it doesn't animate. Please let me know whats wrong here: $(document).ready(function() { var img = $("img"); $("span").click(function(e){ var targetClicked = $(e.target).attr('class');...

JQuery HoverIntent Returning Null

Hello, For my application, I use the hover intent add-on for mouse over/out panels. This extension works on every page of my application except for one, and unfortunately the problem only happens in production and not development. In this one page, the problem that occurs is that hoverIntent is not a function. Again, this works in al...

Weird behavior of jQuery UI Explode in Internet Explorer

I'm trying to show an background-image after a user clicks on a box. (I know I'm a bit lazy on the CSS) <script type="text/javascript"> $(document).ready(function() { var options = {}; $(".toggler1").click(function() { $("#effect1").effect("explode",options,1000); $(".toggler1").html("<div id='effect1b' style='floa...

modal dialog over Activex control

I use jQuery modal dialogs (jQuery UI) for modal popups.It is working fine, until recently we installed an activex plugin. Now, when ever the plug in is activated, this popup goes behind the plugin.Is there any way to show the modal dialog on top of activex plugin ? Browsers: IE7,IE8 ...

last day of the month

Hey All, How can obtain the last day of the month with the timestamp being 11:59:59 PM? Thanks, rodchar ...

IE8 Json problem

I'm facing very strange issue, I'm getting JSON object from django powered site and excuting it using eval(). It works on all the other browsers except all versions of IE. in IE, I am getting "variable_name" is null or not an object. I've tried everything I could but so far no luck. here is my json object var results = {"result":[ { ...

jquery document body one click event

Hello, Could somebody help me with this? : I have a button that when clicked it shows a certain div. This div has several descendants. Now, what I want is that when I click somewhere else in the document, but not in any of those descendants that this div disappears. what I thought was to use the not selector like this: $("#button").cl...

How can I re-initialize Uploadify script without adding extra button?

I'm walking you through a processs here: Step 1 1. Select product from dropdownlist 2. A form is populated with data 3. An hidden ID get's the product ID from the selected item 4. Uploadify is initialized and retrieves the product ID. An uploadbutton is added to form. Step 2 1. Select new product from dropdownlist 2. The form is re-pop...

Jquery: Unmasking/Revealing Corner

Hi, I am working on this site: http://waterwing.waterwing.ca/ And as you see the top right corner, when you hover over it, will expand. I need to change this effect to an extent. It will need to slowly reveal/unmask the rest of that darker trangle when you hover as opposed to expanding it. This site has a good example: http://www.so...

how to capture the click event of a dynamically generated button in jquery

i see there is this syntax for detecting any button click <script type="text/javascript"> $(document).ready(function() { $(":button").click(function(event) { alert("Thanks for visiting!" + this.value); }); }); </script> but what if i want to only detect a particular button on the...

jQuery className woes.

I'm trying to get the name of a class that matched a regex of a checked input. If I have this: <input type="radio" class="toggle toggle-1" /> <input type="radio" class="toggle toggle-2" checked="checked" /> <input type="radio" class="toggle toggle-3" /> I want to find out that 'toggle-2' is the checked class. $('.toggle:checked'...

Javascript: why does jQuery do this: (function(){ ...});, and how does it work?

EDIT: I THOUGHT The jQuery source I was looking at did something like this: (function(){ var bunchOfVariables = 7; jQuery = " ....."; //.... }); I was wrong about that. Ignore this question. I don't understand what that does. Can someone please explain it? This is the very first line in jQuery-1.3.2.js. It ap...

jQuery AJAX $_POST on document.ready?

I'm about a week into learning PHP, jQuery and AJAX and am picking up quickly. I'm building a new video website with a comment system that I need a little help on. The site shows a list of video thumbnails, and when the user clicks the thumbnail, jquery automatically changes the html on that page to show the correct video: $(".thumb...

jQuery - change form action based on selection?

I'm trying to change the form action based on the selected value from a dropdown menu... Basically, the html looks like this: <form class="search-form" id="search-form" method="post" accept-charset="UTF-8" action="/search/user"> <select id="selectsearch" class="form-select" name="selectsearch"> <option value="people">Search people</o...

Does Codeigniter work well with jQuery?

I've been using ASP.NET for a while but decided it's time to learn a PHP framework. Looking at an article NetTuts+ It looks like CodeIgniter is the simplest, and one of the lightest and easiest ways to go. I am however, a huge jQuery fan, and am wanting to know if jQuery integrates well with the framework? Any experience? ...

jQuery Grid with autocomplete

I am building a webapp using jQuery and jQuery UI. I am at an impass. What I need is a jQuery grid that has editable fields and somehow incorporate an autocomplete field on one of these editable cells and i cant seem to find any grid offerings that implement this. I've been looking at StickGrid and jgGrid I especially like jqGrid sin...

One dropdown at a time - setting a flag

If you click the dropdowns at this site: http://ryanbent.com/ - I want each of those tabs to only OPEN one at a time. If you click one, then close the other. I understand the thought behind it, i sent a class when you click it, and I am trying to go through each of them, but I cant seem to get it to work. I think its my selectors. My co...

Problem with jQuery - error when trying to find 2 tags

Hi all: I have the following DOM structure: /*:DOC += <div id='testDiv' class='testDivClass'><div id='innerTestDiv'></div></div><span id='testSpan' class='testSpanClass'><span id='innerTestSpan'></span></span> Now I tried to run jQuery select against them as follow. The first one returned alright, but the second one failed: // work...