charcounter plugin from Tom Deater. Really I don't see where I
downloaded, so
I attach the code. It is easy change the char counter for a words counter.
[EMAIL PROTECTED] escribió:
Hi,
looking for help for creating the following:
1) textarea maxlenght check. When maxlenght is reached cannot
Your code didn't come through very well, but maybe you want next()?
http://docs.jquery.com/Traversing/next#expr
--Erik
On 9/2/07, ronnie98 [EMAIL PROTECTED] wrote:
Hi all,
i have troubles with subsequent siblings selection.
Provided the following code:
Hi all,
i have troubles with subsequent siblings selection.
Provided the following code:
..
lt;spangt;foolt;/spangt;
lt;spangt;foolt;/spangt;
lt;divgt;firstlt;/divgt;
lt;spangt;lt;/spangt;
lt;spangt;lt;/spangt;
lt;spangt;firstlt;/spangt;
Your code didn't come through very well, but maybe you want next()?
http://docs.jquery.com/Traversing/next#expr
--Erik
Thank you erik but next() is not suitable
since (as from the above example) it selects the first (empty) span
--
View this message in context:
$('div').each(function(){
var text = $(this).text();
$('span').each(function(){
if(text == $(this).text()){
alert('found '+text);
}
});
});
This code will not get you the subsequent siblings but it will get you
the span with the same content as the div.
Thank you david,
but i cannot base my selection on the text/html of the element.
I only put it in the sample to make things a bit clear.
What if i added a class to the span to be selected
ex:
lt;span class=myclassgt;firstlt;/spangt;
lt;span class=myclassgt;secondlt;/spangt;
?
On 9/2/07, Michael Geary [EMAIL PROTECTED] wrote:
Is that the wrong progression?
Yes. You left out the setTimeout, which is never canceled. (And step 4
doesn't happen either - nobody cancels the ajaxStart - that function has
already been called.)
Assume the AJAX request takes 75
My moreSelectors plugin has an undocumented feature that enhances
the .siblings() method to optionally return preceeding or following
siblings only.
Syntax: $(...).siblings(expr, self, prevOrNext)
Specify self as true to retain the current element(s) in the results.
(default is false so that
You need a hook somewhere to base your selection upon and i thought it
was the text of the div and the span.
If you use the id of the div and the classname of the span you can do
$('div').each(function(){
var id= $(this).attr('id');
$('span').each(function(){
if(id =
$('div').each(function(){
var id= $(this).attr('id');
$('span').each(function(){
if(id = $(this).attr('class')){
alert($(this).text());
}
});
});
That attr('class') bit will get you in to trouble. I suggest using
.is(), and in fact, if you know the
Erik Beeson schreef:
$('div').each(function(){
var id= $(this).attr('id');
$('span').each(function(){
if(id = $(this).attr('class')){
alert($(this).text());
}
});
});
That attr('class') bit will get you in to trouble. I suggest using
.is(), and in
I wanted to start a new tread, you can discard this, sorry.
David Duymelinck schreef:
I want to do something with the value of a select option element when
it gets selected
$('option').click(function(){
alert($(this).val());
});
Works fine in FF but not in IE6. I seached the list for a
I want to do something with the value of a select option element when it
gets selected
$('option').click(function(){
alert($(this).val());
});
Works fine in FF but not in IE6. I seached the list for a solution but i
couldn't find any.
Can someone help me?
--
David Duymelinck
Hi folks,
I figured out a problem in the brand new 1.1.4 version with IE 6+ wich
breaks my existing code.
In firefox 1.5+ everything is fine, didn't test any other browsers.
I create a couple of dynamic html element with the html(some html
code) function.
The following codesnipplet results
Little something I worked on sunday.
http://www.appelsiini.net/projects/lazyload
Plugin which enables deferred loading (lazy loading) of images. In
other words, images which are below the fold (far down the page not
visible in browser) are not loaded before user scrolls down. This
plugin
John Resig wrote:
$(.next.open)
The same works in normal CSS.
Not in IE 6 of course, and in IE 7 only in Strict mode[1], just for the
record...
[1]http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx
--Klaus
Hi it seems everytime the heartbeat plugin runs , it refreshes the
current page and keeps calling the uiblock plugin
$(document).ready(function(){
$.jheartbeat.set({
url: /index/heartbeat,
delay: 3000
});
$.blockUI.defaults.pageMessage =
Very cool! That's a great idea to save traffic and optimize load times
on image heavy pages.
-- Felix
--
My Blog: http://www.thinkingphp.org
My Business: http://www.fg-webdesign.de
Mika Tuupola wrote:
Little something I worked on sunday.
Looks like a great plugin but there is something wrong with the demo
page in FF. on IE6 i had no problem.
If i want to switch from disabled to enabled the page keeps on loading
and crashed my browser the first time around. Looking at the page load
in firebug i noticed
Feeling stupid now :(
$('select').change(function(){
alert($(this).val());
});
This did the trick.
David Duymelinck schreef:
I want to do something with the value of a select option element when
it gets selected
$('option').click(function(){
alert($(this).val());
});
Works fine in
On Sep 3, 2007, at 1:35 PM, David Duymelinck wrote:
If i want to switch from disabled to enabled the page keeps on
loading and crashed my browser the first time around. Looking at
the page load in firebug i noticed http://www.appelsiini.net/mint/?
js kept on loading.
Could not
Great work! This would be useful for any number of sites, including a
couple that I'm working on right now. I'd like to adapt it so that a
loading animation is in the placeholder until the image is requested,
instead of the box that is currently there.
I'm looking forward to this being available
I tried to reproduce it again but i observed my behaviour better now and
it happened when i click on the enable/disable link and then do a shift
refresh while the page is still loading. I guess it's not standard
behaviour :)
-- David
Mika Tuupola schreef:
On Sep 3, 2007, at 1:35 PM,
I was wondering if it was possible to change where the the user is looking at
the screen based on where they are looking currently(basically if they are
somewhere i move the scrreen view to the top based on a event)?
--
View this message in context:
Very nice plugin - i notice the page starts off at 177kb and up to
909kb once the full page is loaded - very nice savings!!! Can't wait
to try it out on my already heavily optimised code :)
On 9/3/07, Mika Tuupola [EMAIL PROTECTED] wrote:
Little something I worked on sunday.
On Sep 3, 2007, at 6:21 AM, Klaus Hartl wrote:
John Resig wrote:
$(.next.open)
The same works in normal CSS.
Not in IE 6 of course, and in IE 7 only in Strict mode[1], just for
the record...
[1]http://blogs.msdn.com/ie/archive/2005/09/02/460115.aspx
--Klaus
And just to pick up on
Looks interesting although it doesn't work in Safari.
In Safari the top image loads last.
On Sep 3, 11:15 am, Mika Tuupola [EMAIL PROTECTED] wrote:
Little something I worked on sunday.
http://www.appelsiini.net/projects/lazyload
Plugin which enables deferred loading (lazy loading) of
Hi all,
here's my situation :
ul
liA/li
liB/li
liC/li
liD/li
/ul
I've got $(this) containing the jquery object of element liC/li
I would like a jquery selection of previous elements and current
element included, in other words I would like [A, B, C]
What is the fastest way to accomplish this
On Sep 3, 2007, at 3:06 PM, Dan Atkinson wrote:
Great work! This would be useful for any number of sites, including a
couple that I'm working on right now. I'd like to adapt it so that a
loading animation is in the placeholder until the image is requested,
instead of the box that is currently
On Sep 3, 2007, at 3:22 PM, Tane Piper wrote:
Very nice plugin - i notice the page starts off at 177kb and up to
909kb once the full page is loaded - very nice savings!!! Can't wait
to try it out on my already heavily optimised code :)
Yes. They are heavy images on purpose. To prove the
On Sep 3, 2007, at 3:43 PM, eltom wrote:
Looks interesting although it doesn't work in Safari.
In Safari the top image loads last.
Yes. It is a known issue with Safari which actually load all images
whether plugin is used or not. I am currently working on it.
--
Mika Tuupola
Hi everyone,
I've created a list of links that will hopefully help new jQuery users
find the resources they need to get up-to-speed with jQuery. If there's
anything I missed, please let me know:
jQuery Main Site:
http://jquery.com/
The compressed uncompressed code:
Gracias Jose',
lo voy a testar.
te lo agradezco muchismo
Andrea
http://www.andreacfm.com
On Sep 3, 1:21 am, SeViR [EMAIL PROTECTED] wrote:
charcounter plugin from Tom Deater. Really I don't see where I
downloaded, so
I attach the code. It is easy change the char counter for a words
Daniel,
I'm not sure I follow you. It looks like you have things setup for
jheartbeat to ping the server every 3 seconds and every time that
happens you will see your Please Wait message. jheartbeat is not
calling blockUI directly. You've wired blockUI to the
ajaxStart/ajaxStop global events
I'm looking for a tidy way to call a function to iterate over a group
of DOM elements, with a small delay after the function completes
before it is called again with the following element.
Pseudo code:
==
$(elems).each(function(){
$(this).dostuff();
// wait a moment
//
We've discussed this on the dev list:
http://groups.google.com/group/jquery-dev/browse_thread/thread/045ea5af409adb86
For now, just be sure to use the full HTML syntax, we'll try to get a
fix in place here real quick.
--John
On 9/3/07, devsteff [EMAIL PROTECTED] wrote:
Hi folks,
I figured
I don't know if I understood what you're trying to achieve, but try
using parent() instead of parents()
Congratulations Rey, these are great news. I saw your name in some of the
latest posts and thought you already were an ajaxian author. I'm glad you
are now _in_
Regards
On 9/2/07, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote:
Usually, he'll be posting this sort of links/news; now for a
I'm looking for the same thing. The suggestions listed here so far
have been autocompletes. I need, and I think this is what Eridius is
after, is an editable select element. I also want to display all
possible values on focus.
On Aug 13, 9:11 am, Eridius [EMAIL PROTECTED] wrote:
I don't think
I am having the same problem... ajax isn't working in ie period.
On Sep 2, 5:00 pm, Rey Bango [EMAIL PROTECTED] wrote:
Whats the error message you're receiving?
Rey...
sourrisseau wrote:
Hello,
it's the second time a send this message . But I can't see the first
one ... so sorry if
I am doing something similar, and I use livequery to call Draggable on
everything of one class, so new clones match and are made draggable
automatically.
mouqx xu wrote:
I'm using interface1.2 and jQuery1.4.
the problem is that cloned element is not draggable in IE6, but works
fine in
Hi, all
I blogged one case in my blog (http://jack.lifegoo.com/?p=163) which
described the complaint of $ in jQuery, Prototype and Mochikit,
could you please take it consider and reduce the conflicts?
Thanks.
/Jack
Is it possible to strip links from a designated div with jquery? I've
searched for a stripping mechanism, but haven't had any luck yet.
I realize my request is pretty strange, I realize it'd be easier to
not create links in the first place, but before I do that, I'm just
curious about jquery's
Hello,
i write a script thtas loads a external html part. . I can use js and
the ready event is given , but ioi cant use onclick events. nothing
happens. a direct onclick is workung .
Why? How can i use it?!
hi i have problem about character..
i have a mysql database and i was try to save some datas into it by
using ajaxform plugin.i use the json dataType.i try to solve this
problem but i couldn't.
i try to put the mysql_query(SET NAMES 'UTF8');it doesnt solves my
problem100%.when i put the this
Heinrich,
It's frustrating that people don't know a combobox from a select element (or
autocomplete text element).
I was finally able to make something like what you're looking for. I used
Dan Switzer's Autocomplete as a base, and then had it show all possible
options if the text box was either
Hi
Ive created a (really) simple thumbnail gallery using jQuery.
Functionality is working fine but I am having trouble getting the the
active thumb to highlight.
I want it so the thumb you click stays at 100% opacity and the rest
fade to 50%. Ive been pulling my hair out trying to get it to
I think that we can stop all animations stopping all setIntervals
(with clearInterval).
function stopAllAnims(){
for(var j=0;j50;j++){clearInterval(j)}
}
Or like a extension:
$.extend({
stopAllAnims: function(){ for(var j=0;j50;j++)
{ clearInterval(j); }}
});
On Sep 2, 10:08
Hi
Ive created a (really) simple thumbnail gallery using jQuery.
Functionality is working fine but I am having trouble getting the the
active thumb to highlight.
I want it so the thumb you click stays at 100% opacity and the rest
fade to 50%. Ive been pulling my hair out trying to get it to
hi i have problem about character..
i have a mysql database and i was try to save some datas into it by
using ajaxform plugin.i use the json dataType.i try to solve this
problem but i couldn't.
i try to put the mysql_query(SET NAMES 'UTF8');it doesnt solves my
problem100%.when i put the this
i have the same problem.
i have been done this ( $instDB-executequery(SET NAMES 'utf8',
$con); );
i solve the my problem 50%;it means that data's which are in text
fields were saved correctly but in textarea were not saved correctly.
On 20 Ağustos, 22:09, David Garcia Ortega [EMAIL PROTECTED]
bsuttis schreef:
Is it possible to strip links from a designated div with jquery? I've
searched for a stripping mechanism, but haven't had any luck yet.
I realize my request is pretty strange, I realize it'd be easier to
not create links in the first place, but before I do that, I'm just
jQuery already has a .noConflict() method that completely removes any
conflict with $.
You can find out more information here:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
and here:
http://docs.jquery.com/Core/jQuery.noConflict
--John
On 9/3/07, jack.tang [EMAIL PROTECTED] wrote:
And I already left a comment there already today explaining this. I
think what he may be worried about is plugins that break jQuery
noConflict, which is a plugin is developed correctly using closures,
should not be a problem
On 9/3/07, John Resig [EMAIL PROTECTED] wrote:
jQuery already has a
Thank you Joan. I was already onboard when you saw those posts but Dion,
the co-founder of Ajaxian, just decided to post about it. It caught me
by surprise! :D
Rey..
Joan Piedra wrote:
Congratulations Rey, these are great news. I saw your name in some of the
latest posts and thought you
Jack,
The jQuery library has a feature called noConflict() which addresses
this to avoid the namespacing issue you're referring to. You can read
more about it here:
http://docs.jquery.com/Using_jQuery_with_Other_Libraries
Rey...
jack.tang wrote:
Hi, all
I blogged one case in my blog
Oke, i'm currently useing the HighlightFade plugin to get something
nearly the same done but it's still not quite how i want it.. some
help here would be good.
What I got from reading his post is that he's concerned about projects
that start off using jQuery and then need to incorporate another library.
Rey...
Tane Piper wrote:
And I already left a comment there already today explaining this. I
think what he may be worried about is plugins that
Hi Mark,
The code used at
http://www.stilbuero.de/2005/07/19/whateverhover-fast-and-easy/ is
nicely coded but certainly doesn't look like it would be easy for most
people to write themselves. It's well over my head, but with the use
of the Web Developer toolbar, it's all very easy to access and
If you want elements that have a next OR an open class, then it
would be
$ ('.next, .open');
If you want elements that have a next AND an open class then it
would be
$('.next.open');
On Sep 3, 1:20 am, xni [EMAIL PROTECTED] wrote:
Hello,
I would like to select elements with two class (eg:
Hey all.
I'm using the editable plugin and I'm having trouble accessing the id
of the editable element.
My HTML:
span class=editable id=editable-1Page name/span
My JS:
$(.editable).editable(page-update.cfm?action=updatePageName, {
paramName: pageName,
callback:
I want to use the Interface library's Accordian on a page that already
has a Flash piece wrapped in Macromedia's AC_RunActiveContent
javascript for avoiding the IE security glitch.
If I remove the Flash and the script tag to include
AC_RunActiveContent.js, the accordian works as expected.
Hi all,
I'm using the amazing jQuery tabs plugin, but I'm having problem
with this code:
$('#container-1').tabs(2,{
fxFade: true,
fxSpeed: 'fast',
onClick: function() {
alert(Clicked!);
Massimiliano Marini wrote:
Hi all,
I'm using the amazing jQuery tabs plugin, but I'm having problem
with this code:
$('#container-1').tabs(2,{
fxFade: true,
fxSpeed: 'fast',
onClick: function() {
alert(Clicked!);
My moreSelectors plugin has an undocumented feature that enhances
the .siblings() method to optionally return preceeding or following
siblings only.
Syntax: $(...).siblings(expr, self, prevOrNext)
- Specify self as true to retain the current element(s) in the
results.
(default is false so that
what i want is: hover a element and while your mouse is hovering that
element the color should fadein to the hover color and stay like that
until you hover out of it. than it should fadeout to the default
background.
2007/9/3, Joel Birch [EMAIL PROTECTED]:
Hi Mark,
The code used at
Hi,
I would like to know how doesn't to allow the user to access external url
with AJAX if the user edit de AJAX url
Abraços
Estevão Lucas
Hi folks
I swear had seen Fisheye menu solution but it wasnt from Interface. It was
another JQuery Plugin.
Anyone know where is it?
Regards
Mario
Thanks Rey - a useful resource of resources!
Duncan
- - - - - - - - - - - - - - - - -
Sprocket Web Design
www.sprocket.co.nz
- - - - - - - - - - - - - - - - -
On 4/09/2007, at 1:39 AM, Rey Bango wrote:
Hi everyone,
I've created a list of links that will hopefully help new jQuery
users
The only one i've seen is the interface one, you sure you saw an independent
plugin?
On 9/3/07, Mario Moura [EMAIL PROTECTED] wrote:
Hi folks
I swear had seen Fisheye menu solution but it wasnt from Interface. It was
another JQuery Plugin.
Anyone know where is it?
Regards
Mario
Hey
I must admit - I get a little confused about when to use GET and
POST. I was reading this which confused me further:
Getting lazy with GET -- GET is for retrieving data; POST is for
setting it. Don't use GET when you know you shouldn't, even if you
think it will do no harm. GET
For _most_ browsers changes in the CSS are not reflected in the layout
until _after_ your JavaScript is finished executing. I believe the
exception is Opera (or is it Safari...?), which also updates the
layout after a certain amount of time.
If you want to display the changes progressively
If you use interface, you can animate colors with the regular animate
function. Fading is for changing opacity. Maybe you want something
like (untested):
var originalColor = 'red';
var hoverColor = 'blue';
var duration = 1000;
$(...).hover(function() {
$(this).animate({backgroundColor:
My pleasure Duncan!
Rey
Duncan Heal wrote:
Thanks Rey - a useful resource of resources!
Duncan
- - - - - - - - - - - - - - - - -
Sprocket Web Design
www.sprocket.co.nz
- - - - - - - - - - - - - - - - -
On 4/09/2007, at 1:39 AM, Rey Bango wrote:
Hi everyone,
I've created a list of links
If you use interface, you can animate colors with the regular animate
function. Fading is for changing opacity. Maybe you want something
like (untested):
var originalColor = 'red';
var hoverColor = 'blue';
var duration = 1000;
$(...).hover(function() {
I've seen some o fyou jQuery masters bust out with these amazing
chains, but I can't quite grasp how some of them are crafted. I've
looked through the methods and found a few that I think should work in
a specific instance, but then they don't. So what I'm wondering is if
anyone has already taken
Hi,
I have a function that show a loading bar when a form is submitted:
//show loadind bar
$(document).ready(function(){
$('.launch').submit(function(){
$('.loading').removeClass('hidden');
});
});
Now adding the validation plugin I have an undesired effect:
Hi,
I have a function that show a loading bar when a form is submitted:
//show loadind bar
$(document).ready(function(){
$('.launch').submit(function(){
$('.loading').removeClass('hidden');
});
});
Now adding the validation plugin I have an undesired effect:
Duncan,
Here is the general rule of thumb:
Use POST when the data:
1) Produces a command line over 1024 characters (GET has its line
limits)
2) Complex and by I mean:
- textarea
- input type='file.../
3) Security:
What to add alittle more security that keep the average person
I pressed SEND to fast before correcting some typos and adding some
needed clarification: sorry
Here is the general rule of thumb:
Use POST when the data:
1) Produces a command line over 1024 characters.
GET has its line limits. Do not assume all servers will accept
anything much longer
Hello,
i load code with this function
function loadLoginbox(Target) {
$(Target).load(index.php?m=loginc=loadLoginbox);
}
function openLoginbox(Target) {
loadLoginbox(Target);
$.blockUI(Target, { width: '400px'});
}
$(document).ready(function() {
I have a site that uses aThawtecertification image, but the
image shows up slowly at times thatThawte'sserver is
feeling under the weather. Since I have no control over
their script or their server-- and since the image's current
position is mid-page--I'd like to be able to just
Ok, I finally got around to modding Dan Switzer's Autocomplete to
where is shows all possible options on initial focus and when the
textbox is empty.
I might dress it up and make it a new plugin (it works really well),
but in the meantime, email me if you want it. I've only tested it on
FF and
I am trying to move a selected option from one select box to another
select box.
I am new to jquery but i have been able to get some stuff done with
Jquery. I've checked the API as well as some of the tutorials but I
cannot find any answers. I have found some plug-ins but they all seem
to
Hi
I'm trying to just get the number of modified inputs that aren't
disabled. I'm using the moreSelectors plugin.
active_inputs_modified =
$(input:modified).not($([EMAIL PROTECTED])).length;
I can't figure out how to combine that into 1 jquery expression
without using the 'not' function.
I am trying to implement a widget that works as follows. I want to be
able to click a link that moves a selected option from select box to
another.
I am new to jquery but i have been able to do quite a bit with it so
far. I have looked through the API as well as through some
tutorials. I
Here there is more one Brazilian in this mail-list.
jQuery na veia.
On 2 set, 10:03, Rey Bango [EMAIL PROTECTED] wrote:
Hi Olmo,
I'll add a signature from now on it seems.
Thanks. That helps out quite a bit. Kind of like I did when I posted in
the MooTools forum. Its always good to let
87 matches
Mail list logo