On Feb 5, 2008, at 1:16 AM, [EMAIL PROTECTED] wrote:
Is there any function like AJAX.UPDATER in Prototype ??
Or how can I automaticly do AJAX.req in time interval for.ex. 2
minutes ?
Is there a need for plugin? Warning untested code, but you will get
the idea.
setInterval(
Hi all,
Hoping (and betting) that this is a simple fix but I have two fields -
the month and year of a card expiry date. Both of them need to have a
selection made, but I only want to show ONE error message if EITHER of
them are left blank.
At the moment, if both fields are left blank, two
finaly I am not alone anymore ;-)
On Feb 5, 2:15 am, Josh Nathanson [EMAIL PROTECTED] wrote:
Access...confirmed. =]
- Original Message -
From: CFMike
To: jquery-en@googlegroups.com
Sent: Monday, February 04, 2008 4:00 PM
Subject: [jQuery] jquery newbie test
Please
Hi guys,
I have this code where it will dynamically load the html code coming
from a remote url but when I created an event for this html code.
Jquery doesn't recognize the elements coming from this html code. What
should I do for jquery to execute the click event p
id=contentsTest/p?
Thanks
Couldn't you just use a visibility:hidden; style in your css? Or maybe
put it into your jquery so the list is only hidden if you have
javascript enabled.
On Feb 5, 2:12 am, rich [EMAIL PROTECTED] wrote:
Ah, ok. I thought you were looking to hide that quick flash of the
image list before they
Karl,
Thank you! This is what I was looking for!
Karl Swedberg schreef:
One way to solve your dilemma is to use tr:nth-child(even). That will
select all table rows that are an even child of their parent
element. This should work:
$(table tr:nth-child(even)).css(background, #cc);
Karl,
Again, many thanks. Only just one question...
I have used your one-liner like this:
$(table tr:nth-child(even)).css(background, #cc);
I played around with the :not(:first) to eliminate the first row of
each table but i do not get it working. Is this possible to use this,
or is it
Hi,
I have two jsp pages.
In one I create a form:
form id=uaForm action=basic.jsp method=post
...
/form
I have bound this form to ajaxForm
$('#uaForm').ajaxForm({
target: '#htmlChartTarget',
success: function() {
$('#htmlChartTarget').fadeIn('slow');
}
Allex,
This is what I was thinking of but couldn't get my hands on the
'find'.
Your solutions works, but I think I go for Karls solution (a one-
liner).
Thank you!
Smith, Allex schreef:
Couldn't you just use $(this) and then do whatever selector?
$(table).each(function() {
Josh and Aaron- Thanks
On Feb 4, 5:15 pm, Josh Nathanson [EMAIL PROTECTED] wrote:
Access...confirmed. =]
- Original Message -
From: CFMike
To: jquery-en@googlegroups.com
Sent: Monday, February 04, 2008 4:00 PM
Subject: [jQuery] jquery newbie test
Please ignore.
On Feb 1, 10:29 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
Hi lihao
Is there any method under Firefox that the caret and the selected text
can automatically jump to the center of the textarea so that people
dont need to scroll down/up to find it??
Not that I know of, but you could force
Hey all, somewhat new to jQuery.. glad to have found this group, hope
to be involved and help out when I can.
Trying out the scrollTo plugin at www.stirman.net... just some dummy
data there now.
Everything is working great in Safari, but in FF, the scrollTo links
don't work at all? Is there
First, here is my code for test.php file. It has a form with 2 text
fields. Once submitted it adds a record to database and gives a
message 1 record added. in a div message :
?php require_once('Connections/local.php'); ?
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
Hi,
I am having some problem with the form plugin: jquery.form.js, may be
related to general issue with jquery itself.
I have two jsp pages.
In one I create a form:
form id=uaForm action=basic.jsp method=post
...
/form
I have bound this form to ajaxForm
$('#uaForm').ajaxForm({
target:
Hi!
I'm trying to position a div, #lt, absolutely in relation to another
div (#content), and subtract 24px so that div#lt.left =
div#content.left - 24px:
$(div#lt).css(left, eval(parseInt($
(div#content).css(left))-24));
The problem is, I can't get it to happen. I've tried a lot of
different
Hello,
I have to use [] in the name and the id of the inout of my form.
For example, I use this syntax:
input id=tx_dmmjobcontrol_pi1[apply][city] type=text
class=textCity name=tx_dmmjobcontrol_pi1[apply][city] /
And in the jqurey :
tx_dmmjobcontrol_pi1[apply][city]: {
I think it's generally proven that inserting dom objects is much
slower than innerHTML, for the kind of inserting you're trying, that
might be worth investigating...
On Feb 4, 1:57 pm, Ashish [EMAIL PROTECTED] wrote:
Hi ,
I am very new to jquery. I am using jquery 1.2.2 . I use jquery
I got this problem as well. Nothing seems to help, no css changes nor
changing the lis to divs. Any ideas?
On Feb 1, 9:10 pm, lgr888999 [EMAIL PROTECTED] wrote:
http://paste.css-standards.org/31399/view
Checkout the slide out of Ice Hockey orTennis. Seems like the
duration is calculated
script type=text/javascript
$(document).ready(function() {
$('#form1').ajaxForm({
target: '#message', success: function(){$
('#message').fadeIn('slow');}
});
});
/script
div id=message
?php echo $msg; ?
$('#' + self.options.auto_complete_id + ' li').bind('mouseover', function()
{
//code
});
now is there a way i can get the element number of the one my mouse is
currently over? I mean lets say there is 10 li's in that list and my mouse
is over the 4th one, is there a easy way to get the
On Feb 5, 7:57 pm, Snef [EMAIL PROTECTED] wrote:
Karl,
Again, many thanks. Only just one question...
I have used your one-liner like this:
$(table tr:nth-child(even)).css(background, #cc);
I played around with the :not(:first) to eliminate the first row of
each table but i do not
Hi Lihao, I assume 550 is width and height so it's a squared textarea.
IMO 550 fits on any screen ( fits on 800x600 ).
You could simply scroll to the textarea and leave a gap below. You
could add a margin to the textarea and set the option 'margin' to
true, will it stop when it reaches the
Can you use the :nth() selector ?
Are the buttons next to the list items? If so could you just find the
form that is next to the button? Eg: $(this).next(FORM)
On Feb 5, 2:12 am, jg [EMAIL PROTECTED] wrote:
Hope that makes sense. Any thoughts?
How much time did you spend searching for a free version? Did that
cover the $289?
On Jan 29, 8:39 pm, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Thanks for the link. I notice this goes for $289 for a commercial
license. Know anything that's freeware?
- Dave
Hello Everyone!
I would like to retrieve Wordpress posts/pages etc. without page reload
(ajax loading) using Jquery,
though I don`t know how to implement this in Wordpress.
Basically, I would like the post/page to be output into a div layer, without
page reload.
How can this be achieved? If
http://extjswordpress.net/
no more needed :-)
micha
I've created the nested tab structure and it does its initial display
just fine.
I'm having problems with displaying remotely generated content within
a region of one of the nested tabs. The region is defined as a DIV
and I've double-checked the naming throughout.
The remote content is being
Have you checked $(document.body).height()?
On Feb 4, 10:21 am, rich [EMAIL PROTECTED] wrote:
On most of my projects I have some js to push the footer to the bottom
on pages with little/no content (compares document height and viewport
height). When I upgraded to jQuery 1.2.2 it stopped
I think the problem is that you are not preventing the # from
appearing in the url, that generates some sort of default scroll, I'd
bind those onclicks in a non-obstrusive way, try this:
script type=text/javascript
jQuery(function( $ )
$.scrollTo.defaults.axis = 'x';//so we don't need to
my script
$('a#corregir_jqm_trigger').click(function(){
$('#jqm').jqm({ajax: this.href, trigger:
'#corregir_jqm_trigger', modal: 'true', target:'div.jqmAlertContent',
overlay: 50, overlayClass: 'whiteOverlay', cache: false, onLoad:
$('#' + self.options.auto_complete_id + ' li').bind( 'mouseover',
function() {
$this = this;
$(this).parent().children().each( function( i ) {
if ( $this == this ) {
alert( i + 1 );
}
});
});
On Feb 5, 8:15 am,
I'm reading 'learning jQuery'. In this example, and in fact every
example, why do you pass a function as an argument.
$(document).ready(function() {
$('.poem-stanza').addClass('emphasized');
});
why can't I do this?
$(document).ready(
$('.poem-stanza').addClass('emphasized');
);
Thanks. I'm
when you do the original ajax action, you need to store the variables
about the search somewhere (global variable, cookie, somewhere in the
document) such that when you do the customer type change, it can get
those values and pass them back to the original ajax search function,
making sure to
Hi Eridius,
I guess this could do it:
$('#' + self.options.auto_complete_id + ' li').each(function(i) {
// i is now an index
$(this).bind('mouseover', function() {
//do something on mouseover
});
});
--
Bohdan Ganicky
On Feb 5, 2:15 pm, Eridius [EMAIL PROTECTED] wrote:
Perfect. That fixes it. Thanks Scott
On Feb 5, 9:03 am, Scott González [EMAIL PROTECTED] wrote:
Have you checked $(document.body).height()?
On Feb 4, 10:21 am, rich [EMAIL PROTECTED] wrote:
On most of my projects I have some js to push the footer to the bottom
on pages with little/no
untested but something like this should work using closure:
$('#' + self.options.auto_complete_id + ' li').each(function (i) {
$(this).bind('mouseover', function() {
if (i == 3) {
//code
}
});
});
David
Hello,
I have the following function:
// Show and fade out a feedback message
$.fn.addFeedback = function(feedbackMessage){
var offset = $(this).offset();
var feedbackDiv = div class='feedback' id='feedbackElement'
style='display:none;position:absolute;left: + offset.left +
It is almost always useful if you post *relevant* code for these kind
of problems. Otherwise we can only guess or have to spend some time on
writing a reply asking you for such code ;-)
(By relevant I mean not to simply dump 400 lines of HTML +
JavaScript source code in here...)
There's nothing
Hi all,
Another little query requiring assistance :)
I've got an AJAX search form - you type in a search keyword, underneath
the box you get a list of matches and prices. There are also other AJAX
forms for searching by category, drilling down through a category tree,
and searching by series
http://sidekick.com/
I am basically looking for a plug-in that does what the bottom does. I
thought i already saw one but can't seem to find anything and that plug-in
uses mootools and i really don't want to use mootools and jquery.
--
View this message in context:
Rob definitely has the best answer here.
Structure your table like so:
table
captionCaptions are good/caption
thead
tr
thheader/th
throw/th
/tr
/thead
tfoot
tr
I haven't writen a plugn that does this but something like:
$.fn.addFeedback = function(feedbackMessage, callback ){
...
if(jQuery.isFunction(callback)
callback.apply($(this));
??
Someone with better plugin-fu could probably tell me how that's all wrong.
Also, you might need to deal with
Thanks, Scott,
You're right, I'll have a look at this - I'm still really something of a
beginner here! And you're right about the timing, too, I'd want the callback
function to only start when the animation ends, or better, when it's about
to end, so any transition is fairly seamless.
I guess I
Yea, i just thought about the .each thing about 15mins ago and it worked
perfect. Thanks for the replies.
Bohdan Ganicky wrote:
Hi Eridius,
I guess this could do it:
$('#' + self.options.auto_complete_id + ' li').each(function(i) {
// i is now an index
Hi Snef,
Since you asked me directly, I thought I should put in my answer, for
the record. Here goes:
What they said ... :-)
(i.e. I agree with Allex and Rob)
Cheers,
--Karl
On Feb 5, 2008, at 11:13 AM, Smith, Allex wrote:
Rob definitely has the best answer here.
Structure your
toggle() works great but im wondering if its possible to combine it
with fadeIn / fadeOut so that the change isnt so abrupt? i tried just
appending it after toggle() in the code below but that doesnt work.
anyone?
$(.bio-toggler).click(function () {
$(#bio-form).toggle()
Yes, I know! ;)
Thanks!
Smith, Allex schreef:
Rob definitely has the best answer here.
Structure your table like so:
table
captionCaptions are good/caption
thead
tr
thheader/th
throw/th
/tr
Thanks for the help Shawn! Works great!
On Jan 21, 3:38 am, Shawn [EMAIL PROTECTED] wrote:
I did it in this way
// jquery version: 1.2.1 packed
if($.browser.msie){// in ie6
$xml=xml+$response+/xml;// xml .. /xml is needed for
ie6}else{
Hi Cherry - I enjoyed reading your blog. It's especially interesting
informative to read what issues jQuery newcomers come across.
One issue that it seemed you may not have grasped is when to escape
characters. This isn't something specific to jQuery - it's actually a
Javascript-wide issue,
Hello,
I want to validate a non-required text field that can hold an email
address. That is, it can be empty, but if it does contain text it must
be a valid email address. I use jQuery 1.2.2 and jQuery validation
plug-in v1.2. This code allows any input for some reason:
form id=form1
FYI, for anyone else who might want a solution for this..
I ended up doing it using an alternate reverse ajax which closes the
connection after an update is sent.
On the first call, the client requests a long-executing call be
started. The server starts a thread to perform the request and
Anyone have any suggestions. I have tried liveQuery and I have tried
it with the Forms plugin but I just can not get the first set of
returned links to act as links after the second set of data has been
returned.
To see it in action
http://ncas-cms.nerc.ac.uk/data/startFiles/anim_overlay.php
Hey,
I'm trying to clone a section of code that contains radio buttons.
I'd like the original section the cloned section to be in different
radio button groups. However, this doesn't seem to be happening with
jQuery cloning. I've reduced my code as much as possible to test out
the scenario,
Shall I explain better what I mean or does nobody know an answer?
Thanks!
On 2 Feb., 13:14, KnoxBaby [EMAIL PROTECTED] wrote:
Hello,
I have a very big table with many rows and columns. The first row and
the first column contain some titles/descriptions. Is there a jquery
plugin, that always
stirman let me know I had a missing { in the code. Right after the
first function. This is the corrected version in case someone uses it
as a base for something else.
jQuery(function( $ ){
var positions = [ '-=900', '+=900', 4000 ];//scroll positions
var $links = $('div.move_link
Seth - TA schrieb:
Jörn -
Thanks for doing that. Is 1.2.1 out? I saw in the trunk that the
validate.js says 1.2.1pre. Is it usable? Thanks.
Yes, it is usable. Unless I get more bug reports I'll release that in
one or two days.
Let me know if you spot a problem, I should be able to fix it
Hi,
I have made an attempt at making a horizontal scrollbar using the
ui.slider and bits of code hacked together from the UI examples.
So far so good in that it works on all browsers, and my code seems ok.
There is a problem however in mostbrowsers (apart from Firefox,
surprise surprise!),
Michael Price schrieb:
Hi all,
Hoping (and betting) that this is a simple fix but I have two fields -
the month and year of a card expiry date. Both of them need to have a
selection made, but I only want to show ONE error message if EITHER of
them are left blank.
At the moment, if both
felixg schrieb:
Hello,
I want to validate a non-required text field that can hold an email
address. That is, it can be empty, but if it does contain text it must
be a valid email address. I use jQuery 1.2.2 and jQuery validation
plug-in v1.2. This code allows any input for some reason:
[...]
Try this:
http://www.ajtrichards.co.uk/heartbeat/
On Feb 4, 3:16 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Is there any function like AJAX.UPDATER in Prototype ??
Or how can I automaticly do AJAX.req in time interval for.ex. 2
minutes ?
Many thanks Ariel!!!
On Feb 5, 12:55 pm, Ariel Flesler [EMAIL PROTECTED] wrote:
stirman let me know I had a missing { in the code. Right after the
first function. This is the corrected version in case someone uses it
as a base for something else.
jQuery(function( $ ){
var positions
That is absolutely brilliant :)) A massive help - thank you, Wick!
As you've seen, my Javascript is rubbish to begin with. Having to deal
with jQuery structures, without much ground-level knowledge, is really
hard at times. I almost chose Prototype, which looked as though I
could apply more
You can check out the plugin I have been working on also. It uses the Bayeux
protocol to handle channeled communication with a cometd server.
http://plugins.jquery.com/project/Comet
On Feb 5, 2008 8:11 AM, Jamie [EMAIL PROTECTED] wrote:
FYI, for anyone else who might want a solution for this..
Is there any other way to do it than this? Could I somehow pass the
original element to the callback function?
$('.abc a').click(function() {
var tmp = $(this);
$.get('/abc', {id: '1'}, function(data) {
tmp.next().html(data);
});
return false;
});
lorent schrieb:
Hello,
I have to use [] in the name and the id of the inout of my form.
For example, I use this syntax:
input id=tx_dmmjobcontrol_pi1[apply][city] type=text
class=textCity name=tx_dmmjobcontrol_pi1[apply][city] /
And in the jqurey :
tx_dmmjobcontrol_pi1[apply][city]: {
Hi there, hopefully a quick question:
I'm setting up a filter box that, on key up, will show/hide rows in a
table based on a certain columns text() value. What I'd like to do is
the following:
$('tablename' tr td:contains('filtertext').parent().show();
as an example. However my understanding
Hello everyone! I've been reading this group's messages for a while
now. Its really helpful and has kept me from having to ask a question.
Until now.
i'm having an issue with some code working in Safari 3 but not in
Firefox 2.0.0.11 and Firefox 3pre Beta (the nightly builds). I have a
file
im getting one error using the jquery.validate.pack.js in ie6
not happening with normal version
So I downloaded jQuery 1.2.2 and UI from the site, and kept getting
errors (such as draggables throwing a not a function error.) I
borrowed a copy of ui from some random website, which at least got
draggables to work, but not entirely - opacity isn't working.
It seems like I can't depend on
Hi all,
I'm using Klaus' History/Remote plugin for Jquery.
I have the JS included, and the script looks like this:
script type=text/javascript
$(function() {
$('a.remote').remote('#files', function() {
if (window.console window.console.info) {
Hey Jörn - Thank you for fixing this is the next release. I have just
submitted a bug report.
Please see message: [validate] validator.pendingRequest below 0
(function stopRequest is called when not needed resulting in
pendingRequest becoming less than 0) - also submitted a solution.
Yuval Karmi
Hey Jorn,
I believe I have found a bug in jquery.validate 1.2.
I use a few remotes to make sure a username or an email is not
taken. Sometimes I would have some errors in my form and would click
the submit button a few times to validate fields - and then would fix
the fields containing errors,
Bruce MacKay wrote:
: Hello folks,
:
: I'm trying to duplicate a row of an existing table using a function
: adapted from
: http://www.nabble.com/Add-Table-row-to12989886s27240.html#a13300133
:
: My problem is that I cannot identify the identifier of the last row
: (of the original table).
I am getting some weird behavior from thickbox reloaded. for some reason
when i trigger a thickbox, it reloads the page with the thickbox by default
showing. I am going to debug this but does anyone know what might cause
this? it might might be my code plug-ins are overwriting a event on
Sebastián Würtz schrieb:
im getting one error using the jquery.validate.pack.js in ie6
not happening with normal version
Could you give the latest revision a try?
http://dev.jquery.com/view/trunk/plugins/validate/
Jörn
Yuval schrieb:
Hey Jorn,
I believe I have found a bug in jquery.validate 1.2.
I use a few remotes to make sure a username or an email is not
taken. Sometimes I would have some errors in my form and would click
the submit button a few times to validate fields - and then would fix
the fields
Jörn Zaefferer escribió:
Sebastián Würtz schrieb:
im getting one error using the jquery.validate.pack.js in ie6
not happening with normal version
Could you give the latest revision a try?
http://dev.jquery.com/view/trunk/plugins/validate/
Jörn
when i detect the first error i download
Sebastián Würtz schrieb:
Jörn Zaefferer escribió:
Sebastián Würtz schrieb:
im getting one error using the jquery.validate.pack.js in ie6
not happening with normal version
Could you give the latest revision a try?
http://dev.jquery.com/view/trunk/plugins/validate/
Jörn
when i detect
This is a critical point to get to use Javascript effectively. The
line
$('.poem-stanza').addClass('emphasized');
by itself is executed as soon as the interpreter gets to it.
function(){ $('.poem-stanza').addClass('emphasized'); }
doesn't execute the addClass; it just creates a function that
Jörn Zaefferer escribió:
Sebastián Würtz schrieb:
Jörn Zaefferer escribió:
Sebastián Würtz schrieb:
im getting one error using the jquery.validate.pack.js in ie6
not happening with normal version
Could you give the latest revision a try?
Thanks Charles for this full and complete response - I very much appreciate it.
Cheers
Bruce
At 09:27 a.m. 6/02/2008, you wrote:
Bruce MacKay wrote:
: Hello folks,
:
: I'm trying to duplicate a row of an existing table using a function
: adapted from
:
Hello folks,
I am using the .clone() method to duplicate a fieldset containing
some form elements e.g.
var clonedRow = $( #sshow_input fieldset:last ).clone();
Within that cloned fieldset is a string of the form sListImage(x)
where x = 1, 2, or 3 etc
With each duplication I need to
I'll create a new plugin, similar to localScroll, that will do just
that. Scroll between items, with prev/next like buttons, I suppose
I'll have it soon (today or tomorrow)
Cheers
Ariel Flesler
On 5 feb, 16:58, stirman [EMAIL PROTECTED] wrote:
Many thanks Ariel!!!
On Feb 5, 12:55 pm, Ariel
Hi, maybe this can help you ?
http://flesler.blogspot.com/2008/01/jquerypreload.html
Cheers
Ariel Flesler
On 15 dic 2007, 16:18, ekallevig [EMAIL PROTECTED] wrote:
Sorry, looks like some of my sample code didn't quite come through.
So basically I started just trying to create an image and
Hi, have you tried this ? http://flesler.blogspot.com/2008/01/jquerypreload.html
You preload the images, and with the callback onComplete, you swap the
background, or with onFinish you swap them all together.
Cheers
Ariel Flesler
On 22 ene, 06:26, Micky Hulse [EMAIL PROTECTED] wrote:
Mika,
Found the answer to my own problem! This will help save anyone a
headache if they ever come across the same problem:
http://www.johnvey.com/blog/2007/07/ie-does-not-bubble-form-select-element-onchange-events
On Feb 1, 9:09 am, ita [EMAIL PROTECTED] wrote:
I'm usingeventbubbling to bind
Interesting:
The main tabs use the naming scheme from the demo (too lazy to change
it, I guess), i.e.: tab-1, tab-2, etc.
I created the nested tabs using the naming scheme of r1, r2, etc.
Using this scheme was where the problem I outlined above occurred.
When I changed the nested tab naming
Hi!, I was trying to minify the validate.js library and started to
appear an js error on Internet Explorer. I decided to use the
validate.min.js even when this have 10K more. There is no problem at
all but I wanna to reported as a bug. :)
Thanx a lot!!!
By the way I love this library!
Jonathan and Karl : thanks for your replies.
Jonathan : I probably gave the impression that I wanted each 3rd li
value copied to each array element. Your code worked brilliantly for
that and I've stored it away for another day.
Karl: that's exactly what I wanted. Problem solved. (BTW I use your
I am trying to unittest a library I am writing so I grabbed
testrunner.js and setup a test area in my project. I use $j =
jQuery.noConflict(); throughout my library. How should I use the
testrunner with this in mind? I can only get the testrunner to assert
that my library's main object exists, as
Argh... I spoke too soon
Hi Stef,
You can write a custom animation like this:
jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
Then, you can do this:
$(.bio-toggler).click(function () {
92 matches
Mail list logo