Doesn't Disqus provide you with a callback of any sort in it's api ?
Otherwise maybe you can watch out for dom changes and make it trigger your
resizing method.
And if you're really desperate there's always good old let's execute that
periodically until whatever happens.
Michel Belleville
Thanks Everyone for your help! Sorry for being incognito! I've had a
dose of the flu! The problems all seemed to a mix of everything
everyone has said here..but the main one was that my page was using a
masterpage where there were 3-divs inside each other...then the
contentpanel (which is where
Hi, i'm updating a div with the length of a textarea.
script type=text/javascript
$().ready(function(){
$(#formElement_profileTeamProfile).keyup(function() {
var newText = $(this).length;
$('#countCharTeamProfile').html(newText);
Little confusion here indeed : jQuery wraps selected elements in a magic
array that keep them warm and ready to respond to any jQuery method, so
when you query $(this).length you're asking for jQuery's magic array's
length, which is 1 (1 element inside).
If you want to get the length of the
I would have never thought to use val(), but this solution unfortunately did
not work
The value still remains as 1 ?
--
View this message in context:
http://old.nabble.com/update-div-with-textarea-length-tp26492474s27240p26492632.html
Sent from the jQuery General Discussion mailing list archive
Hi,
Does anyone know how to get the dynamic button id inside the jquery
dialog..
here i have some code to doing but its not working
Below i have to get the id for the Save button.. how to get it..
please help me to find out
buttons: {
'Close': function() {
Maybe the problem is somewhere else then. Strings have a .length which is
the number of characters in them, .val() gets the value of the first element
selected (input, texarea, select, etc.) and $(this) should only point to
your textarea when it's responding to the keyup event. Could you show the
I'm sorry Michel, I edited my last reply because I found the error of it not
working was on my behalf.
Michel Belleville wrote:
Maybe the problem is somewhere else then. Strings have a .length which is
the number of characters in them, .val() gets the value of the first
element
selected
As long as it's working now kudos.
Regards.
Michel Belleville
2009/11/24 rjc r.jerome.cousin...@gmail.com
I'm sorry Michel, I edited my last reply because I found the error of it
not
working was on my behalf.
Michel Belleville wrote:
Maybe the problem is somewhere else then. Strings
Today I publish a new datagrid plugin for jQuery which similar to Flexigrid.
Lightweight but have powerful features as following:
* Resizable columns
* Can convert an ordinary table
* Paging
* Toolbar
* Create columns from tags
* Checkbox Selecting
* Show row numbers
Firefox really eats a lot of memory when it's up for a long time. I also
encountered that issue not only in sliding but in animations that move stuff
around. Problem is that firebug really makes stuff slower, because it shows
you real-time what the browser is doing. The console / net thingy also
Sorry to highjack this, but Karl could you somehow describe exactly what
that function does, my js is pretty rusty but i would like to understand how
it works.
Thanks
---
Alexandru Dinulescu
Web Developer
(X)HTML/CSS Specialist
Expert Guarantee Certified Developer
XHTML:
Alexandru,
this Net Tuts posting from a few days ago explains that .sort action
of JavaScript very nicely and clearly
http://net.tutsplus.com/tutorials/javascript-ajax/sorting-values-with-javascript/
Thank you very much
---
Alexandru Dinulescu
Web Developer
(X)HTML/CSS Specialist
Expert Guarantee Certified Developer
XHTML: http://www.expertrating.com/transcript.asp?transcriptid=1879053
CSS : http://www.expertrating.com/transcript.asp?transcriptid=1870619
Odesk Profile:
thats perfect, so simple i feel a little silly i couldn't suss it out
myself.
thanks a million
On Nov 24, 4:54 am, Karl Swedberg k...@englishrules.com wrote:
Something like this might work...
var items = $('li').get();
items.sort(function(a, b) {
var relA = +$(a).attr('rel');
That is because you get dinamic data into html tag, and then need to
redeclarate function (#foo) to parse html from new DOM.
I suggest when you get the table though AJAX, try to get also the Jquery
Code (#foo).click.
Still better, insert in the TD element in table an attributte called
I am having this exact same problem, the title and descriptions come
through fine. seem to be something to do with there being two link
attributes. (link and atom:link)
var base = $(data).children(channel);
feed.title=base.children(title).text( );
feed.description=base.children(description).text(
Hi all,
I am Chaitanya Apte, an Acquisition Editor with Packt Publishing.
I am in the process of developing a book idea on jQuery Plugins
Development, which would be targeting jQuery Beginners .
Do you think this is a good idea?
If so, what would you all like to see in such a book.
I used jQuery ui selectable function on my web page. So long it works
fine, but I find a problem that if we’ve already selected some items,
and I want to cancel selected one item of them, how could we do? I try
to bind a click function to the elements to remove the style of ui-
selected, but it
I used jQuery ui selectable function on my web page. So long it works
fine, but I find a problem that if we’ve already selected some items,
and I want to cancel selected one item of them, how could we do? I try
to bind a click function to the elements to remove the style of ui-
selected, but it
http://web.djalmaaraujo.com.br/projects/jquery/jquerylimitinput/0.2.1/example.html
maybe it's works.
On 24 nov, 07:29, Michel Belleville michel.bellevi...@gmail.com
wrote:
As long as it's working now kudos.
Regards.
Michel Belleville
2009/11/24 rjc r.jerome.cousin...@gmail.com
I'm
I tried this with the latest version (2.0.3), which did not work, so i copied
the Version 2.0 from your
http://lovepeacenukes.com/tablesorter/2.0/docs/shows URL and used it
successfully.
Robert H.-2 wrote:
I downloaded the source from there, does anyone use this feature with
the latest
Hi,
I am new to jQuery and I have a doubt in slider effect. I just wanted
to replace js with jQuery in my website.
I have a dropdown link in my site, for that i am using slideDown,
slideUp effects. I need slideDown for onMouseOver and slideUp for
onMouseOut. I gave slideDown link to the text
Hello,
I have a problem with submitting a form using a link, multiple link
here is an example link i'm gonna use:
a href=# class=commandBtn rel=mark title=Mark as ReadMark as
Read/a a href=# class=commandBtn rel=remove title=Remove to
TrashRemove to Trash/a
the result I expect is when the
Hello,
I analysed my logs and found some strange entrys. I only want to know
if I can check myself like the attacker it tried with a automatic
programm I think.
Like this:
Java/1.6.0_16
Ref: -
[17:13:13] 404 /atlas/'
[17:13:13] 404 /atlas/functions.php
[17:13:13] /spielfeld/'+
Did you find a solution on this? Is exactly what i need! I try to make the
same thing with a image on my website a long time and i can't make it... If
you have a solution please post here! Thank you
--
View this message in context:
i think its because you are binding the handler to a DOM element
before it exists
if you use the 'live' method you may get what you want
ie
$().ready(function() {
$('#submit1').live('click', function() {
alert('it works!');
});
});
alternately, bind the event handler *after*
Thanks Michael, and I wont take it the wrong way, its business, nothing
personal :). For some reason I think I¹m just not explaining myself
properly. I have written the code according to how I stated the problem and
the data does not get transferred. I have placed the problem up on
craigslist
Hmm, seems like the url on craig's list is stale or something, but as soon
as I get more details it's possible that I can point to the cause of your
troubles.
Regards.
Michel Belleville
2009/11/24 Bjorn Symister bjorn@gmail.com
Thanks Michael, and I wont take it the wrong way, its
I think I've had something similar once, I'm not sure how I got it to work
properly but you can try something on lines of :
setTimeout($('#pm_form').submit();, 1);
So you've returned and applied the changed before the form actually submits.
Michel Belleville
2009/11/24 achmad dodi
Hey there,
A $.getScript() call I am making results in two seperate requests to
the server. Any chance I can avoid that?
Here are the headers:
GET server.file?param1=param2 HTTP/1.1
Host: server
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; de; rv:1.8.1.20)
Gecko/20081217
First of all a little advice, it's probably better to use jQuery's event
management than placing onMouseOver or onMouseOut in your html. Here's how
to do it :
jQuery(function($) {
$('.opener').mouseover( function() { $(#test).slideDown(slow); } );
$('#test').mouseout( function() {
How can I take value of ID clicked link in jQuery ??
I have links:
a href='deleting_posts.php?id=1' class='delete'delete/a
a href='deleting_posts.php?id=2' class='delete'delete/a
a href='deleting_posts.php?id=3' class='delete'delete/a
.
My jQuery script:
$(document).ready(
i'm not sure i understand... hard-coded numbering? something like this
(?) :
HTML
ul
li1 spanList Item/span/li
li2 spanList Item/span/li
li3 spanList Item/span/li
/ul
if you are looking for a numbered list, you should be using the ol/
tag, although the ol/ tag is going to have the same
When someone .click(function() { ... }) on $(this), $(this) is very
interesting, and I'm not saying that just because $(this).attr('href') is
even more relevant to your interests.
And $(this) is also interesting when you're running through .each(function()
{ ... }) elements of a $('#jquery
I recently convinced my company to go with jQuery. (yaaay!) and now
i've been tasked with spreading my knowledge around. i was curious if
anyone could recommend books to put in the hands of experienced
programmers who are new to javascript. for the basics, I'd point them
to JavaScript: The Good
inside of the function that you pass to click(), the keyword this
will point to the raw DOM element that dispatched the event. so, in
your example, you need to add:
$(document).ready( function ()
{
$(.delete).click(function()
{
Example:
http://jsbin.com/ihehu/edit
Sorry, the link came through with an extra ³ at the end. Below is the link.
If that doesn¹t give enough information, I am open to Instant messaging.
http://newyork.craigslist.org/que/cpg/1479652385.html
On 11/24/09 9:25 AM, Michel Belleville michel.bellevi...@gmail.com
wrote:
Hmm, seems
thx You all people :))
On 24 Lis, 16:28, MorningZ morni...@gmail.com wrote:
Example:
http://jsbin.com/ihehu/edit
Hi guys,
if you go to this http://www.taylorsofstjames.co.uk site and rapiding go
on and off the seasoned charts menu you will notice when you take your
mouse away, the animation just keeps going.
I don't know why it's so messy but I hope someone can help .
The code is below :
On Tue, Nov 24, 2009 at 7:24 AM, mattkime mattk...@gmail.com wrote:
I recently convinced my company to go with jQuery. (yaaay!) and now
i've been tasked with spreading my knowledge around. i was curious if
anyone could recommend books to put in the hands of experienced
programmers who are new
Hello:
I'm trying to move content from div A to div B without execute the
scripts inside A.
Move it is the easy part:
var d = $('#B')[0];
$('#A *').each(function(){
if(this.tagName.toUpperCase()!=='SCRIPT'){
d.appendChild(this);
}
I have 3 dropdowns and depending and when the value of one changes the value of
the others has to change.
What should be my best approach of attacking this problems?
I was thinking of righting a function for each different possibility and then
jut removing and adding the possible values but this
Hello all,
I'm trying to group some exisiting top-level functions inside a
closure (to avoid polluting the global namespace) but I'm not quite
getting it to work.
First, all the JS works outside my anonymous function, but once I put
it in the anonymous function I get an error of crossfade is not
Ok the live technique worked, thanks! I understand the idea of binding
it after the documents is loaded. Is that more than a matter of
binding it after the ajax call, or *must* I use .live so that it waits
for the page to load before binding?
On Nov 24, 6:17 am, bhu Boue vidya
Looks like I forgot the end of the anon function, should look like:
(function($) {
//vars up here that internal functions can access
//also using some jquery inside here, so using $
function crossfade() {
//body here
}
//other functions
Looks like I didn't forget it, google appears to be stripping it out.
Anyways, my anonymous function is closed and invoked with the jQuery
object, I just can't include that here.
You can use live as soon as your page can execute JavaScript as far as I'm
aware, though if you mix the approaches (live can't do everything bound
events can do, for exemple catching a form submission as for now) you'd
probably stay on the safer side doing everything once the page is fully
loaded.
How do I make sure the external page is fully loaded before I try to
bind events to it?
On Nov 24, 9:43 am, Michel Belleville michel.bellevi...@gmail.com
wrote:
You can use live as soon as your page can execute JavaScript as far as I'm
aware, though if you mix the approaches (live can't do
jQuery provides :
jQuery(function() {
// this is executed as soon as the page is fully loaded
});
Michel Belleville
2009/11/24 Rockinelle ericbles...@gmail.com
How do I make sure the external page is fully loaded before I try to
bind events to it?
On Nov 24, 9:43 am, Michel Belleville
The problem is in your setTimeout() call.
When you pass a string argument to setTimeout(), that string is evaluated
*in the global context*.
Instead, pass a function to setTimeout() and that function will be executed
in the scope you expect.
Since you're just calling a single function anyway,
message.replace( 'setTimeout', 'setInterval' );
:-)
On Tue, Nov 24, 2009 at 10:30 AM, Michael Geary m...@mg.to wrote:
The problem is in your setTimeout() call.
When you pass a string argument to setTimeout(), that string is evaluated
*in the global context*.
Instead, pass a function to
Hi Mike,
Thanks much for your reply. I dropped in an anonymous function and
that fixed it:
cInterval = window.setInterval(function() { crossfade(); }, 5000);
I tried calling crossfade() without quotes, but FF gave me a missing
quotes error.
I need to detect when one of these loads like the load event of
image / like $(#imageId).load(function(){ });
I have a background div with a spinner gif that shows until the image
loads. The image button is mostly transparent except it shows a small
image placeholder and some alt text until the
Hi,
im using the superfish-mod for joomla and everthing is working fine,
but i can't figure out how to edit different hover styles for first-
level and second level menue-items. They look always the same.i
just want to have different states for first level/first level hover
and second
Hello,
i am using superfish in Joomla and i am trying to create a menu that
uses image links for the first level and simple text for the other
levels (the sub-menus),
i have been trying to figure out how to do this but so far no real
success.
does anyone has any idea about this?
thanks.
Hi,
Need a bit of guidance. I have a web site page (www.awebgeek.com/
health) that has a few jquery components on it (ie. slider, carousel
and accordian). My problem is specifically focused on the meet our
team portion of the accordian. Currently, the default panel set to
open is #3 (meet our
Hello everyone,
I'm rather new to JQuery, so please don't be too strict).
I'm checking user input in the form. The form is usual but there's
rather many check-outs. I preferred to display them Div's if the
fields are not completed or are completet incorrectly.
What I'm trying to do is to keep the
http : // img517 . imageshack . us /img517/ 3318/ alerta. jpg (it's in
portuguese)
It's a famous alert box saying that my JS script is slowing down the
loading, asking if I wanna continue, or interrupt.
I've tried so many things to speed up that part of script, but I was
unsucessfull.
I'll only
Hello,
iam experimenting a little bit with jquery and have encountered the
following problem.
my project is a calendar which can be browsed and is drawed with ajax
and events can be added, when clicking a day of the current month a
div pops up which contains the overview of the selected day and
You can do this with blockUI if what you're planning to display is
reasonably succinct. When you have the database results in your ajax
callback, assuming it is HTML, you can do something like this:
$.get(someUrl, function(data) {
var html = 'div' + data + '/divbuttonOK/button';
That code will certainly do the trick. Because your anonymous function
expression simply calls crossfade(), you're essentially doing the same as
this:
cInterval = window.setInterval( crossfade, 5000 );
Well, there is a subtle difference. Your code below doesn't evaluate the
name crossfade
If I were you I'd try to log what this is inside your second get's scope,
and I bet you'll be surprised to notice it's not what it was outside the
second get. That's why you should put your previous this in a variable so
when this changes with the scope the other variable still holds who you'd
sqwerl wrote:
I need to detect when one of these loads like the load event of
image / like $(#imageId).load(function(){ });
I have a background div with a spinner gif that shows until the image
loads. The image button is mostly transparent except it shows a small
image placeholder and some alt
You have too much of this. :-)
Remember that every function you call may have a different this. Just
because you had a this in an outer function with the value you want, it
doesn't mean that some other function you call will have the same this -
even if it's nested inside that outer function.
Can you post a link to a test page?
Pretty hard to troubleshoot by just looking at the headers.
Of course, someone will come along and troubleshoot it from the headers
alone and prove me wrong! :-)
-Mike
On Tue, Nov 24, 2009 at 6:50 AM, Eric ikeah...@gmail.com wrote:
Hey there,
A
I submit my form , check valid, valid then away it goes.
I was wondering 1 thing. I have
$(this).validate(validate_awards);
var valid = $(this).valid();
if (valid) {
do my stuff
}
Now I have validate_awards which contains my rules for validation
var validate_awards = {
sqwerl wrote:
I need to detect when one of these loads like the load event of
image / like $(#imageId).load(function(){ });
I have a background div with a spinner gif that shows until the image
loads. The image button is mostly transparent except it shows a small
image placeholder and some alt
I have the exact same code on every page where a form gets submitted. How
can i turn that into a simple function?
The only thing that changes is the $(this).validate(validate_awards) and the
form ID;
It would be so much easier if the function was in one place and called where
needed but I cant
Hi,
I am working on improvements for a web app.
It currently submits checkboxes to a php script for processing by
simply submitting the form naturally. However i require this action
using a ajax post to save bandwidth etc. and im struggling to work out
how to do this.
Im familiar with normal ajax
i want to use a jquery dialog window to show an iframe. i am running into
all sorts of issues.
first off, i want the dialog to only show when the iframe is loaded. i
tried to create the iframe w/ visibility set to hidden, and then do a
.dialog() on it, but apparent jquery appends the iframe
Hey everyone,
I've been trying to make a .post work for me and I'm using firebug to
attempt to debug my problems. I am trying to use ajax to process a
form and from what I can tell in Firebug, I am not getting a response.
Now I have removed the action in the form itself so it's just reloads
the
I'd recommend serializing the array into a string, then reverse the
serialization on the server side using PHP. This way, you can pass the array
string within a url.
Hope this helps,
Bryan Garaventa
- Original Message -
From: Bonji benho...@googlemail.com
To: jQuery (English)
I am new to jQuery, and I attempted to search this forum, as well as
go through most of the tutorials. I could not find out if this was
possible. I am attempting to create a list of links that, when
clicked, will show a div section below them. Now, I can do that
individually. However, I would like
I'm am currently struggling with the same issue right now. Looks like
it might have to do with the way jquery pulls an elements width or
height and IE's padding messes it up
checkout:
http://old.nabble.com/Invalid-Argument-Line-12-1.3.2-IE-7-and-8rc1-td22410753s27240.html
Ouptput your
Hello,
I'm having difficulty traversing the DOM with the validate plugin.
I'm sure Jorn can figure this out quikcly :)
I'm trying to target the error message to be placed in the span
class=errorMsg tag. This tag can be any # of elements past the
input or checkbox or whatever is being validated.
I have a Cluetip that is pulling content from a hiddden div on the
page that is only, obviously, visible when the cluetip is invoked.
Everything is working well except under IE, where the content does not
show.
I think this is probably just a simple CSS fix, but I'm stuck. Help!
Here is what
You found that this line is triggering the error:
$(menu_node).css({left:-+total_widths+px});
But you haven't told us what the value of the total_widths variable at this
point in the code. The content of that variable will reveal the problem.
Also, there are a few things you can do to optimize
Your code could end up looking something like this:
function setValidation( selector, validator ) {
$(document).ready( function() {
var $form = $(selector);
$form.submit( function() {
$form.validate( validator );
var valid = $(this).valid();
Thank you very much. I will try it out.
Dave
-Original Message-
From: Michael Geary [mailto:m...@mg.to]
Sent: November-24-09 10:02 PM
To: jquery-en@googlegroups.com
Subject: Re: [jQuery] Create a function?
Your code could end up looking something like this:
function setValidation(
Sorry. I cant seem to get it to go.
Maybe I did not clearly explain the problem.
I want to put the function like you have below in my external js, then on my
html pages that have a form just set it up so all I have to do is include
the setValidation( '#newAward', validate_awards ); on those
I am using toggleClass and I am surprised that the according div
jumps in IE7 down a container height. When I hover over with my mouse
it eventually jumps back into the correct position. Padding, margins
are all set. It's a floating div, width is specified. Can anybody
give me a hint? Thank you!!
Do you have a script tag to load your external .js file?
Post a link to a test page and I can tell you for sure what's wrong.
-Mike
On Tue, Nov 24, 2009 at 6:33 PM, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
Sorry. I cant seem to get it to go.
Maybe I did not clearly explain
I'm mostly a CSS/HTML guy, so delving into jQuery is a bit more then my
normal task list would contain, but I'm happy to suck up any knowledge that
you may be able to impart.
Here is my scenario:
I have four div's each has a different class in additon to the .content
class (which controls font
I have pretty much given up... I don't think it is possible. So
instead I was going to use individual names... but thats not even
working:
var videoLinks = $('.videoLink')
for(var X = 0; X videoLinks.length; X++) {
$('#videoLink' +
If by jquery dialog window you mean jQuery UI Dialog, please ask here:
http://groups.google.com/group/jquery-ui
If you mean another plugin, please specify which one. Thanks.
- Richard
On Tue, Nov 24, 2009 at 7:32 PM, thisisvlad nab...@thisisvlad.com wrote:
i want to use a jquery dialog
bah... so simple. If anyone else runs into this problem, just use the
next function for jQuery:
$(document).ready(function(){
$('.video').hide();
$('.videoLink').click(function(){
$(this).next(.video).toggle(slow,);
I fixed it by removing toggleClass and mark it up differently.
Sorry its only local right now so I will try to add as much as I can here.
Page with a form has:
link rel=stylesheet type=text/css href=/css/styles.css /
link rel=stylesheet type=text/css href=/css/typography.css /
script type=text/javascript src=/js/jquery.js/script
We'd be happy to help you over here:
http://groups.google.com/group/jquery-ui
http://groups.google.com/group/jquery-uiPlease post a live sample page
showing the problem. If you don't have a way to host one, please create one
on jsbin.com:
http://jsbin.com/
- Richard
On Tue, Nov 24, 2009 at
Hi,
I have having problem on validating the dynamic form.
Can I do the validation by element ID rather than element NAME?
Can I generate the validation rules by taking the element ID?
I need your help guys.
Thanks
Hi,
You're right, the problem was due to not passing the request through
index.cfm. I am using Fusebox as you mentioned.
Thanks!
On Nov 20, 1:26 pm, Dave Evartt da...@wehali.com wrote:
I use ColdFusion and jQuery all the time with no problems. In fact, I
use it with mach-ii. Looks like
You can probably fix it by adding this to your CSS:
#cluetip #hidden {
display:block;
}
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Nov 24, 2009, at 8:16 PM, christopherious wrote:
I have a Cluetip that is pulling content from a hiddden div on the
Why not use an ol and wrap the text of each li in a span? It's
not pretty, but it works.
ol
lispanList Item/span/li
lispanList Item/span/li
lispanList Item/span/li
/ol
ol li {font-weight: bold; }
ol li span {font-weight: normal; }
If for some reason you can't put the spans in the
Hi All,
I need a chat script to embed into my website, can anyone help me to find
the script,
Warm Regards,
Mari Raj K,
Only fields present in the form are validated. Rules not matching any
element are ignored, so yes, you can just merge those.
Jörn
On Wed, Nov 25, 2009 at 12:24 AM, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
I submit my form , check valid, valid then away it goes.
I was
97 matches
Mail list logo