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
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
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
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
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:
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
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,
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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 =
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
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:
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
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 =
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
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
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
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
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
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
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
33 matches
Mail list logo