$().ready(function() {
$('#editOptions').click(function() {
alert($('input:checkbox[name=listProductID]:checked')); //
returns only the first value, selected or not
});
});
untested but should work.
Also see,
http://docs.jquery.com/Selectors/checkbox
http://docs.jquer
$('#giftMsg:visible').length == 1
Will only select the element if it is visible, if it's not visible
length will be 0 as it would have not been able to select the element.
@see http://docs.jquery.com/Selectors/visible and
http://docs.jquery.com/Selectors/hidden
for more information
/James
On
Do you think this plugin needs a default UI? Or shall it remain event
driven only requiring the end developer to implement there own UI?
Does some one have any thoughts or comments on the subject?
:empty "Matches all elements that are empty, be it elements or text."
I think what your checking is value so it isn't covered by this
selector.
I think you'd have to loop though them all checking the value.
$(document).ready(function() {
$("input[type=text]").each(function () {
if ($(this).
append expects html data starting with a html element e.g wrote:
> Hello, this code doesn't seem to insert or append any HTML when I call
> it,
> but it does insert the HTML when I use the HTML() function.
>
> *
> This does not work.*
> function queue(itemId, mediaType) {
>$.get("ajax/getPlay
take a look at http://docs.jquery.com/Ajax Maybe json would be the
easiest way to send the data to the client, php has a nice functions
for json http://uk2.php.net/manual/en/function.json-encode.php
On Nov 19, 3:09 am, Chris <[EMAIL PROTECTED]> wrote:
> Okay,
> So i have a basic shopping cart/ord
I don't think I full understand where your data is or where it's
coming from. But heres an example from what I can understand.
$('ul.actions a').each(function() {
var $this = $(this);
$this.attr('href', $this.attr('href') + '#somewhere');
});
On Nov 18, 8:55 pm, Eric Lanehart <[EMAIL PROTECT
oops... or alternatively use break points and step though your coding
using the debugger in firebug
On Nov 19, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On one page, Firefox throws the "a script is taking too long" message.
>
> On clicking 'Debug Script', it points to the followin
sounds horrid but you can put alert or console.log throughout your
code see where it gets to last before hanging
On Nov 19, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On one page, Firefox throws the "a script is taking too long" message.
>
> On clicking 'Debug Script', it points to
Sometime back I created the first test version of table filter.
Quite some time has past and I've taken on lots of the ideas that
where mentioned.
I'm now back again.
If people could take a look at the work I've done and provide
feedback. This is currently a headless plugin. Event driven only. I
My less than one pence worth would be I love and use the plugin, but I
don't think it should be included into jQuery core, I would
like to see jQuery core stay light and fresh. There's nothing wrong
with adding LiveQuery yourself, either just add another js file to
your html or append all the plug
I less than one pence would be I love and use the plugin, but I don't
believe it's used enough to but included into jQuery core, I would
like to see jQuery core stay light and fresh. There's nothing wrong
with adding LiveQuery yourself, just add another file or append all
the plugins you want to t
You could use LiveQuery, or I've not checked if this is the right way
of doing it or even if it will work but I guess you could do.
$('.someClass { background-color:yellow }').appendTo('head');
/James
On Nov 1, 9:24 am, "Jesse Klaasse" <[EMAIL PROTECTED]> wrote:
> As we all know, we can do the
I would suggest a couple of changes
var $checkboxes = $('input[type=checkbox]');
$('a').toggle(function() {
$checkboxes.attr('checked','checked');
return false;
}, function() {
$checkboxes.removeAttr('checked');
return false;
});
p.s.
do you really need to post a 6K dealerskinslogo.bmp,
Just a quick note I'd like to add, all the files are functionally the
same. The only differences are the ones outlined by Dan G. Switzer II
On Oct 30, 11:01 am, shapper <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to download and start using JQuery.
>
> Which one should I download?
> And why th
There is already a jQuery .parent() method.
Not quite sure what your trying todo. But each method is run in the
context of the selected elements.
e.g.
jQuery.fn.extend({
test: function() {
return this.each(function() {
// do something with elements
});
}
});
EMAIL PROTECTED]> wrote:
>
>
> Thanks, this works, I notice that css("display") will return "block"
> when there is no "style" defined
>
> On Oct 28, 7:13 pm, James Dempster <[EMAIL PROTECTED]> wrote:
> > Try $('label').css('disp
Try $('label').css('display'); this will return the value your looking
for.
On Oct 28, 7:39 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Given following, is there a way to get the value of 'display'? is it
> 'none' or something else?
> thanks,
>
> AC.
>
>
you can bind an onclick event to an element by selecting the element
though jQuery then using .click(function() {});
e.g. $('img.imagebox').click(function() { $('div.large
img').attr('href', $(this).attr('href'); });
this would bind a click event to every image with a class name of
image box, wh
you where nearly there formdata is a jQuery object if you want in html
contents of that object try...
formdata = $('div#htm_snippet').html();
/James
On Oct 28, 10:24 am, Moody <[EMAIL PROTECTED]> wrote:
> So here's what I'd like to do:
>
> on form submission, send some data from a form input and
That's because you are providing the parentheses () which executes the
function there and then rather than passing the function to be executed
later when the ajax request is complete.
Try.
jQuery.post("/BFEWebApp/PreviewBFEDListServlet","detaillitstring=" +
detailListString, processReqChange);
/J
I think this should work in the latest version of jQuery.
$('html').animate({ scrollTop: $('html').height() });
On Oct 17, 5:18 am, Eric <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a div that will refresh itself and the scroll bar just won't
> stay down. The solution I've found is:
>
>
Try this.
$(document).ready(function() {
$("input.checkme").click(function() {
$('#eventItems').text(''+$('input.checkme:checkbox:checked'
).length);
});
});
On 10/18/07, choffman <[EMAIL PROTECTED]> wrote:
>
>
> Giving the check boxes the same class helped. Thanks. I'v
I suggest using liveQuery as mentioned and like you've found.
On Oct 18, 9:03 pm, schmingle <[EMAIL PROTECTED]> wrote:
> nevermind, i think i found the solution:
>
> http://brandonaaron.net/docs/livequery/
>
> are there any other known methods?
>
> On Oct 18, 12:59 pm, schmingle <[EMAIL PROTECTED
If all these checkboxes are in the same container where no other
checkboxes are you can use somthing like this
$('#id input:checkbox:checked').length
Or if there are other checkboxes in the way you can give all these
checkboxes the same class name and do
$('#id input.classname:checkbox:checked').
Do you have an example of the problem you are getting?
Do you get any javascript errors?
Have you ensured characters are correctly encoded?
On Oct 9, 7:44 pm, Danjojo <[EMAIL PROTECTED]> wrote:
> Update: I figured out it is actually working , but only in FireFox 2+
>
> ANything I can do different
amples work fine provided you
> don't try to access document.stylesheets first, if you do then that
> seems to kick IE off on a parsing spree.
>
> Oh well, all fixed now, thanks for your help.
>
> Andy.
>
>
> On 8 Oct, 17:03, "James Dempster" <[EMAIL PRO
I'm not sure if the script you have quite makes sense to me. But I've
added where I think it should go.
$(document).ready(function(){
$(".thumbnail li").click(function(){
$("#large li").html($
(this).html()).hide().fadeIn('slow');
return false;
});
the string 'UNKOWN' in the innerHTML source code.
>
> Thanks for the attempt but sill no prize yet!
>
> :( *tears*
>
> Andy.
>
> On 8 Oct, 14:43, James Dempster <[EMAIL PROTECTED]> wrote:
> > I've pinched some code from Christian Bach (http://lov
I've pinched some code from Christian Bach (http://lovepeacenukes.com/
jquery/ie6cssfix/) and put it into it's own test case. Tested it on
Win IE 6/7, FF 1.5/2, Safari3, Opera 9 and they all showed the same
results.
Test it out. Hopefully it can help.
http://www.jdempster.com/public/jss/js_css.ht
Nope never had a problem with firefox and jQuery.
Do you have an example?
On Oct 6, 10:39 pm, tramblie <[EMAIL PROTECTED]> wrote:
> The jQuery's Ajax Requests (and some other) API won't work with
> Firefox (2.0.0.7) has someone noticed the same problem? Is it an
> incompatibility, a bug or what?
Great plugin great protentioal.
jQuery has great CSS selector support, including CSS3 which alot of browsers
don't. Also jQuery has great browser support. Join those togeather you get
great cross browser CSS3 support via jQuery.
I'm guessing it might even be possible to use specific jQuery select
and theres always Visual Query as a download from
http://www.visualjquery.com/1.1.2.html download at
http://www.visualjquery.com/visual_jquery.zip
/James
On 10/7/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
>
> Ahh, if you are a CF guy, you will like this one:
> http://www.bennadel.com/blog/961-Conv
Your quite welcome to use the tablesorter cookie widget.
http://www.jdempster.com/category/code/jquery/tablesortercookiewidget/
On Oct 6, 6:54 pm, zacware <[EMAIL PROTECTED]> wrote:
> I have a page whereby everytime it receive focus the tables on it refreshes
> automatically so the user always ha
Sorry things have been moving rather slowly I am still working on it, just
don't have much free time right now :(
But when it is complete it will work in IE.
/James
On 10/3/07, Jesse Klaasse <[EMAIL PROTECTED]> wrote:
>
>
>
> Great efforts so far! I think I will be using your plugin when it's
>
for varibles,
but thats a different topic ;) So I tend to also use single quotes in
Javascript, it's just easier that way.
/James
On 10/2/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
> > From: James Dempster
> >
> > Much nicer to split the li
s).parent().remove();return false;+"'",""].join(""));
>
> I get an: missing ] after element list error in Firebug. Any thoughts?
> Thanks.
>
> Matt
>
> On Sep 29, 11:17 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
>
> >
One of the greatest things about jQuery though is that the code is quite
easy to read and understand, so if unsure just check. If still unsure, then
what a great active community though the groups !
Love the tips, it might be quite nice if maybe the core could be changed to
accept an array (maybe
Thanks Mike, that is nice to know. Ofcourse all that could go on one line
but I dont find it very readable and will be doing what you mentioned from
now on.
On 9/29/07, Michael Geary <[EMAIL PROTECTED]> wrote:
>
>
> > From: James Dempster
> >
> > I've never re
I've never really understood the point to FlyDOM. It seems like a nice
idea, but whats wrong with just using jQuery?
FlyDOM
$('#exampleCA').createAppend(
'table', { width: '718px', style: 'border: 2px inset #336699;' },
[
'tr', { className: 'exampleRow' }, [
'td', { align:
The filter you specified is one rule with two elements described in
it. Being firstly an element with a class attribute containing myClass
with a child anchor element. Maybe you possibly mean a.myClass meaning
an anchor element which has a myClass class attribute? As I think
filter will only apply
Some really good ideas there that I hadn't thought of.
Think your right about the multipule conditions that would be very awesome.
It's going to take some more time and thinking though.
Filters like ">35" using the filtertype numeric already work, but "> 35 and
<90" don't. I like your ideas and y
Hi Group,
I've been writing a tablefilter plugin to sit along side tablesorter
from Christian Bach. It will supply multi column filtering. Have
support for different filter types, e.g. text (case sensitive/
insensitive), numeric, regex + any more people might add.
It will be optional on wether t
The problem with Zebra Striping widget in tablesorter is because it
uses a little bit of xpath, which has been taken out of jQuery 1.2, to
fix this replace the format function on line 819 or around there with
$("> tbody:first > tr:visible",table)
.filter(':even')
.removeClass(table.config.wi
ahh that's brilliant, :¬) what a fantastic page. I very much look forward to
1.2
/James
On 8/23/07, John Resig <[EMAIL PROTECTED]> wrote:
>
>
> http://docs.jquery.com/JQuery_1.2_Roadmap#Animating_scrollLeft.2FscrollTop
>
> On 8/23/07, James Dempster <[EMAIL PRO
I was wondering if the changes that allow animate scrollTop would be
making it to the next release?
e.g. http://dev.jquery.com/~john/ticket/step/test2.html
http://docs.jquery.com/Ajax#Options
"async (Boolean) - By default, all requests are sent asynchronous
(e.g. this is set to true by default). If you need synchronous
requests, set this option to false. Note that synchronous requests may
temporarily lock the browser, disabling any actions while the
Before ob_gzhandler() actually sends compressed data, it determines
what type of content encoding the browser will accept ("gzip",
"deflate" or none at all) and will return its output accordingly.
>From http://uk.php.net/ob_gzhandler
On Aug 15, 2:33 pm, xavier <[EMAIL PROTECTED]> wrote:
> This m
after Dan G. Switzer, II mentioned here
http://groups.google.com/group/jquery-en/browse_frm/thread/cf786440e6154366/16e79411ae8b118d#16e79411ae8b118d
regarding cookies being sent with every request and the 4KB limit it
got me thinking, maybe store this on the server and make one request
for it eac
gt; If it's just a matter of coding convenience, balance that against the
> inconvenience it will cause your visitors if the site is slow to respond.
>
> Or is there another design reason why you need the synchronous call?
>
> -Mike
>
> > From: James Dempster
> >
> &
worked it out guys, silly me it's loading data synchronously instead
of asynchronously. Done by doing...
function test() {
var html = $.ajax({
url: "some.php",
async: false // <-- heres the key !
}).responseText;
return html;
}
:-) thanks all
On Aug 14, 1:54
ajax request
}
var bler = test();
On Aug 14, 12:08 pm, SeViR <[EMAIL PROTECTED]> wrote:
> James Dempster escribió:> Is it possible to make a function that returns a
> value from an ajax
> > request. I want the javascript execution to stop until the function
> > returns it
Is it possible to make a function that returns a value from an ajax
request. I want the javascript execution to stop until the function
returns it's value. Inside the function it makes it's ajax request
then returns a value based on the data returned. Currently I only see
that a callback function
Very true, 4KB is a large amount of data to send on each request.
Until something like FF storage stuff is more widely implemented then
I think devs have little options.
I was thinking of putting some kind of calculation on how much space
is being used, and some way to inform the developer on rea
54 matches
Mail list logo