Hi,
I have some jquery code within the
$(document).ready(function() {
$(input:checkbox).click(function(){
check if checked or unchecked
... do some ajax stuff .
do some css class exchange stuff ..
});
});
(This is the function to manipulate
Hi all,
I have a code that counts the number of rows in a table...
the table looks like:
table id=myTable
thead
...
/thead
tbody
tr
/tr
/tbody
/table
and my jquery looks like:
$(#myTable tbody:first-child tr).length;
strange enough that
It's because tbody:first-child is already selecting the tr, so you're
effectively doing:
tbody tr tr (where the first tr is the first child of tbody)
Cheers,
David
Alex Wibowo wrote:
Hi all,
I have a code that counts the number of rows in a table...
the table looks like:
table
Are you using a plugin or are you trying to do oit by yourself?
In case you are doing it by yourself this thread might help:
http://groups.google.com/group/jquery-en/browse_thread/thread/6902e3e091ec9e4b/f8a135f66d533265#f8a135f66d533265
Works both with selected text and no selection (cursor).
Hi!
How can i check that atleast one option is selected in multiselect
listbox. How can this be done through JQUERY.
Thanks in advance
how does that explain the behaviour when there's thead then??
On Wed, Feb 25, 2009 at 7:47 PM, David Muir davidkm...@gmail.com wrote:
It's because tbody:first-child is already selecting the tr, so you're
effectively doing:
tbody tr tr (where the first tr is the first child of tbody)
sorry i should say
how does that explain the behaviour when there's no thead (because it
works when thead doesnt exist)
On Wed, Feb 25, 2009 at 8:06 PM, Alex Wibowo alexwib...@gmail.com wrote:
how does that explain the behaviour when there's thead then??
On Wed, Feb 25, 2009 at 7:47
tbody:first-child doesn't select the first child of the tbody it
says select the tbody that is the 'first-child' of it's parent.
So what you are actually wanting to say is:
$(#myTable tbody tr:first-child)
Which is select the tr that is the first child of tbody
I made a function, but I hope I can do it by jquery selectors.
$(function() {
$('div').each(function() {
var $bk = $(this).css('background-image');
if ($bk.match('png')) {
console.log('yes');
Hi,
$.ajax({
type: POST,
url: /ajax_add_selected_product_to_session.php,
success: function(msg){
/* add here what to do on success */
//alert(msg);
var how_many_checked = msg;
Here is the code:
var background_image_height = 1232;
var background_image_height2 = 1232;
$(#breakup-2).css({backgroundPosition: 0px + (0 -
(background_image_height - $(#breakup-2).height())) + px});
or is there any other JQ more good performance can repalce
jquery.corners.js ?
many thanks/Davis.
var how_many_checked= '';
$.ajax({
type: POST,
url: /ajax_add_selected_product_to_session.php,
success: function(msg){
/* add here what to do on success */
//alert(msg);
On 24 Feb., 15:59, claus.k...@googlemail.com
claus.k...@googlemail.com wrote:
Hello everyone,
I am using a clueTip to show a couple of options (checkboxes) on a
form.
It took me quite awhile to realize that the cluetip checkboxes are a
copy of the original group of checkboxes, existing
Ok, thanks a lot!!
On 25 Feb., 10:38, system div divsys...@gmail.com wrote:
var how_many_checked= '';
$.ajax({
type: POST,
url: /ajax_add_selected_product_to_session.php,
success: function(msg){
/* add here what to do on
Sorry, another question... I just playing arround with different
possibilities:
$(document).ready(function(){
// on default, disable the submit button
$(.requestbutton).attr(disabled, disabled);
function check_how_many_products_checked(){
$.ajax({
Thanks, Richard!
I suspected it, but wasn't sure, thank you for your help!
2009/2/25 Richard D. Worth rdwo...@gmail.com
On Tue, Feb 24, 2009 at 4:16 PM, rasit rasitoz...@gmail.com wrote:
Hi, all!
Homepage of JQuery says that JQuery is 19 KB (minified)
Actually if you look closely it
Oops. Got tripped up by this last week too...
David
Karl Rudd wrote:
tbody:first-child doesn't select the first child of the tbody it
says select the tbody that is the 'first-child' of it's parent.
So what you are actually wanting to say is:
$(#myTable tbody tr:first-child)
Which is select
you try alert(check_how_many_products_checked()); //var x = ;
On Wed, Feb 25, 2009 at 6:11 PM, heohni
heidi.anselstet...@consultingteam.de wrote:
Sorry, another question... I just playing arround with different
possibilities:
$(document).ready(function(){
// on default, disable
Thanks for guidance.
My JS code is as follows:
//
var zonelocationVal;
jQuery('#zonelocation').each(function(){
if(jQuery('#zonelocation').attr('checked') == 'checked'){
zonelocationVal = true;
}
Hello,
This could be of interest to add the plugin JqGrid (http://
www.trirand.com/blog/) a ui.jquery:) for a perfect integration.
because it lacks a UI MANAGEMENT SYSTEM Grid
Do you add this type of a UI component?
2 things: you are referring to multiple checkboxes, but do that with
an ID (#zonelocation). That will not work. Use a class instead.
Second: Depending on the type of your checkboxes and your DOCTYPE you
might need to change the attr('checked') == 'checked' according to
your needs. I only used
Also remove the else-part of the attribute checking, this way it'll
only return true if the last element is checked.
On Feb 25, 11:41 am, Frederik Ring frederik.r...@gmail.com wrote:
2 things: you are referring to multiple checkboxes, but do that with
an ID (#zonelocation). That will not work.
Hi
I want to find an autocomplete plugin that doesn't fire the current field's
change event (as I hook up on that) when it's building the list to choose
from.
Does such a plugin exist?
Hi!
Thanks for guidance. I have changed JS code as follows. And now it
is totally ignoring the check.
My listbox name is zonelocation[] . I have used name with/without
DOT in JQUERY identifier placeholder. The result is same.
/*/
var zonelocationVal;
hi
i published a site using the validate plugin (which is awesome) for
the 7 pages registration form.
http://www.lavorainmondial.it/tuo_profilo/step1.php
Many thanks
Currently my code looks like:
var how_many = ;
$.ajax({
type: POST,
url: /ajax_add_selected_product_to_session.php,
success: function(msg){
/* add here what to do on success */
//alert(msg);
The thing is you will not select a named element by $('.name') but an
element of the class name.
How does your HTML look like?
On Feb 25, 12:14 pm, Bluesapphire michealg...@gmail.com wrote:
Hi!
Thanks for guidance. I have changed JS code as follows. And now it
is totally ignoring the
Hi Karl.. thanks for the reply...
what i actually wanted is to select the first tbody thats why i
specified tbody:first-child there
since a table can have multiple tbody... i want to select the first tbody.
What I didnt understand is about the thead..
the following works
Note: FIREFOX3 and IE7 seems to have the same behavior, but json datatype
seem give more problems than text
2009/2/25 Dakkar dak...@gmail.com
Hi all,
I'm trying to use jQuery to send forms to a PHP script, but I've
encountered some problems:
- with $.post it works only with an alert just
Hello
I've got some of the UI/Tabs (which are very nice, really like them)
on a page that is encased in an UpdatePanel. On doing a partial
postback, the selected tab reverts to it's initial state (ie, if I do
a partial postback from tab #2, it reverts to displaying tab #1).
Has this been
The plugin page, http://nadiana.com/jquery-confirm-plugin
The span class of remove is a gray box that turns red on hover. It
functions as a link to an ajax delete method.
I want to mouseover the box and bring up the Yes/No confirmation
buttons. Have been at it for a couple hours now. Help
Hi,
I downloaded the updated superfish 1.4.8 but couldn't install it using
the Joomla install function. I keep getting the error message:
could not find xml setup file in package or unknown archive
file.
Is there a special process to install this mod using the joomla
install function? I
HI everyone,
I just started using jquery with thickbox, I met a strange issue
while using the thickbox. I'm developing the site in php. I have not
specified any session time limit though thickbox destroys the session
every 2-3 rd time I open the thick box.
Does any one else has faced this
I'm not sure about the reason why but put the script tags to the end
of file like this.
//some html here
?php
//some code here
?
//some html here
//jquery and javascript codes
try this it will work, I think it is related wiht async,sync working
structure of AJAX. By the way it is better if
I've been writing a little ajax based game.
It will be multiplayer, and is written with jquery.
http://code.google.com/p/ajaxmmo
enjoy :)
Hello
I have a Superfish menu on joomla 1.5, I have the first level with
images only, the problem is that it show's different the image menu
when the url of the image item is a separator and different when the
image has a normal joomla link
http://joom15.first.gr
Thanks
Hi,
I am using a plugin called 'jQuery Date Input' v1.1.8 with the latest
version of jQuery.
The plugin works fine on a normal page, and, although I can get it to
display within a thickbox v3.1, I am having trouble with the
positioning of the date picker relative to the date input field on the
Hi all,
I'm trying to use jQuery to send forms to a PHP script, but I've
encountered some problems:
- with $.post it works only with an alert just after the $.post
instruction
- with $.ajax it works without that alert only with async:false option
- with both methods it works only with text
I'm a newbie and can't install the zipfile superfish 1.4.8 using the
joomla install function. I keep getting an error message stating that
the xml.is missing. Do you have any suggestions how I might be
able to install this file? I'm currently using superfish 1.0 on my
site.
Also,
Hello,
I’m pretty new in the jQuery world. I'm struggle with the callback
function.
script type=text/javascript
$(document).ready(function(){
$(#gallery-flickr).flickr({api_key:
f28804be7a09c5845676349c7e47d636,per_page: 4 });
$('a').attr({ rel:
Hi!
I have a question,
I have two main divs one for is used for menu, the other is used for
content. When an item is clicked from left menu, content is loaded via
jquery load() function in to the content div.
In one of my content I'm using jquery tabs for a tabbing system. In
this system there
If you just need to a open to function before the tree is created you
can do this
$('li#com_5').addClass('open').parents('li').addClass('open');
$('#treee').treeview({collapsed:true,unique:true});
Then it open the tree to the node where the li has id com_5
Because tbody is no longer the first child.
What you want is tbody:first which will grab the first tbody.
David
Alex Wibowo wrote:
Hi Karl.. thanks for the reply...
what i actually wanted is to select the first tbody thats why
i specified tbody:first-child there
since a table
Using animate({opacity:}) jQuery provides an excellent way of fading
elements in and out of view. However, opacity does not work on IE
(which demands the use of silly filters). With that in mind, how do we
animate the opacity of an element in IE?
Thanks
Using animate({opacity:}) jQuery provides an excellent way of fading
elements in and out of view. However, opacity does not work on IE
(which demands the use of silly filters). With that in mind, how do we
animate the opacity of an element in IE?
Use opacity. jQuery takes care of the IE
Try this:
script type=text/javascript
$(document).ready(function(){
var ok = '';
$('button').click(function() {
$('#my_form input[type = checkbox]').each(function() {
if ( $(this).attr('checked') ) {ok = true}
})
ok ? alert('there is at least one checked') : alert('none checked');
});
});
I'm using slideUp and slideDown to animate a drop down menu.
If i mouse on/off the menu in very quick succession the sliding up and
down animations stack up so that when you take your mouse away from it
it is still animating up and down. Is there any way to stop the
animation in the same way
On Feb 25, 6:55 pm, Bluesapphire michealg...@gmail.com wrote:
Hi!
How can i check that atleast one option is selected in multiselect
listbox. How can this be done through JQUERY.
I guess you want to see if at least one option in a multiple select
element is selected. Look at its
I realise this may not be related to jQuery specifically but sending the
contents of a textarea (rich content being edited in the browser) via an
ajax call. I keep getting a 413 FULL head error in the Ajax call. It
seems to be occurring because there is too much info being pushed via
the Ajax
Hi Alex,
1-) Doesn't work because * E F:first-child * pseudo-class selector matches the
F element that is the first child of the E element ONLY if there isn't another
element BEFORE the E element within the parent E. See specs at:
http://www.w3.org/TR/CSS2/selector.html#first-child
2-) If
You're giving way too less information to answer the question if this
has been sorted out. Maybe it needs to be sorted out in your own code.
Please provide a pastebin or test page.
--Klaus
On 25 Feb., 11:22, Intelligent Penguin phalling...@googlemail.com
wrote:
Hello
I've got some of the
Ops! my faul! sorry.
Previous post errata.
Read: ...BEFORE the F element ...
instead of: ...BEFORE the E element...
-Mensagem Original-
De: Mauricio (Maujor) Samy Silva
Para: jquery-en@googlegroups.com
Enviada em: quarta-feira, 25 de fevereiro de 2009 09:24
Assunto: Re:
ahhh
ok ... now i get it. sorry for wasting your time, guys...
i thought its E F:first-child reads the first child of E of type F... i
didn't know that it has to explicitly be the first child.
I didnt even know that this syntax is CSS thing i thought it is jQuery's
syntax.
Thanks alot for your guidance. It really worked.
On Feb 25, 5:07 pm, RobG rg...@iinet.net.au wrote:
On Feb 25, 6:55 pm, Bluesapphire michealg...@gmail.com wrote:
Hi!
How can i check that atleast one option is selected in multiselect
listbox. How can this be done through JQUERY.
I
jQuery uses the power of CSS selectors.
:first-child is an CSS pseudo-class selector and eq() isn't from CSS sintax.
Further reading:
http://www.456bereastreet.com/archive/200509/css_21_selectors_part_1/
Maurício
-Mensagem Original-
De: Alex Wibowo
Para:
Having just upgraded to 1.3.2, I've realised that the $.browser
utility has been deprecated.
Does this mean it is no longer possible to identify which browser is
being used?
I think what P is referring to is what using cookies enables: remember
what tab you were on when refreshing the page.
Which makes me wonder, why not have an option to have the hash set
instead of using a cookie?
eg
index.html:
div class=tabs
ul
lia href=#tab1Tab1/a/li
lia
I thought this as well, $.browser still works, as many plugins use it,
but I'm interested in what we should be using.
fambi wrote:
Having just upgraded to 1.3.2, I've realised that the $.browser
utility has been deprecated.
Does this mean it is no longer possible to identify which browser
The syntax would be like
$(#gallery-flickr).flickr({
api_key: f28804be7a09c5845676349c7e47d636, per_page: 4,
callback: function() {
$('a').attr({ rel: prettyPhoto});
}
});
On Feb 24, 11:57 pm, mlabee01 mari...@savariba.com wrote:
Hello,
I’m pretty new in the
Hey all.
I have 5 buttons on a page, each one calls a different HTML page.
Currently, I have each button in its own form and on click, I'm
checking permissions and then submitting the form.
Is there an easier way of loading a page via post using JQuery?
Oops, sorry. The snippet that I wrote selects all elements whitin your
myJQObj, which is not much of any use...
My bad...
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Tue, Feb 24, 2009 at 6:01 PM, jQuery Lover ilovejqu...@gmail.com wrote:
You could try:
Would the cookies option help in this case? I've come across the cookies
option but I haven't been able to make it work (I don't know when it saves
the cookie).
P
2009/2/25 David Muir davidkm...@gmail.com
I think what P is referring to is what using cookies enables: remember what
tab you
It requires the cookie plugin.
David
Paul Allington wrote:
Would the cookies option help in this case? I've come across the
cookies option but I haven't been able to make it work (I don't know
when it saves the cookie).
P
2009/2/25 David Muir davidkm...@gmail.com
Jörn ,
New issue, that is related.
When I use form.submit() inside the modal window it does not submit
correctly.
When we did this (before applying validate)
function submitForm() {
document.myform.submit();
parent.$.nyroModalRemove(); // this closes the modal window
There is a chance this could work perhaps. I've added the cookie plugin,
which seems to work partly, but not on the postback. The postback doesn't
appear to save the cookie data, it just reverts to the initial state that
was initially loaded from the cookie.
%@ Page Language=C#
Check out the hoverIntent plugin
http://cherne.net/brian/resources/jquery.hoverIntent.html
it puts a 'pause' on the hover so for both loading and unloading the
hovered section, it attempts to figure out what the user wants to do.
On Feb 25, 3:57 am, Jon cakeordeat...@gmail.com wrote:
I'm
That is exactly what i was looking for! Thanks very much! =D
On Feb 25, 2:10 pm, pedalpete p...@hearwhere.com wrote:
Check out the hoverIntent
pluginhttp://cherne.net/brian/resources/jquery.hoverIntent.html
it puts a 'pause' on the hover so for both loading and unloading the
hovered
I am having an issue with tinymce and jquery ajax form submissions. I
have 2 fields (title/content) and a hidden input (id) that I am
submitting via ajax.
when I use serialize
var form = $(form).serialize();
title = My title
id = 2124245
content = null
It seems to be an issue with tinymce
http://docs.jquery.com/Utilities/jQuery.support
jQuery now uses feature detection. There are some good links to
explain in the post above. It is still possible to detect which
browser is being used (plain old js) but jQuery support will probably
be removed at some point in the future.
On Wed,
Jorn, could you be more specific about the fix in terms of removing
the span tags? I'm using the async script to load the menu...
Thanks very much!
On Dec 29 2008, 6:41 am, walkinthere mtlmei...@gmail.com wrote:
I'd like to do the opposite.
Clicking any link in the tree (whether a parent or
ok, lets say I wanted to target IE6 only, how would I do that with support?
Aaron Gundel wrote:
http://docs.jquery.com/Utilities/jQuery.support
jQuery now uses feature detection. There are some good links to
explain in the post above. It is still possible to detect which
browser is being
You would need to find whatever quirk it is you are targeting and
create a function or otherwise create a scenario where that quirk is
exposed, and use that to populate some identifier.
eg: jQuery detects support.opacity by creating a div
style=opacity:0.5 and then later testing the opacity
Its better to detect features not browsers; that said detecting a single
browser such as ie6 I would use conditional comments feeling assured that
the code is not interfering with other bits
http://www.sitepoint.com/forums/showthread.php?t=455334
2009/2/25 Liam Potter radioactiv...@gmail.com
Well, it looks like indexOf() (or probably better search()) is ok
since I just have to check a string for another one (e.g. is 2008
contained in the date value).
Hi Thanks for replying back.
showRequest doesnt do anything. It just print the returned data.
Hey one more thing I noted, this plugin works fine with IE but not
Mozilla :(
Any workaround??
Thanks
On Feb 24, 4:45 am, Mike Alsup mal...@gmail.com wrote:
I am getting the output xml from the
Why not just use load()? Are you opening these pages within the same
page, or changing location?
What do you mean by checking permissions? I'd think that'd be best
down on the server.
On Wed, Feb 25, 2009 at 8:56 AM, webspee...@gmail.com
webspee...@gmail.com wrote:
Hey all.
I have 5 buttons
On Feb 25, 10:43 am, claus.k...@googlemail.com
claus.k...@googlemail.com wrote:
On 24 Feb., 15:59, claus.k...@googlemail.com
claus.k...@googlemail.com wrote:
Hello everyone,
I am using a clueTip to show a couple of options (checkboxes) on a
form.
It took me quite awhile to realize
Ah ignore. Team member left of method attribute.
On Feb 25, 9:07 am, kevinm sonicd...@gmail.com wrote:
Jörn ,
New issue, that is related.
When I use form.submit() inside the modal window it does not submit
correctly.
When we did this (before applying validate)
function submitForm() {
On Wed, Feb 25, 2009 at 11:19 AM, Sam Sherlock sam.sherl...@gmail.com wrote:
Its better to detect features not browsers; that said detecting a single
browser such as ie6 I would use conditional comments feeling assured that
the code is not interfering with other bits
This will give you all DIVs which have background-image set:
$('div').filter(function(){
return !!this.style.backgroundImage;
})
If you need to filter by extension or something use indexOf, it's
faster than a regex:
$('div').filter(function(){
return
Hello Guys,
I've done a little work with expandable div's using slideDown() and
slideUp(), I'm guessing I'll be using these again for this challenge
but I'm having a little trouble traversing to the correct elements to
enlarge and expand and was also a little unsure as to which I should
be
Tables have native properties which are much faster to access:
$('#myTable')[0].rows.length //number of rows
$('#myTable')[0].tBodies[0].rows.length //number of rows in the first
tbody
cheers,
- ricardo
On Feb 25, 5:25 am, Alex Wibowo alexwib...@gmail.com wrote:
Hi all,
I have a code that
Hi,
I just downloaded jquery.form.js from http://malsup.com/jquery/form/#download
The following code works fine in IE (The returned XML from server is
displayed through alert() )
But when I use the same code in Mozilla 3.0.6, It fails. ( I am
getting redirected
to the sell.php5 page )
Can
Define the functions in the appropriate scope (either global or inside
the function passed to ready). Functions are executed in the scope
they are called, so you write them like they were already inside the
click handler.
$(document).ready(function() {
function yourAjaxFunction(){
...
//
John wrote: You should always use $(#foo).find(p) in favor of $
(p, $(#foo))
I'm trying to extrapolate some general concepts from this 'rule'...
First, I *assume* these two statements are identical in performance:
$(p, $(#foo)) == $(p, #foo)
If so, then does it matter what the scope selector
Hi there,
I'm wondering if anyone can help me select appropriate plugins to
create a cimple carousel (or just fade in fade out image panel) that
is navigated using a fisheye effect list?
I'm new to jQuery and there seem to be a lot of carousel plugins out
there - are there any that can be
Hello, I relatively new to Javascript in general, but I've been
attempting to use jQuery for a while, I ran into a snag today and I
hope someone can help, here is what I have so far:
var id = $('#invoice_line_item_rows .item.description textarea').attr
(id)
$(#add_line).click(function() {
Hi,
I was previously using version 1.29 of the MultiFile plugin and it was
working. Then I upgrade to jquery-1.3.1 and since then the MultiFile
plugin seems to fail to apply any options. I have upgraded to the
latest version of the MultiFile plugin and it still is not working.
I have the
What is the syntax for just calling load? And does that use post? Or
just GET.
I'm checking permissions before re-routing to new page. This is done
on the server.
On Feb 25, 12:23 pm, brian bally.z...@gmail.com wrote:
Why not just use load()? Are you opening these pages within the same
page,
Then we probably need a plugin for this.
Because browser detection can also be used for information (not only
development).
On my website I want to use a module that uses the Java-Framework
jquery, together with a plugin that uses the framework mootools.
However I didn't got them to work. It seems to be due to a conflict
between namespace and equal functions in the js-files.
On several pages I read about using the
Hi, pulling my hair out here.
When the page loads I'm collecting a variable from the url which
corresponds to the class of an image. I want to then change the image
source. I'm doing this because the page doesn't reload and the menu
needs to respond to the content if you get my meaning.
$url =
Hey all.
I have a page with 5 buttons and each button calls a different html
page. On click of each button, I'm checking security permissions and
then I need to call the html page associated with that button.
Is it possible to POST with JQuery without having to set the action of
the form?
So I have been trying to figure out this issue for a few days now.
Forgive me if it's something super simple that I am missing.
I have a super-simple XHTML 1.0 transitional page (that validates),
using Eric Meyer's CSS reset, and loading the latest jQuery from
Google's site. Then I have two
So I have been trying to figure out this issue for a few days now.
Forgive me if it's something super simple that I am missing.
I have a super-simple XHTML 1.0 transitional page (that validates),
using Eric Meyer's CSS reset, and loading the latest jQuery from
Google's site. Then I have two
Below is my complete page. I have two divs, one with class 'large' and
one with class 'small'. When you click on the div with the 'small'
class, I want to change it to 'large' and vice versa. The classes seem
to change as I alert() the small or large class values and they seem
correct BUT the div
showRequest doesnt do anything. It just print the returned data.
Hey one more thing I noted, this plugin works fine with IE but not
Mozilla :(
Any workaround??
I'm afraid you haven't provided enough information. The plugin works
fine with both FF and IE so there is something more to the
On Wed, Feb 25, 2009 at 1:04 PM, Webspeeder dr...@bigrocksports.com wrote:
What is the syntax for just calling load? And does that use post? Or
just GET.
http://docs.jquery.com/Ajax/load#urldatacallback
First, I *assume* these two statements are identical in performance:
$(p, $(#foo)) == $(p, #foo)
No -- the first one calls jQuery three times, the second one twice. Big
difference.
Now, I'm not sure about if it's faster to use find() than the context
selector. I would think under the hood
1 - 100 of 227 matches
Mail list logo