Then just go for the first one:
http://recurser.com/articles/2008/02/21/jquery-i18n-translation-plugin/
On Dec 20, 12:39 pm, rabab chakhmoune rabab.chakhmo...@gmail.com
wrote:
tkx for your answer,
no i want to create a plugin using jquery
i need't a google's machine to translate
so i want
Hello!
Is there any way in jQuery to test if a input value is blank? I mean
similar like:
if ($F('szoveg').blank()) {
...
}
in prototype. With jQuery now i'm using this:
if ($('#szoveg').val()=='') {
...
}
but this not test if a input contains only whitespaces.
Bye!
Lay
Some performance improvement, especially if you have a lot of
elements.
var txt = $('.article-text');
$('.headline').each(function(i) {
$(this).click(function() {
$(txt[i]).fadeIn();
})
});
On Dec 20, 10:33 pm, chriscoyier chriscoy...@gmail.com wrote:
Perfect!
Thanks Ryura =)
On
Well blank() was not created in jQuery.
You can create a new function for jQuery like this.
(function($){
$.fn.blank = function(){
return $.trim(this[0]).length == 0;
}
})(jQuery)
input id=one value=sadf /
input id=two value= /
$('#one').blank(); // return false
$('#two').blank();
I got a idea,
I think the google translator machine is poor between Babylon machine.
Babylon machine have a lot of words today, lot of words mean, I think
the Babylon machine is a Doctor Know, whatever you type you have a lot
answers about you type.
I have a initial project with Babylon
Why does replaceAll only seem to work once in this example?
I guess you meant replaceWith?
$(#hello).replaceWith(foo);
Once this code executes, it has replaced the element with
id=hello (and any children) with the string foo. There is no
longer a #hello in the document.
ul id=notDiv
lib/b/li
lib/b/li
lib/b/li
lib/bspan id=movingI am moving/span/li
lib/b/li
/ul
If i am inserting into any li, regardless where my span#moving is
in (ie. it can be in the third li, fifth li etc)
var idx = 2; //place with other numbers
I'm having the same problem that is documented
athttp://groups.google.com/group/jquery-en/browse_thread/thread/976e498...,
but can't reply to that thread (too old?).
To summarize the problem, with IE6, whenblockUIis called theselect
boxes dissappear. When unblockUI is called they reappear.
dl
dd...something.../dd !-- MOVE TO HERE --
/dl
dl
dd...something... span id=to_moveTO MOVE/span/dd
/dl
How about this?
$(#to_move).parents(dl:first).prev().find(dd).append($
(#to_move));
posted previously without proper [validate] in title..
reposting...
--
i have this code:
script type=text/javascript src=//ajax.googleapis.com/ajax/
libs/jquery/1.2.6/jquery.min.js/script
script type=text/javascript src=/js/jquery/
jquery.validate.js/script
script
$('d...@id$=_div]').hide();
$('d...@id$=_div]').each(function() {
$(this).fadeIn('slow');
now this code fade in all divs at the same time
how to fade in them one after another sequentially ?
The best I can do is this:
$(function() {
var $sequence =
Hello!
On Sun, Dec 21, 2008 at 3:09 PM, Kean shenan...@gmail.com wrote:
Well blank() was not created in jQuery.
You can create a new function for jQuery like this.
(function($){
$.fn.blank = function(){
return $.trim(this[0]).length == 0;
}
})(jQuery)
input id=one value=sadf /
I don't know about the validation issue. The vague title of the thread
may mean that nobody answers because they don't know it's about the
validation plugin.
I did notice this though...
errorPlacement: function(error, element) {
if(element.attr('id') == 'street_number') {
It looked like a link clicked would expand it AND the link would load.
I did not see the code on that site, but it sounds like you may be
trying this:
$(someElement).someEffect( ... );
document.location = http://.;;
That doesn't allow the effect to finish before you navigate. Instead
try
My version plays nice if you have other libraries that take up the $
namespace (ie, prototype framework)
On Dec 21, 7:50 am, Lay András lays...@gmail.com wrote:
Hello!
On Sun, Dec 21, 2008 at 3:09 PM, Kean shenan...@gmail.com wrote:
Well blank() was not created in jQuery.
You can
Hi,
I have a menu of links that have multiple classes, for example xObject
yObject zObject. I want to dynamically toggle display on elements of
this menu dependent on classes, for example lets suppose I have three
links:
link1 has the classes xObject and yObject
link2 has the classes yObject
First glance, it looks like your first script tag's src attribute is
incorrect:
script type=text/javascript src=//ajax.googleapis.com/ajax/
libs/jquery/1.2.6/jquery.min.js/script
Sean Allen wrote:
posted previously without proper [validate] in title..
reposting...
--
i have this
Thanks !
Works perfectly !
Now could you explain it to me how does the code works ?
So I could learn (comprehend) ?
Thanks again !
You can't bind any events to the controls on $(document).ready() if
the html isn't there. I would try binding the event after you call $
(#content).load(loadLink,,hideLoader);
On Dec 21, 10:17 am, suntrop sprungm...@googlemail.com wrote:
Hi there.
I am loading some content into my page …
On Dec 21, 7:49 am, Dave Methvin dave.meth...@gmail.com wrote:
Why does replaceAll only seem to work once in this example?
I guess you meant replaceWith?
Yes, my mistake.
$(#hello).replaceWith(foo);
Once this code executes, it has replaced the element with
id=hello (and any
Now could you explain it to me how does the code works ?
Yeah, it is kind of crazy... :-)
var $sequence = $('div[id$=_div]').hide()
Grabs all the divs and hides them, then assigns the jQuery object with
all the divs to the $sequence variable.
, div = 0;
Just sets the div variable to 0.
Sorry for that, but how can I bind the event after I call $
(#content).load(loadLink,,hideLoader);?
Do I have to replace hideLoader with a function that contains all the
new code?
Thanks for your help!
On 21 Dez., 17:30, DumpsterDoggy chris.mis...@gmail.com wrote:
You can't bind any events
Check out this, think it's what you are looking for
http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/
/Uffe
On 20 Dec, 22:47, Eeby moct...@gmail.com wrote:
Hey y'all. I'd like to provide endless scrolling of search results
in the manner of Google Reader. The thing
Fixed! Thanks for reporting.
Jörn
On Sat, Dec 20, 2008 at 3:51 PM, Giovanni Battista Lenoci
gian...@gmail.com wrote:
Hi, I'm tryng for the first time the validation plugin, I was looking at the
doc here:
http://docs.jquery.com/Plugins/Validation/validate
In the invalidHandler sample code
Your reduction works well, Dave...thanks.
As far as the subject line... I had [Validate] at the beginning of it,
which is what Jorn requested if the email has to do with his plug-in.
Did [Validate] get stripped out?
And concerning the error, it's got to do with the validation events.
I'm
Thanks you very much !
Hope to read more from you.
Bye !
Crowebster
Did [Validate] get stripped out?
Yeah it's strange, when I look at the topic list the [validate] isn't
there, but it is when I view the thread list. Do you see it in this
view?
http://groups.google.com/group/jquery-en/topics
Here's the code that I'd like to make flexible to handle
all the input id's and error message id's. How could I write it?
Thanks,
Rick
$('input#street_number').blur(function() {
if (this.value.length == 0)
Try the liveQuery plugin:
http://docs.jquery.com/Plugins/livequery
On Dec 21, 1:20 pm, suntrop sprungm...@googlemail.com wrote:
Sorry for that, but how can I bind the event after I call $
(#content).load(loadLink,,hideLoader);?
Do I have to replace hideLoader with a function that contains
Nope...I guess Google strips it out...
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Dave Methvin
Sent: Sunday, December 21, 2008 3:43 PM
To: jQuery (English)
Subject: [jQuery] Re: What is causing this error?
Did
I have a site built in ExpressionEngine. I am using JQ Validate to
check the form fields before submission. There are 3 fields in
particular that are interesting to me as they are required by EE and
they are on the list of fields required by JQ Validate.
First Name
Last Name
Invitation Code
Im sure this is easy to do, but I can't figure it out for some
reason. I'm writing a simple little function in Drupal (in script.js
in my theme) to display a different banner image (as a background for
an element) based on the URL. So, for instance, if the URL is
http://www.mysite.com/services,
Client side validation is just there to provide a nicer experience for
humans. If there are conditions that you need to enforce for the sake
of your server-side code or database, then you must do that in your
server-side code.
Nothing stops a hacker from doing a raw submit to your server-side
So, this dude from Poland managed to register without a first name,
without a last name and likely without an invitation code. I'll deal
with the EE issues separately, but is there a known issue where
someone can mess with the jquery in the page to bypass the validation
that is running?
As
I'm not sure what happened there with my multiple replies.
Sorry
--- On Sun, 12/21/08, Wonder95 killsho...@gmail.com wrote:
From: Wonder95 killsho...@gmail.com
Subject: [jQuery] How to get parts of URL after domain
To: jQuery (English) jquery-en@googlegroups.com
Date: Sunday, December 21,
if (url.indexOf(services) 0) {
--- On Sun, 12/21/08, Wonder95 killsho...@gmail.com wrote:
From: Wonder95 killsho...@gmail.com
Subject: [jQuery] How to get parts of URL after domain
To: jQuery (English) jquery-en@googlegroups.com
Date: Sunday, December 21, 2008, 5:10 PM
Im sure this is easy to
if (url.indexOf(services) 0) {
--- On Sun, 12/21/08, Wonder95 killsho...@gmail.com wrote:
From: Wonder95 killsho...@gmail.com
Subject: [jQuery] How to get parts of URL after domain
To: jQuery (English) jquery-en@googlegroups.com
Date: Sunday, December 21, 2008, 5:10 PM
Im sure this is
Here's the code that I'd like to make flexible to handle
all the input id's and error message id's. How could I write it?
Here's one way to do it:
$('#street_number, #street_name, #city').blur(function(){
$(this.id.replace(/_/g, '-')+'-error')
[this.value.length? 'fadeOut' :
In IE, when having elements containing other elements, ie. a div
containing images, when attempting to hide a content-element of a
hidden container-div, this won't work, it won't even be possible
anymore after re-showing the div. This problem occurs:
- only on IE6,7 (didn't try IE8), the problem
How about posting your code?
http://2whoa.com/dominate
--- On Sun, 12/21/08, Paul o.p.go...@gmail.com wrote:
From: Paul o.p.go...@gmail.com
Subject: [jQuery] Order of hiding container-divs and their content matters on
IE6,7
To: jQuery (English) jquery-en@googlegroups.com
Date: Sunday,
Why not get the url and test it?
if (url.indexOf(services) 0) {
do this
} else if (url.indexOf(about-us) 0) {
do this
}
That's one way to do it.
http://2whoa.com/dominate
--- On Sun, 12/21/08, Wonder95 killsho...@gmail.com wrote:
From: Wonder95 killsho...@gmail.com
Subject:
I would think it would make more sense to do this in PHP instead of
JavaScript. You can use PHP code in your Drupal theme.
If you want to do it in JavaScript, you don't need jQuery, regular
expressions, or indexOf. window.location (or just location) has several
properties that give you different
jQuery is just JavaScript code. As such, it isn't capable of crashing your
PC on its own. And it runs fine on much older PCs than yours.
Also, what kind of crash are you talking about? A blue screen? A frozen
system but not a blue screen? Or what?
Something else much be very wrong with your
If you add the event handlers to the callback you can get it working:
$(#content).load(loadLink, function(){
hideLoader();
$('.details').hide();
$('.showDetails').click(function() {
$('.details').slideToggle('slow');
return false;
});
})
On Dec 21, 4:20 pm, suntrop
On Dec 20, 10:31 pm, chinnak chinnakarup...@gmail.com wrote:
Thanks a lot ricardo..
$(':contains(History)','tr').css(background-color,red);
(WORKS)
One thing I understood was
:contains uses the context to search in it children.not in the same
element.becoz when I use 'td' as the
The monitor goes black (like a loss of signal), then either nothing,
or sometimes it reboots on its own. It only happens when executing
jQuery code and I've yet to get a single crash in Opera on the same
pages testing the same code. I've never had this problem in Firefox
before, either.
On Dec
Something wrong with your windows or FF install for sure. There is
nothing special in the way jQuery does animations compared to any
other JS scripts.
I use FF on an AMD 2.0ghz with 1gb RAM very often and never have any
crashes.
- ricardo
On Dec 21, 12:39 am, Magnificent
Wow. Had never seen that construct, very efficient. Learning something
new everyday :)
cheers,
- ricardo
On Dec 21, 10:46 pm, Michael Geary m...@mg.to wrote:
I would think it would make more sense to do this in PHP instead of
JavaScript. You can use PHP code in your Drupal theme.
If you
He just did. Why not read it?
On Dec 21, 10:19 pm, ripple ripple...@yahoo.com wrote:
How about posting your code?
http://2whoa.com/dominate
--- On Sun, 12/21/08, Paul o.p.go...@gmail.com wrote:
From: Paul o.p.go...@gmail.com
Subject: [jQuery] Order of hiding container-divs and
Very interesting, it's definitely a IE rendering bug. display:none is
actually set, and the elements are not affecting layout, but still
visible. Setting visibility:hidden seems to do the job. I guess
there's nothing that can be done on jQuery's side, as this affects
only this specific case and
Thanks to Dave Methvin, it runs. I didn't try Kean's solution, because
David's was simpler, but thanks too.
And I have one more question:
fieldset id=div
dl
dd...something.../dd
/dl
dl
dd...something.../dd
/dl
...
...
...
/fieldset
JS:
if(previous dl == first dl) - how can I check if
Thanks to Dave Methvin, it runs. I didn't try Kean's solution, Dave's
was simpler.
And I have one more question:
HTML:
fieldset id=div
dl
dd...something.../dd
/dl
dl
dd...something.../dd
/dl
...
...
...
...
/fieldset
JS:
if(previous dl is first dl){ ...} else { ... } - how can I write the
Hi,
I just posted an add-on for the excellent jQuery autocomplete plugin.
I am looking for feedback on it.
http://www.devtaxi.com/2008/12/21/country-jquery-autocomplete-plugin/
Regards
What gets me is I've never had this problem with FF before and when it
crashes, it's ALWAYS executing jQuery code via a click handler. No
problems whatsoever in Opera.
On Dec 21, 5:19 pm, Ricardo Tomasi ricardob...@gmail.com wrote:
Something wrong with your windows or FF install for sure.
I don't question the symptoms that you're seeing, but trust me: jQuery may
be triggering the problem, but it isn't *causing* it. jQuery, and JavaScript
in general, simply doesn't have the kind of system access needed to cause a
crash of this sort. It has to be something along the lines I
He said that was a demonstration/example. He didn't say that it's his code.
--- On Sun, 12/21/08, Ricardo Tomasi ricardob...@gmail.com wrote:
From: Ricardo Tomasi ricardob...@gmail.com
Subject: [jQuery] Re: Order of hiding container-divs and their content matters
on IE6,7
To: jQuery
On Dec 21, 2008, at 11:26 AM, DumpsterDoggy wrote:
First glance, it looks like your first script tag's src attribute is
incorrect:
script type=text/javascript src=//ajax.googleapis.com/ajax/
libs/jquery/1.2.6/jquery.min.js/script
that makes no difference to the error one way or
57 matches
Mail list logo