How can I get DIV elements not having a class (test-class) inside a
main DIV#Main?
I am trying
var count = 0;
$(#Main div).each(function(){
if(!($(this).hasClass(.test-class)))
{
count += 1;
}
});
alert(count);
But this is not the correct way I think.
How can I do it?
That would certainly work, except that you'd need to take out the . in the
hasClass call - it wants a classname, not a selector.
An easier way to do it may be (untested):
var $elements = $('#Main div:not(.test-class)');
alert( $elements.length );
-Mike
From: Arun Kumar
How can I get DIV
The edit page has the remote-stuff commented out, the required
valition seems to work fine.
Going to
http://test.fibranet-services.com/fnb/phase1/contents/company_group_validate_name.asp?GroupName=b
gives me True, which is not a valid response for the remote method.
As it says in the
Thanks all for this explanation.
I find a solution.
Don't use event mouveover and mouseout but use mouveenter and
mouseleave.
Now, it works, not perfect but better.
function over() { $(this).fadeTo(fast, 1.0); }
function out() { $(this).fadeTo(slow, 0.6); }
function
Hello everyone, I'm new here, and I also new in jQuery :)
I have an appearance page problem..
Firstly, if you visit this link, the appearence of the page is ok, whether
you open it in Firefox or IE (6 and 7).
http://www.asianbrain.com/index.php?aff_code=563232
But, the problem is when you
That's even better, I'm already using it that way and it didn't come to my
mind to use it as alternative for the each() method.
On Thu, Jun 12, 2008 at 12:55 AM, Michael Geary [EMAIL PROTECTED] wrote:
But it's so easy to use event delegation that you may as well just do it
- then you don't
In would like to use some of the UI effects in my Innerfade Plugin I
did as below ...
but how could I manually Edit the Innerfade Plugin to add an Effect
to it...
I've checked it with slideLeft effect
please help me on this
head
script type=text/JavaScript src=jquery.js/script
script
Hello everyone, I'm new here, and I also new in jQuery :)
I have an appearance page problem..
Firstly, if you visit this link, the appearence of the page is ok,
whether you open it in Firefox or IE (6 and 7).
http://www.asianbrain.com/index.php?aff_code=563232
But, the problem is when you
Hi,
what would you consider the 'best practice' to access form input
values?
Having an input field
input value=New topic class=inputEdit name=title
type=text
I could use
$('[EMAIL PROTECTED]').val()
or
$('[EMAIL PROTECTED]title]').val()
or
$('[name=title]').val()
or
xwisdom wrote:
Hello Paulo ,
Can you say why you use the row data formate [id:value, cell:
[col1,col2,col3]] instead of [{name:value},{name:value},{name:value}]?
Does anyone one have a way to get Felxigrid to with this format:
[{name:value},{name:value},{name:value}] ?
On line 410 in
I'm reading a tutorial from here
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
I'm trying the examples given there.
A window does not pop-up when I click a link from the ones on the
page.
Why is this happening ?
1 html
2 head
3 script type=text/javascript
I'm based in Ireland and I find that accessing the docs is very slow.
Are there any European based mirrors for the documentation?
If not are you open to the idea of partnering with European Based
hosting companies for mirroring the docs?
Ooor
var fileName = $('img').attr('src').split('/').pop();
Cheers :)
--
Ariel Flesler
http://flesler.blogspot.com/
On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote:
Hi there,
You could do it like this:
var path = $('img').attr('src');
var fileName =
On this page, http://www.webrichtlijnen.nl/, when scrolling down you
see that there will be added to arrows that are used to get back to
the top off the page.
I looked at the script and thought this could be made with jQuery a
lot easier.
At the moment I have this:
jQuery(function($) {
I'm coming along OK, my chained combo box is working brilliantly but
the last one needs to be dynamic.
This is the code I have to power that one:
$(#edcounty).change(function() {
$county = $(this).val();
$(#edinst1).css(display, block);
if($(#educType).val() == 'unirow') {
I have a page that uses SWFUpload. It lets the user select multiple
files, then it puts those files in a queue and uploads them. After
each one is uploaded, a callback fires that makes an AJAX request to
the server for filename of the picture as it now exists on the server
(obviously, it gets
I'm trying unsuccessfully to specify a range for the excellent
Validation plugin using metadata, e.g.:
input type=text name=weight id=weight value= range=45,135
But I get a validation error message of Please enter a value between
4 and 5. so clearly I'm not specifying the range values
Everything is loading just fine here: Belgium, 600kbps connection. Are you
sure it's not cause locally?
On Thu, Jun 12, 2008 at 12:07 PM, Tim Swann [EMAIL PROTECTED] wrote:
I'm based in Ireland and I find that accessing the docs is very slow.
Are there any European based mirrors for the
var path = $('img').attr('src').replace(/.*\//, '');
Actually, I like Ariel's solution better as it's more readable. I
just have a personal compulsion to solve every problem with regex.
On Jun 11, 4:36 pm, yo2lux [EMAIL PROTECTED] wrote:
path variable store the following:
Cool...
Demo link doesn't work. Does anyone have this in place yet?
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rey Bango
Sent: Wednesday, June 11, 2008 9:41 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] [PLUGIN] Tweet! Added Twitter
Martin,
Check out the Field plug-in:
http://jquery.com/plugins/project/field
This provides the type of functionality you're looking for (of providing
form values back for any type of field.)
-Dan
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf
I've got a site in which I'm trying to get W3C validated and running
into a few issue with jQuery and I wondered how people worked around
stuff like this:
Here I'm injecting some HTML into my site...
// append a graphic * to the req'd fields
$('.reqdfield').append('img
ok Merci FrenchilnLA your solution is a good idee, but i work with
Moss and i m not developer's.
Whit the last Jquery version, i can see my id in yahooCopy but the
link is not good in the yahoo.htm i create a div id=MONIDcoucou/
div
And in the index.htm
script
if nothing else works try using a web proxy like the one present at
http://hidemyroot.info
just a thought ...
On 06-12 14-43, Isaak Malik wrote:
Everything is loading just fine here: Belgium, 600kbps connection. Are you
sure it's not cause locally?
On Thu, Jun 12, 2008 at 12:07
Hi,
i've played around with the treeview jquery plugin these days. I
modified the code for adding branches as it is shown in the demos a
little bit and tried to add an animation to it. But i couldn't figure
out how to do it. This is my code:
$(document).ready(function(){
Hi,
I don't really know if this is a jQuery issue or a Firefox issue... I
have an internal status page that polls a monitoring system every few
seconds to fetch a JSON[0] document with details of current network
status. I use that to populate a ul, having first call .empty() on
it.
Overnight,
I don't think W3C Validator checks injected dom.
Did you tried to validate the document from local?
--
Luca
On Jun 12, 3:06 pm, Priest, James (NIH/NIEHS) [C]
[EMAIL PROTECTED] wrote:
I've got a site in which I'm trying to get W3C validated and running
into a few issue with jQuery and I
so basically the original code at
http://docs.jquery.com/Plugins/Autocomplete#Example
is
[code]
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
script src=http://code.jquery.com/jquery-latest.js;/script
link
I'm sure there's something really simple I'm missing, but for the life
of me I can't figure it out.
here's a link to the page: http://smple.com/jquery/image_alt/
Basically, I just want the current .jpg to display the pop up box.
Here's the .js
Yup, sounds like you have a memory leak all right.
Here's the quintessential article:
http://www.crockford.com/javascript/memory/leak.html
That'll get you started diagnosing the problem.
-- Josh
- Original Message -
From: Howie [EMAIL PROTECTED]
To: jQuery (English)
docs are realy slow. Im based in switzerland.
On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote:
I'm based in Ireland and I find that accessing the docs is very slow.
Are there any European based mirrors for the documentation?
If not are you open to the idea of partnering with European
Noob answers Noob:
I think you have to put
$(a).click(function(event){
9event.preventDefault();
10alert(Thanks for visiting- babu!);
11alert(This is my alert);
12 });
in you document.ready function.
$(document).ready(function(){
// Your code here
});
this is a main
You need to put some comment blocks around your Javascript/jquery code
so the validator will ignore it.
something like this:
script type=text/javascript
/* ![CDATA[ */
your script here
/* ]] */
/script
On Jun 12, 8:06 am, Priest, James (NIH/NIEHS) [C]
[EMAIL PROTECTED] wrote:
I've
Yep - I'm running it through the WebDeveloper toolbar in Firefox -
Validate Local HTML.
Jim
-Original Message-
From: Roncioso [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 10:16 AM
To: jQuery (English)
Subject: [jQuery] Re: Help with W3C validation and jQuery
I
Try to put your javascript in an external file
or
in cdata tags
![CDATA[
// javascript goes here
]]
The text inside the CDATA, will be ignored by the w3c parser
More info: http://www.w3schools.com/XML/xml_cdata.asp
You could also try this method. Not that nice though, but i think it
would
If you're still having problems try out: www.coralcdn.org.
Information on how to use it can be found at their Wiki section.
On Thu, Jun 12, 2008 at 4:48 PM, tlob [EMAIL PROTECTED] wrote:
docs are realy slow. Im based in switzerland.
On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote:
Hi biggimot
I have had the same problem this morning. I used ajaxForm function in order
to attach a form in a thickbox.
I've solved it including
http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js
jquery.form.js .
I hope this will help you to succed too :).
(Sorry for my
Hi
I've got some troubles with treeview:
http://reunion-industrial.es/reiphp/productos.php
First time it loads it Works perfectly, but when I click on one
subsubsubfamily and the page reloads, it seems the treeview loads all
the ítems at the same time. That is visible only a few ms but it
Firefox 2 has major problems with memory leaks, when many pages has
been loaded. How about try running your monitor script in another
browser ?
Firefox 3 was rewritten and should no longer have memory leaks. It is
still in beta stage though...
On Jun 12, 4:01 pm, Howie [EMAIL PROTECTED] wrote:
Was wondering if any had an idea to how this menu was created and if at all
using jquery?
its the menu on the left, basically as you scroll up the page the menu moves
with it but when the top of the menu gets to the top of the browser it then
stays fixed their so you can always see the menu.
Its pretty hard to read the code, but you need to close your $
(document).ready(function(){
Your code:
script
$(document).ready(function(){
var data = [ {text:'Link A', url:'http://www.jquery.com/'},
{text:'Link B', url: 'http://docs.jquery.com/Plugins/
Also experiencing slow docs here in Denmark, approx 5-10 seconds for
each pageload :(
On Jun 12, 4:48 pm, tlob [EMAIL PROTECTED] wrote:
docs are realy slow. Im based in switzerland.
On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote:
I'm based in Ireland and I find that accessing the
And that's why Ariel is da man! Nice one.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote:
Ooor
var fileName = $('img').attr('src').split('/').pop();
Cheers :)
--
Ariel Flesler
var actions = {
unirow:'unis',
collegerow:'colleges'
// more actions
};
$(#edcounty).change(function() {
var county = this.value,
action = $(#educType).attr('value');
$(#edinst1).show();
if( actions[action] )
$(#edinst2).load('vip/education.php',
Rob,
QBN is actually a jQuery site so you should be able to look at the
source and see how they're doing the menu.
Rey...
robdove wrote:
Was wondering if any had an idea to how this menu was created and if at all
using jquery?
its the menu on the left, basically as you scroll up the page
Hi John,
Basically, all you need to do is change $('span') to $(this).next()
Also, if you have the spans set to position:absolute; bottom: 0; you
should be able to use a simple slideDown() and slideUp() (though the
meanings will be reversed)
So, something like this should work:
Firefox 3 was rewritten and should no longer have memory leaks.
That should highly probably be:
Firefox 3 was rewritten and most memory leaks are fixed.
Even Firefox 3 can use up a lot of memory after a while of browsing.
On Thu, Jun 12, 2008 at 4:51 PM, NichlasBrodegaardLarsson
[EMAIL
Hey !
Thanks man
That was pretty awesome :)
On 06-12 07-49, tlob wrote:
Noob answers Noob:
I think you have to put
$(a).click(function(event){
9event.preventDefault();
10alert(Thanks for visiting- babu!);
11alert(This is my alert);
12 });
in you document.ready
Thanks for the reply, Mike. Your point on bad markup was well taken--
these examples I'm about to post have passed validation against W3C's
markup validator (as 4.01 strict). :)
I've got two example files out there that more closely resemble the
page that was giving me issues to begin with:
Hello.
Looking for a way to change the text of a toggle link, so when toggled
off the link reads show when toggled on the links reads hide
Here's what I have:
HTML
*
a href=# class=detailstriggerShow/a
div class=filedetails
The details are here.
/div
Thanks Mike you are a star!
These are exactly the transitions I wanted and are very quick compared
to the brothercake ones.
James
On May 23, 8:18 pm, Mike [EMAIL PROTECTED] wrote:
It's currently not possible to cycle with clip animation since
jQuery's animate function doesn't support it
I have a table, listing foods, and each row in the table has a few
checkboxes the user can check to show if they eat the food for
breakfast, lunch, dinner, etc. For example:
td width=8%
center
input type=checkbox name=Dinner_id_5
value=9003
thank you, it works very well =)
Thanks, worked like a charm:) Now, to get it to look good in IE6...
On Jun 12, 11:14 am, Karl Swedberg [EMAIL PROTECTED] wrote:
Hi John,
Basically, all you need to do is change $('span') to $(this).next()
Also, if you have the spans set to position:absolute; bottom: 0; you
should be able
CDATA tags fixed the IMG issue!
Thanks!
Jim
-Original Message-
From: tlphipps [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 11:03 AM
To: jQuery (English)
Subject: [jQuery] Re: Help with W3C validation and jQuery
You need to put some comment blocks around your
I use blockUI for my intranet site, so I can't provide a demo page,
but every user in the company must use IE6. To fix this problem, I
modified lines 132 - 134 to the following:
var lyr1 = ($.browser.msie) ? $('iframe class=blockUI style=z-
index:'+ z++
I just saw this post by rxal on Nabble (
http://www.nabble.com/IE6-and-blockUI-Issue-td17539499s27240.html )
I've come across the same problem, in my case putting commenting out a few
lines in install functions solved the problem - I'm using ver. 2.07
look at the lines 185-194 where if (i
I am having some serious problems with what should be some easy scripting. I
am looking to talk to some one over an instant messenger that could help
guide me through what I am trying to do.
What I am looking to do is take user input and display it in a div next to
it. At that time I would also
I'm rethinking my duplicate ID issue.
What I'm considering now is giving one field a different name, and if
they have JavaScript enabled - rename it... This should pass validation,
and work if the user has JavaScript on or off...
Jim
I am having some serious problems over some easy dynamic content. I am
looking for some one that would be willing to sit down for an hour or
so on an instant messenger and just help me piece together my little
project.
All I am needing to do is without a page refresh take user input data
through
At the risk of slightly drifting the subject of this thread, I took a
look at the demos for the Field plugin:
http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm#examples
Does anyone know if I can use it to select all of the form fields
inside a specific div? IE:
form
I use nyroModal and is very nice and really easy for basic use. What I would
like to do is for each link I have to get the href, width, and high from
database and apply to the setting of the link. Let’s say I have the
following html code
”#” blablala
I tried something like
Anyway I can get the modelbox to appear above any flash video stuff?
Dear list,
I just discovered jQuery and I would like to ask a few things.
I would like to create a Master-Detail Interface (a table with
selected row showing more info). Is it somehow possible to:
- select and highlight a row in Tablesorter?
- and get the data from all the columns of the
Dear list,
I just discovered jQuery and I would like to ask a few things.
I would like to create a Master-Detail Interface (a table with
selected row showing more info). Is it somehow possible to:
- select and highlight a row in Tablesorter?
- and get the data from all the columns of the
My favorite way to get form input values and validate them is by using the
each() method.
Here's an example:
$(function()
{
$('#myForm input[type=text]').each(function()
{
switch (this.name)
{
case 'first_name':
// validate the first name input field here
Glad I'm not the only one finding it slow.
I do think that some official mirrors would be a good thing.
While I'm not in a position to make an offer of an Ireland/UK mirror
for jQuery, I could make a suggestion to those who are in a position
to do so, and who have already done so for php.net
What you need is AJAX and jQuery can perfectly help you with that, however
asking someone to sit down with you for an hour and guiding you through
every step is a bad way to build experience. What you should do is browse
the very extensive jQuery documentation section and learn the syntax step by
Hello?
Chasery wrote:
I am having some serious problems with what should be some easy scripting.
I am looking to talk to some one over an instant messenger that could help
guide me through what I am trying to do.
What I am looking to do is take user input and display it in a div next to
And right now, the half arsed script that I have plugged in there for jQuery
(form plugin) is relying on a php document to display this information. I
would think the script wouldn't need to go to an external file just post
that information else where on the page???
Chasery wrote:
Can you post at least your html code. to see how your page is made. if i
understand you corretly you want to copy value of text box (UID value) to a
div
You can always start by coding somethign like
$('#div').htm($('#txt').value();) now i don't know by which event you want
to trigger this
FrenchiInLA,
http://www.chasery.com/wi
Basically I want to take all of that user input, and move that info to the
div next to it by hitting the submit button. At the same time, I want a div
to appear below. in the widgets area to show available options. I would
imagine this code all be done
Well.. I doubt someone will sit an hour with you to pull it out, for
free.
People usually do have things to do too.
You can consult on the IRC channel (#jquery), ask plugins owners (Mike
Alsup for jquery.form) or pay someone for consultancy.
Or.. just ask here, but specific questions, not like:
I'm sorry, I have triple posted :D
So, is there anyone who can help me, why this could be happen?
I'm really appreciate your help, thanks
Hi,
I'm new to using jQuery. I'm specifically interested in using the
BlockUI plugin.
I have an existing application. I want to quickly add the BlockUI
functionality to all buttons/links. Some of these elements already
execute existing javascript. I'm trying to avoid having to modify all
this
Check this out.
http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm#examples
jQuery Field Plug-in will give you all filed values in your form
now associate click event to yuor button like
$(function(){$('#btn').click(function(){$('#divID').htm($('#formName').formHash(););})});
Hello,
I just made the jump from Prototype to jQuery and so far I'm really
enjoying it. However, some parts of my website are still using the
Prototype library and I don't have the time or resources at the moment
to recode everything using the jQuery framework.
The problem I have is that I
Hi thanks Klaus for helping me,
I upload a demo of what i whant here :
http://membres.lycos.fr/homeinv/tabs/
(sorry for the ads ist a free hosting)
My function is under tabs # 2 and the problem is discribed here to.
Thanks you very much for your help
On 12 juin, 01:51, Klaus Hartl [EMAIL
This is a handy plugin.
But it seems to be throwing an expected '(' error in IE. and not
functiong correct.
FF works OK.
If anyone else can confirm the but I will post a bug report.
On Tue, Jun 10, 2008 at 11:55 AM, Seth - TA [EMAIL PROTECTED]
wrote:
Found this plugin to do the job.
On Jun 5, 5:07 am, Seth - TA [EMAIL PROTECTED] wrote:
I got a little bit of info from this old thread
-http://groups.google.com/group/jquery-en/browse_thread/thread/e0d6c19...,
however, not enough. For some reason, when sorting numbers, it
disregards the second number. So if I have
Is possible to use a for loop variable ( i ) in jquery $, something
like:
for (var i=0; imyCookies.length; i++)
{
$('#forum-list-[i']).hide();
}
I need the i value in $. But my code not work. Any idea ? Thanks!
Hi,
I'm playing with the slider: http://docs.jquery.com/UI/Slider
I set the callback to fill in the value of the sliderVal div:
$(document).ready(function(){
$(#mySlider).slider( { min: 1, max: 720, steps: 720,
slide:function(e, ui){document.getElementById(sliderVal).innerHTML =
Remember the selector is just a string so you can built it up just
like a normal string:
for (var i=0; imyCookies.length; i++)
{
$('#forum-list-' + i).hide();
}
Karl Rudd
On Fri, Jun 13, 2008 at 10:26 AM, yo2lux [EMAIL PROTECTED] wrote:
Is possible to use a for loop variable ( i ) in
Hi All,
The I just released a new ZenCart jQuery templates pack.
It contains 5 ZenCart jQuery templates,
They can be downloaded from http://zencart-jquery.com
Enjoy and any feedback is appreciated,
Ant.
On Jun 9, 12:31 am, anthonyd [EMAIL PROTECTED] wrote:
I have a few other jQuery templates
Hi, all
Is there an easy way to get all the input values on a form into an
object? Thank you very much!
Jack
I found a way to do it.
$(#Filter_Dropdown).change(function () {
var str = ;
var orig_str = ;
orig_str = $(#Filter_Dropdown option:selected).text();
str = '.' + orig_str;
$(.food_planner tbody tr).show();
Jack,
The Field plug-in has a formHash() method which does exactly that:
http://jquery.com/plugins/project/field
You can see an example here:
http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm
If you are using Firebug, you can see the dump of the form in your console
when you
Dan,
Thank you so much!
Jack
On Jun 13, 12:17 pm, Dan G. Switzer, II [EMAIL PROTECTED]
wrote:
Jack,
The Field plug-in has a formHash() method which does exactly that:
http://jquery.com/plugins/project/field
You can see an example
I asked this via another thread, but no reply yet... so tossing it in
here, too. Do you know if *any* selector can be used with .formHash()
or just an id for a form? IE, if I have a few divs inside a form can I
use a div id to just get the formHash for form fields inside that div?
Thanks,
a
89 matches
Mail list logo