jquery

Jquery Accordion Trouble - Nesting

Hello, I have successfully created a few single accordion drop-downs, but when I go to nest an accordion with an accordion, internet explorer goes nuts (but Firefox, Chrome, etc work just fine for both the single and nested accordion). Here is an example of the single accordion (fully functional): <div id="productdd"> <h3><a href="...

Dropdown menu not working in IE6

hello, The following dropdown menu works fine in modern browsers (IE7/firefox) but not in IE6. Can someone suggest a fix? CSS: #menu { height: 29px; background: url(img/menu.png) repeat-x top; border-left: 1px solid #0b2f3e; border-right: 1px solid #0b2f3e; position: relative; } #menu ul { display: none; p...

How can I use the jQuery Round Corner plugin to make round corners?

I need a round corner on my website. I'm fairly inexperienced with jQuery and JavaScript in general; what's the proper way to load and call this plugin? ...

Please explain what this jquery code is doing

Hi, Html looks like: <div class="ticker"> <div class="news-heading">Latest News:</div> <span class="active_ticker"><a href="#"> 1] Lorem ipsum dolor sit amet, consectetur adipiscing elit.</a></span> <span><a href="#">2] Mauris semper mi eget libero venenatis mattis.</a></span> ...

Creating jQuery Tooltips on newly created links

I'm using this jQuery Tooltip plugin: http://docs.jquery.com/Plugins/Tooltip I create tooltips for all links when the document is ready, like that: $(function() { $('a').tooltip(); } But when I add some links to the document later, the plugin wouldn't display jQuery tooltip on them. I supposed that when I call $('a').tooltip(); ...

How can I get the text of the selected item from a dropdown using jQuery?

I need the text from the selected item in a drop down. Thanks in advance! ...

addClass/removeClass to a SubClass?

Hi Guys, I am new to javascript and still learning the ropes. I am trying to use addClass to a subclass I assumed that this would work: jQuery('#wrow .text').addClass("error"); jQuery('#wrow .text').removeClass("error"); But it doesn't ? Little unsure how to do this to subclasses ? I am sure you gurus will help in a jiffy! :) Edi...

JQuery Problem: Script (Sometimes) Fails On (Some Versions Of) IE7

I'm using an image cross-fading method via jQuery on a website. For confidentiality reasons, I can't post the site's entire code, but here's the Javascript for the cross-fader (based on this reference): <script type="text/javascript"> $(function () { if ($.browser.msie && $.browser.version < 7) return; ...

Jquery find() taking too much time in IE

I am trying to find HTML inside a DIV in the Ajax HTML response: $j(responseText).find("#my_DIV").html() This works perfectly in FF but IE6 seems to hang and wait forever for the find() to finish, is there a work around to finding a DIV or is there something I am doing wrong? ...

Should I be using JSON or XML or something to fetch a pages contents every X amount of time?

index.php has this jquery code which loads notifications.inc.php into a div on the page every X amount of seconds <script type='text/javascript'> $(document).ready(function(){ var updatenotification = function(){ $('#notificationcontainer') .load('notifications.inc.php') .fadeIn("slow"...

jQuery fadeTo effect applied to <tr>

I want to add the fadeTo effect to a tr tag using jQuery. This should be possible, right? Here's my code: if ($) { $(document).ready(function() { $("tr[id$='_trPendingRequest_Manager']").fadeTo("slow", 0.33); }); } For whatever reason, the effect is not happening. I decided to do a bit more testing and added a paragr...

jquery ajax call not working in IE 7 or 8 but works in Firefox

Internet Explorer seems to be ignoring this ajax function call (below) but it works fine in FF? Help someone please... <script type="text/javascript"> function ajax_request(PartNum,InText) { var str=PartNum; str=str.replace(".","_"); strHTML = $('#image-placeholder'+str).html(); if (strHTML == '<p></p>') { ...

How to post data using jQuery and MVC

The data on my page is such: var userIdCol = '3,67,78,37,87'; This collection of used Id's is obtained from a Listbox via jQuery on my page. All I want to do is post this list of UserId's to my controller and display a success message somehere on my page. "Users have been updated." I am not sure what the signature of my controller s...

How to access remote JSON data as a local array

I'm able to use Jquery's $.get function to access JSON data from another URL, but how can I use that data (as an array) elsewhere in my code? Consider the following code: <script type="text/javascript"> $(function () { $.get("/some/other/url/that/returns/json", function(data){ var d = eval(data); }); ...

Set start day of the week in jQuery UI Datepicker?

I'm looking through the docs for the jQuery UI Datepicker (http://jqueryui.com/demos/datepicker/), but I can't find how to set the first day of the week as Monday. Applying regional settings will set Monday as first day of the week, but this will also change the language. ...

jquery tooltip, but on click instead of hover

We were using 'title' attributes to display something on mouseover. We want it now to display on a click. How can I get a floating box that looks like a title/tooltip, but can be shown and hidden on demand instead of being tied to a hover? ...

jQuery not recognizing div id

Hey, Something really weird is happening to my rails app. For some strange reason, jQuery does not recognise my id's in the DOM. Let me give you an example. I have a javascript function as shown below: function myFunction(){ $('#hello').toggle(); } Simple enough, it should toggle the element with the id="hello". B...

CSS or JQuery Fixed sidebar in website layout

My website is setup with the content structure like this <body> <div id="header></div> <div id="contentwrapper"> <div id="content> ... </div> <div id="sidebar"> ... </div> </div> <div id="footer"></div> </body> I'm trying to make my website behave where sidebar stays in t...

JQuery same click event for multiple elements

Hello, is there any way to execute same code for different elements on the page? $('.class1').click(function() { some_function(); }); $('.class2').click(function() { some_function(); }); instead to do something like: $('.class1').$('.class2').click(function() { some_function(); }); Thanks ...

Why does my jqGrid script work fine with PHP but fail with Perl?

Here is client Side code: jQuery(document).ready(function(){ jQuery("#list").jqGrid({ url:'example.php', datatype: 'xml', mtype: 'GET', colNames:['Inv No','Date', 'Amount','Tax','Total','Notes'], colModel :[ {name:'invid', index:'invid', width:55}, {name:'invdate', index:'invdate', width:90}, {...