[jQuery] Problem with using hasClass() within .each()

2008-04-17 Thread Carl Von Stetten
Using jQuery 1.2.3 Firefox 2.0.0.14 I am trying to loop through the headers of a tablesorter table and find out which columns are being sorted which way. I'm building an array of arrays that can be fed into the tablesorter.trigger function to resort the table after changes are made to the

[jQuery] Re: Problem with using hasClass() within .each()

2008-04-17 Thread Carl Von Stetten
Josh, Thanks a million. Can't believe I missed that. It's working great now. Carl Josh Nathanson wrote: Carl -- Javascript is case-sensitive, so you have to use hasClass rather than hasclass each time you call it. -- Josh - Original Message - From: Carl Von Stetten [EMAIL

[jQuery] Re: jQuery for loop - am I crazy?

2008-04-24 Thread Carl Von Stetten
How about this? function initDashboard() { $(document).ready(function() { if($(.adminMsgSummary).length) { $(.adminMsgSummary dl:not(first)).hide(fast); } } } Code not tested, but should work. Carl cloudsteph wrote: I think I may have been looking at this a

[jQuery] Re: tablesorter bug?

2008-04-30 Thread Carl Von Stetten
After making changes to the table, use this instead: $('#myTable').trigger(update); // rebuilds the tablesorter data cache If you have added rows and need to resort, try either this: $(#myTable).trigger(sorton,[sorting]); // where [sorting] is the JS array of the sorting column info (see

[jQuery] Re: Ajax and events

2008-04-30 Thread Carl Von Stetten
Peps, Look into the LiveQuery plugin. It monitors the DOM, and automatically binds events to new elements created from ajax requests. There are other methods to do this is well. Check out this jQuery FAQ:

[jQuery] Re: Way to designate links as form submitters?

2008-05-01 Thread Carl Von Stetten
Rick, Try this (untested): $(document).ready(function() { $.each(.formlink), function() { $(this).click(function() { $(#supporttype).val($(this).attr(id); $(#supportform).submit(); }); }); }); form id=supportform name=supportform method=post

[jQuery] Re: using variables with jquery

2008-05-06 Thread Carl Von Stetten
quirksmode, Try this: $('#js_innerwrapper').animate({left:+=+$.gamewidth}, 1000, 'easeOutSine'); HTH, Carl quirksmode wrote: Hi, I need to make a div slide across the screen using the animate command. It works when I use the following: $('#js_innerwrapper').animate({left:+=500}, 1000,

[jQuery] Re: Dynamic Software causing many script loads, how would one handle this?

2008-05-12 Thread Carl Von Stetten
Lee, Do the various plugins at least use the same jQuery version? If so, can you modify the plugin-specific JS file to load the required jQuery scripts only if they haven't already been loaded? You will at least need to make sure that the jQuery.js (or jQuery.min.js or jQuery.pack.js) is

[jQuery] [jqModal] How to override style properties

2008-05-14 Thread Carl Von Stetten
I've read all of the documentation on the jqModal home pages. I understand that the default CSS class jqModal looks for to style the overlay is jqmOverlay. It appears that the only properties that it will pick up from a defined CSS style are background color and background image. I'm

[jQuery] Re: document.createElement equivalent in jquery?

2008-05-14 Thread Carl Von Stetten
meppum, That is built into the core of jQuery. For example, to create a new p element and append it to an existing div with an id of mydiv: $('pNew paragraph/p').appendTo('#mydiv'); or $(#mydiv).append('pNew paragraph/p'); HTH, Carl meppum wrote: What is the equivalent jquery code to

[jQuery] Re: [jqModal] How to override style properties (SOLVED)

2008-05-14 Thread Carl Von Stetten
In case anyone else runs across this: in my css file I added the !important declaration after the cursor style. This causes the css style to override the user style applied by jqModal. Carl Carl Von Stetten wrote: I've read all of the documentation on the jqModal home pages. I

[jQuery] Re: document.createElement equivalent in jquery?

2008-05-14 Thread Carl Von Stetten
Von Stetten [EMAIL PROTECTED] wrote: meppum, That is built into the core of jQuery. For example, to create a new p element and append it to an existing div with an id of mydiv: $('pNew paragraph/p').appendTo('#mydiv'); or $(#mydiv).append('pNew paragraph/p'); HTH, Carl meppum

[jQuery] Re: Refactoring Functions

2008-06-04 Thread Carl Von Stetten
How about this (untested): var stickyFooter = function() { var height = $(document).height(); var height = height - 341; $('#footer').css('margin-top', height); } $(document).ready( stickyFooter(); ); $(window).resize( stickyFooter() ); HTH, Carl Chris P wrote: I wanted

[jQuery] Re: Refactoring Functions

2008-06-04 Thread Carl Von Stetten
Better yet, change line second line of stickFooter function to: var height = $(document).height() - 341; And remove the third line entirely. Carl Carl Von Stetten wrote: How about this (untested): var stickyFooter = function() { var height = $(document).height(); var height

[jQuery] Re: get Request doesnt work in IE7

2008-06-05 Thread Carl Von Stetten
Don't know if this is the problem, but you're missing a semicolon (;) after the end of your $.get function call. Carl Jan S wrote: All of a sudden, xmlhttprequests don't work no more in IE7. FF perfect, no problems. Here the simple code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0

[jQuery] Re: Calendar Over Dialog

2008-06-05 Thread Carl Von Stetten
Tim, Are you using the css file that comes with the ui.datepicker? If so, make sure the section near the top looks like this: #datepicker_div { display: none; border: 1px solid #777; z-index: ; /*must have*/ } Note the z-index set to . Compare this to the z-index of

[jQuery] Re: Tablesorter plugin and zebra striping

2008-06-18 Thread Carl Von Stetten
Ken, Tablesorter has a zebra capability built right in through the zebra widget - see the docs for the tablesorter plugin. It will automatically redo the striping after each sort. You can change your code to: $(document).ready(function() { $(table#sorttable).tablesorter({widgets:

[jQuery] Re: [autocomplete] tab issue with autcomplete plugin

2008-06-18 Thread Carl Von Stetten
Jörn, I have made extensive use of the autocomplete plugin for my intranet site. I just downloaded the updated version from the trunk (changelog shows it as 1.0.1, the js file lists the build as 5329). I still have the tab order problem. Carl Jörn Zaefferer wrote: Yes, that should be

[jQuery] Re: Including the submit element in the querystring.

2008-07-01 Thread Carl Von Stetten
By default, the jQuery.ajax (or $.ajax) function uses the get method, which passes the data as a querystring tacked onto the url. So does the jQuery.get (or $.get) function. This is the same as a form submitted using the get method. If you are using the $.ajax function, you can set the

[jQuery] Re: Targeting an element with multiple classes

2008-07-02 Thread Carl Von Stetten
jez_p Try $('.green') This will select only elements that have the green class assigned, even if other classes are also assigned to the same elements. Carl jez_p wrote: How do I target a specific class when elements may belong to multiple classes? For example: p class=big redblah blah

[jQuery] Re: Removing the html jQuery adds in effects

2008-07-03 Thread Carl Von Stetten
pek, Try this (untested): $(litesting/li).hide().insertBefore(#gallery li:first).slideDown(slow); Carl pek wrote: First of all, thank you very much for the reply. It is really hard to get any reply in this mailing list. This is the third time I'm asking something and you are the first to

[jQuery] Re: offSetTop offsetLeft return NULL

2008-07-03 Thread Carl Von Stetten
Dan, Try: var e_ox = jQuery(a).eq(index).offset().left; var e_oy = jQuery(a).eq(index).offset().top; HTH, Carl On Jul 3, 11:49 am, Dan [EMAIL PROTECTED] wrote: I have these functions: var e_w = jQuery(a).eq(index).width(); var e_h = jQuery(a).eq(index).height(); var e_ox =

[jQuery] Re: using doc.ready in an external .js file

2008-07-08 Thread Carl Von Stetten
kgosser, Are you loading jQuery.js after your main.js file? If you are, try loading jQuery first, as it must be present before using any of its functions. Carl kgosser wrote: Here's what I'm not getting about jQuery from a novice point of view. Let's say I have this: script

[jQuery] Re: 'nodeName' is null or not an object

2008-07-09 Thread Carl Von Stetten
You might try adding the .each() function before your .load() call. Carl Pickledegg wrote: its 'c_name'. I've discovered something now, if I just use 1 div as the selector to update only 1 div, $('#charges-gsm) it works fine. But when I add multiple ones:

[jQuery] Re: Ho to remove or add a new table row?

2008-07-09 Thread Carl Von Stetten
Yavuz, That's because view source only shows the HTML as it was originally loaded. It does not show any DOM changes that may have been made after the page was initially loaded. If you have Firefox, and install the Developer Toolbar, the View Source pulldown on the toolbar offers View

[jQuery] Re: $.get(0) is causing trouble

2008-07-17 Thread Carl Von Stetten
jquertil, Try: $all[0].css('color','#339900'); or $all.eq(0).css('color','#339900'); As Alexsandro pointed out in his response, .get(0) returns the actual DOM element, not a jQuery object, so you can't use jQuery functions (like .css) on it. Carl jquertil wrote: $all =

[jQuery] Re: jquery ui demo site

2008-09-03 Thread Carl Von Stetten
Bhaarat, While there is no plugin for the UI demo, you can download the javascript file that makes it work. It does use jQuery and UI to work. If you view source on the demo page, you can examine the scripts being loaded. The file you are interested in is Behaviour.js. Carl [EMAIL

[jQuery] Loading jQuery plugins as needed from scripts

2008-09-11 Thread Carl Von Stetten
I've been exploring several options to load various jQuery plugins only when needed, from within a javascript file. I've used the .getScript() method, with callbacks. I've used the $ (body).append(script) method also. They work fine, but with one shortcoming. Because both of these methods

[jQuery] Re: Problem with .remove() in IE7

2008-09-16 Thread Carl Von Stetten
Has anyone else come across this? This is happening on all of my report pages. Thanks, Carl Carl Von Stetten wrote: Hi, I'm using jQuery 1.2.6.min.js on an intranet application. I have a page that when loading, displays a report loading message with an animated gif. This report loading

[jQuery] Re: .hide() and .height()

2009-01-16 Thread Carl Von Stetten
Karl, How would one go about overriding jQuery's show() and hide() functions to move the desired element to a negative screen position (CSS left: -1) instead of changing the CSS display to none? Carl Karl Swedberg wrote: On Jan 16, 2009, at 7:56 PM, Michael Geary wrote: snip If you

[jQuery] Re: OT: CF-Talk Down?

2009-01-28 Thread Carl Von Stetten
Rick, Here is how I handle creating json content with ColdFusion. I store the json string in a variable (like variables.myJSONdata). Then, I output the variable as follows: cfcontent reset=yes / cfheader name=expires value=#now()# cfheader name=pragma value=no-cache cfheader

[jQuery] Problem with BlockUI and IE7

2009-02-13 Thread Carl Von Stetten
I am migrating an application from one server to another. Both servers are Windows 2003, similarly configured. The only major difference is that I use ColdFusion for my CFML engine on my old server, and BlueDragon JX on my new server. Here is the problem: On my new server, when browsing using

[jQuery] Re: Problem with BlockUI and IE7

2009-02-17 Thread Carl Von Stetten
Mike, Sorry for the delay in getting back to you. I don't think a test case will help, as I can only reproduce this problem on this one internal server (our new server). The demo page works fine, and blockUI works fine on our old server. It only seems to fail on our new server. Carl